« first day (507 days earlier)      last day (4443 days later) » 

6:51 AM
howdy folks!
 
 
2 hours later…
8:54 AM
0
Q: Create new button with properties using class

RainbowHatHow do i create a new button on a stackpanel perhaps in a class file public static void addbtn() { Page1 p1 = new Page1(); Button btn = new Button(); p1.stackPanel1.Children.Add(btn); } I'm sure this isnt really right, at the same time how do i give it a even...

someone please >.<
 
@RainbowHat Are you having trouble with the answer given?
 
Yes, gosh i'm like spending 2 hours searching , really really appreciate if you can help me , i'm almost there
public static void addbtn(Page1 p1)
{
Button btn = new Button();
p1.stackPanel1.Children.Add(btn);
}

this is in my class, how do i add a button in form 1 from form 2 classing this method?
 
I assume that Page1 is a type that you created?
 
uh its page 1
the code is currently in a class file >.<
 
9:15 AM
ok, so Page1 is the form you want to add the button to?
and that stackPanel1 object is visible on the form?
 
yes
stackpanel1 is also on form1
and yes visible
 
9:50 AM
akmad u there?
 
10:06 AM
...
0
Q: Create new button with properties using class

RainbowHatHow do i create a new button on a stackpanel perhaps in a class file public static void addbtn() { Page1 p1 = new Page1(); Button btn = new Button(); p1.stackPanel1.Children.Add(btn); } I'm sure this isnt really right, at the same time how do i give it a even...

 
10:47 AM
anyone there ?
@Patrick hi
 
@TimeToThine Hello
 
@pa
@Patrick I have a Listview with 2 columns , I want to search a List item in column , and condition is that list item should have "@" in it
I found something like this

// assuming we have a list view called listView :
int nRow = 2;
int nColumn = 1;

ListViewItem item = listView[nRow][nColumn];
string sItem = item.ToString();


But its getting row by number, buh as data i am populating list with is dynamic
**search list item in "Column2"
 
@TimeToThine: Why don't you search your data source instead?
 
 
4 hours later…
2:42 PM
hey folks
Does anyone know a good voice recording software for Windows7 that outputs MP3 ?
 
 
4 hours later…
7:01 PM
0
A: How to cancel a ComboBox SelectionChanged in C#

robjbValidating within the SelectionChanged event handler allows you to cancel your logic if the selection is invalid, but I don't know of an easy way to cancel the ComboBox selection. To solve this, I sub-classed the WPF combo-box and added an internal handler for the SelectionChanged event. Wheneve...

 

« first day (507 days earlier)      last day (4443 days later) »