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

C#

 
GeneralRe: Form Resize Pin
KaptinKrunch25-Jul-05 10:09
KaptinKrunch25-Jul-05 10:09 
GeneralRe: Form Resize Pin
Yigal Agam25-Jul-05 10:15
Yigal Agam25-Jul-05 10:15 
GeneralRe: Form Resize Pin
twoteesbrett25-Jul-05 10:21
twoteesbrett25-Jul-05 10:21 
GeneralRe: Form Resize Pin
Yigal Agam25-Jul-05 10:26
Yigal Agam25-Jul-05 10:26 
GeneralRe: Form Resize Pin
twoteesbrett25-Jul-05 10:42
twoteesbrett25-Jul-05 10:42 
GeneralRe: Form Resize Pin
Dan Neely25-Jul-05 11:13
Dan Neely25-Jul-05 11:13 
Generalbutton haldling in c# Pin
iramg25-Jul-05 8:58
iramg25-Jul-05 8:58 
GeneralRe: button haldling in c# Pin
LongRange.Shooter25-Jul-05 9:33
LongRange.Shooter25-Jul-05 9:33 
That's just elementary C# coding. Create a form. Add a set of buttons (1, 2, 3, etc.) Write a click handler event

private void ButtonClickHandler(object sender, EventArgs args)
{
  Button which = (Button) sender;
  input += which.Text;
}


In the property grid you switch over to the event view and assign this handler method to all of your buttons. You may want an Enter key on the form as well....that way people can enter more than a single digit to feed the function. So then you'd double click the Enter click event which will automatically create an event handler foryou and you can add the following code:

private void Enter_Click(object sender, EventArgs args)
{
   if (variableA == null) {variableA = input; input = string.Empty;}
   else {variableB = variableA; variableA = input;}
}


when you click the function button you just do
CallFunction(variableA, variableB)


Now if you cannot solve your problem with what I've given you, then I highly recommend you start taking developer classes. Smile | :)

There are 10 kinds of people in the world.

Those that read binary...

...and those who don't.

Generalform size limits Pin
RedTurtle25-Jul-05 8:34
RedTurtle25-Jul-05 8:34 
QuestionHow to double-space a rich text box? Pin
EGosnell25-Jul-05 8:14
EGosnell25-Jul-05 8:14 
GeneralEncoding Pin
Bahadir Cambel25-Jul-05 7:23
Bahadir Cambel25-Jul-05 7:23 
GeneralRe: Encoding Pin
mav.northwind25-Jul-05 11:31
mav.northwind25-Jul-05 11:31 
GeneralSummary Application Pin
kgoodrich25-Jul-05 7:14
kgoodrich25-Jul-05 7:14 
GeneralRe: Summary Application Pin
Not Active25-Jul-05 8:02
mentorNot Active25-Jul-05 8:02 
GeneralRe: Summary Application Pin
Anonymous25-Jul-05 8:28
Anonymous25-Jul-05 8:28 
GeneralRe: Summary Application Pin
kgoodrich25-Jul-05 9:17
kgoodrich25-Jul-05 9:17 
GeneralRe: Summary Application Pin
LongRange.Shooter25-Jul-05 9:39
LongRange.Shooter25-Jul-05 9:39 
GeneralDataGrid validation Pin
zaboboa25-Jul-05 6:17
zaboboa25-Jul-05 6:17 
GeneralRe: DataGrid validation Pin
Not Active25-Jul-05 6:28
mentorNot Active25-Jul-05 6:28 
GeneralRe: DataGrid validation Pin
zaboboa25-Jul-05 8:22
zaboboa25-Jul-05 8:22 
GeneralRe: DataGrid validation Pin
Alomgir Miah25-Jul-05 8:50
Alomgir Miah25-Jul-05 8:50 
Generalsomething like image list! Pin
Sabry190525-Jul-05 6:11
Sabry190525-Jul-05 6:11 
GeneralRe: something like image list! Pin
Anonymous25-Jul-05 8:26
Anonymous25-Jul-05 8:26 
GeneralRe: something like image list! Pin
LongRange.Shooter25-Jul-05 9:41
LongRange.Shooter25-Jul-05 9:41 
Generalsetting Radio Button selection in Codebehind Pin
la vie25-Jul-05 5:48
la vie25-Jul-05 5:48 

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.