Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: get child of windows Pin
eggie529-Jan-05 19:20
eggie529-Jan-05 19:20 
GeneralHTTP Post Request Pin
notacake29-Jan-05 12:41
notacake29-Jan-05 12:41 
GeneralRe: HTTP Post Request Pin
eggie529-Jan-05 13:08
eggie529-Jan-05 13:08 
GeneralRe: HTTP Post Request Pin
notacake30-Jan-05 1:06
notacake30-Jan-05 1:06 
GeneralRe: HTTP Post Request Pin
leppie30-Jan-05 3:04
leppie30-Jan-05 3:04 
GeneralRe: HTTP Post Request Pin
notacake30-Jan-05 3:07
notacake30-Jan-05 3:07 
QuestionGenerating Buttons dynamically at runtime? Pin
E6AD29-Jan-05 12:36
E6AD29-Jan-05 12:36 
AnswerRe: Generating Buttons dynamically at runtime? Pin
therealmccoy29-Jan-05 17:29
therealmccoy29-Jan-05 17:29 
I created the below code in VB.NET a while back. It will create as many textboxes as specified in 'mintLenCode' I used the "VB.Net to C# Converstion" program from www.vbconversions.com to do a quick port to C# (getting a lazy). Mind you I'm a newbie, so take it as it is. There might be a better way.

private void CreateTextBoxes ()
{
//Declare variables for textbox properties
System.Drawing.Font Font = new System.Drawing.Font("Comic Sans MS", (float) (26.25), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
int counter = 0;
int locationX = 16;
//Size array based on length of mlng_CODE
TxtBox = new TextBox[mintLenCode + 1];
//Create TextBoxes and set properties
do
{
counter = counter + 1;
TxtBox[counter] = new TextBox();
TxtBox[counter].Anchor = AnchorStyles.None;
TxtBox[counter].Font = Font;
TxtBox[counter].Location = new System.Drawing.Point(locationX, 152);
TxtBox[counter].MaxLength = 1;
TxtBox[counter].Size = new System.Drawing.Size(36, 56);
TxtBox[counter].TabIndex = counter;
TxtBox[counter].TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
TxtBox[counter].Name = System.Convert.ToString(counter);
locationX = locationX + TxtBox[counter].Width;
TxtBox[counter].KeyUp += new System.Windows.Forms.KeyEventHandler (txtbox_KeyUp);
this.Controls.Add(TxtBox[counter]);
} while (!(counter == mintLenCode));
}

www.lovethosetrains.com
GeneralRe: Generating Buttons dynamically at runtime? Pin
E6AD5-Feb-05 16:56
E6AD5-Feb-05 16:56 
GeneralEditing problem in Datagrid Pin
29-Jan-05 10:29
suss29-Jan-05 10:29 
GeneralRe: Editing problem in Datagrid Pin
xrado24-Jun-05 0:31
xrado24-Jun-05 0:31 
Questionhow to send same request to different terminals at the same time and wait for the response... Pin
just_starting29-Jan-05 9:14
just_starting29-Jan-05 9:14 
AnswerRe: how to send same request to different terminals at the same time and wait for the response... Pin
mav.northwind29-Jan-05 11:19
mav.northwind29-Jan-05 11:19 
GeneralC# windows Timer question... Pin
new_phoenix29-Jan-05 6:13
new_phoenix29-Jan-05 6:13 
GeneralRe: C# windows Timer question... Pin
eggie529-Jan-05 11:28
eggie529-Jan-05 11:28 
GeneralRe: C# windows Timer question... Pin
new_phoenix29-Jan-05 11:59
new_phoenix29-Jan-05 11:59 
GeneralRe: C# windows Timer question... Pin
eggie529-Jan-05 13:04
eggie529-Jan-05 13:04 
GeneralRe: C# windows Timer question... Pin
Robert Rohde29-Jan-05 21:24
Robert Rohde29-Jan-05 21:24 
GeneralRe: C# windows Timer question... Pin
new_phoenix1-Feb-05 5:34
new_phoenix1-Feb-05 5:34 
GeneralClass problem Pin
thepersonof29-Jan-05 5:44
thepersonof29-Jan-05 5:44 
GeneralRe: Class problem Pin
Robert Rohde29-Jan-05 7:13
Robert Rohde29-Jan-05 7:13 
GeneralI need to control device volum Pin
FedorMatv29-Jan-05 3:02
FedorMatv29-Jan-05 3:02 
GeneralRemoting Configuration Files and the new Operator Pin
STW28-Jan-05 21:31
STW28-Jan-05 21:31 
GeneralIs it possible to create a treeview control that have owner draw scrollbar Pin
god4k28-Jan-05 20:55
god4k28-Jan-05 20:55 
GeneralLINK ERROR 1181: beginner quest. Pin
...---...28-Jan-05 16:09
...---...28-Jan-05 16:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.