Vegas
Vegas
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
That time it gave me random number of 5
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
Is it due to only having one Boxview?
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
[DOTNET] 5 [DOTNET] 5 [DOTNET] 5 [DOTNET] 5 [DOTNET] 5
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
1
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
No description
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
box
15 replies
CC#
Created by Vegas on 8/6/2024 in #help
Loop For X times
1 boz gets added
15 replies
CC#
Created by Vegas on 7/25/2024 in #help
maui Datagrid From ( akgul.Maui.DataGrid )
c#
conn.Open();
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
datalist.Add(reader.GetValue("Id").ToString());
StatusArea.Text = "ID Added";
datalist.Add(reader.GetValue("c_location").ToString());
StatusArea.Text = "C Loc Added";
datalist.Add(reader.GetValue("job_date").ToString());
StatusArea.Text = "Date Added";
datalist.Add(reader.GetValue("l_location").ToString());
StatusArea.Text = "Table Made";
}
}
c#
conn.Open();
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
datalist.Add(reader.GetValue("Id").ToString());
StatusArea.Text = "ID Added";
datalist.Add(reader.GetValue("c_location").ToString());
StatusArea.Text = "C Loc Added";
datalist.Add(reader.GetValue("job_date").ToString());
StatusArea.Text = "Date Added";
datalist.Add(reader.GetValue("l_location").ToString());
StatusArea.Text = "Table Made";
}
}
Stopping at first line
3 replies
CC#
Created by Vegas on 7/25/2024 in #help
maui Datagrid From ( akgul.Maui.DataGrid )
So the owner of akgul reached out to me and told me to make a table from query then pull from that table to the datagrid. ( Going Grey Quick )
3 replies
CC#
Created by Vegas on 7/13/2024 in #help
DataGrid Cell Selection / Row Color
C#

string connetionString = @"Data Source= " + ServerName + ";Initial Catalog= " + Database + ";User ID=" + Username + ";Password= " + Password + ";";
using (SqlConnection conn = new SqlConnection(connetionString))
{
string lbcompjob = ("SELECT * FROM " + Table + " WHERE [cancled] = 1");
SqlCommand cmd = new SqlCommand(lbcompjob, conn);
{
try
{
conn.Open();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
string can = dr[0].ToString();
if (can == "1")
{
if (dr.Length == 0 || dataview.Rows.Count == 0 || dataview.Rows[0].Cells.Count < 26)
{
// The grid doesn't have enough rows or cells to access data in Row 1 Cell 26
Console.WriteLine("Cell 26 doesn't exist!");
return;
}

}
}
}
}
catch (Exception ex)
{

}
}
}
C#

string connetionString = @"Data Source= " + ServerName + ";Initial Catalog= " + Database + ";User ID=" + Username + ";Password= " + Password + ";";
using (SqlConnection conn = new SqlConnection(connetionString))
{
string lbcompjob = ("SELECT * FROM " + Table + " WHERE [cancled] = 1");
SqlCommand cmd = new SqlCommand(lbcompjob, conn);
{
try
{
conn.Open();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
string can = dr[0].ToString();
if (can == "1")
{
if (dr.Length == 0 || dataview.Rows.Count == 0 || dataview.Rows[0].Cells.Count < 26)
{
// The grid doesn't have enough rows or cells to access data in Row 1 Cell 26
Console.WriteLine("Cell 26 doesn't exist!");
return;
}

}
}
}
}
catch (Exception ex)
{

}
}
}
dataview is the datagrid
8 replies
CC#
Created by Vegas on 7/13/2024 in #help
DataGrid Cell Selection / Row Color
Compiler Error CS1061 Does not contain definition.
8 replies
CC#
Created by Vegas on 7/13/2024 in #help
DataGrid Cell Selection / Row Color
No description
8 replies
CC#
Created by Vegas on 7/13/2024 in #help
DataGrid Cell Selection / Row Color
c#
conn.Open();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
string can = dr[0].ToString();
if (can == "1")
{
if (dr.Length == 0 || dataview.Rows.Count == 0 || dataview.Rows[0].Cells.Count < 26)
{
// The grid doesn't have enough rows or cells to access data in Row 1 Cell 26
Console.WriteLine("Cell 26 doesn't exist!");
return;
}

// Not sure what 'dr' is
string can = dr[0].ToString();
if (can == "1" && dataview.Rows[0].Cells[26].Value as int? == 1)
{
dataview.RowBackground = Brushes.LightPink;
}
}
}
}
c#
conn.Open();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
string can = dr[0].ToString();
if (can == "1")
{
if (dr.Length == 0 || dataview.Rows.Count == 0 || dataview.Rows[0].Cells.Count < 26)
{
// The grid doesn't have enough rows or cells to access data in Row 1 Cell 26
Console.WriteLine("Cell 26 doesn't exist!");
return;
}

// Not sure what 'dr' is
string can = dr[0].ToString();
if (can == "1" && dataview.Rows[0].Cells[26].Value as int? == 1)
{
dataview.RowBackground = Brushes.LightPink;
}
}
}
}
8 replies
CC#
Created by odok4wa on 7/11/2024 in #help
How to join multiples forms
did you try Form2.Show(); Form2 being the name of your other form
5 replies
CC#
Created by Vegas on 7/9/2024 in #help
VS 2022 - Root Element is not valid - WPF
Source="MainWindow.xaml" This was it, I forgot to remove this part from the guide i followed thta didnt work.
12 replies
CC#
Created by Vegas on 7/9/2024 in #help
VS 2022 - Root Element is not valid - WPF




12 replies
CC#
Created by Vegas on 7/9/2024 in #help
VS 2022 - Root Element is not valid - WPF
No description
12 replies
CC#
Created by Vegas on 6/28/2024 in #help
new command fixing memory leak.
ok thank you
7 replies
CC#
Created by Vegas on 6/28/2024 in #help
new command fixing memory leak.
I have tried
cs workarea.Content = null
cs workarea.Content = null
before it calles the new page but that dont do anything.
7 replies
CC#
Created by Vegas on 6/28/2024 in #help
new command fixing memory leak.
VS wont let me add a
.Close();

.Close();

to it
7 replies