Click here to Skip to main content
15,887,411 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
Dave Kreskowiak5-Jun-14 1:42
mveDave Kreskowiak5-Jun-14 1:42 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966135-Jun-14 3:54
professionalsteve_94966135-Jun-14 3:54 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
Dave Kreskowiak5-Jun-14 4:05
mveDave Kreskowiak5-Jun-14 4:05 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966135-Jun-14 5:08
professionalsteve_94966135-Jun-14 5:08 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
DarkChuky CR27-Aug-14 11:42
DarkChuky CR27-Aug-14 11:42 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966133-Sep-14 4:05
professionalsteve_94966133-Sep-14 4:05 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
DarkChuky CR3-Sep-14 4:44
DarkChuky CR3-Sep-14 4:44 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966134-Sep-14 1:57
professionalsteve_94966134-Sep-14 1:57 
Thank you.
I'm not sure I understood well what you mean.
I try to explain in more detail what I do.
In a form, call it FormA, I have four TextBox and in the Load event of the form I assign a delegate to the GotFocus event of the TextBoxes:

VB
AddHandler (AutoIncTB.GotFocus), AddressOf FormMain.TB_GotFocus_1_MAX_RIP
AddHandler (RipTB.GotFocus), AddressOf FormMain.TB_GotFocus_1_MAX_RIP
AddHandler (DuratFinaleHTB.GotFocus), AddressOf FormMain.TB_GotFocus_0_23
AddHandler (DuratFinaleMTB.GotFocus), AddressOf FormMain.TB_GotFocus_0_59


In FormMain there are some functions TB_GotFocus_XXXX that assign different values to some variables and then show the NumericPad.

VB
Public Sub TB_GotFocus_0_23(ByVal sender As System.Object, ByVal e As System.EventArgs)
  CGlobali.ValoreCambiato = False
  Ctrl(0) = sender
  Ctrl(1) = 0
  Ctrl(2) = 23
  PhBt.Focus()
  Tastiera.ShowDialog()  'NumericPad
End Sub

The NumericPad "reads" the variables and understands what is the TextBox from which it was called and other things.
Using the NumericPad I can write in the TextBox.
Each TextBox has its own TextChanged event that is fired any time I write a digit, not when I push the OK button unless I write something also with the OK button (and this is what I do in this moment... but I could also use a flag... mmmm....).

You talk about textbox OK, did you mean the TextChanged event?

I hope this can explain better what I'm doing.
Questionunable to get property 'childnodes' of undefined or null reference Pin
Member 105519074-Jun-14 2:47
Member 105519074-Jun-14 2:47 
AnswerRe: unable to get property 'childnodes' of undefined or null reference Pin
Simon_Whale4-Jun-14 3:12
Simon_Whale4-Jun-14 3:12 
AnswerRe: unable to get property 'childnodes' of undefined or null reference Pin
jinzai17-Jul-14 12:26
jinzai17-Jul-14 12:26 
QuestionRewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
sgralnick3-Jun-14 10:41
sgralnick3-Jun-14 10:41 
AnswerRe: Rewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
CatchExAs19-Jun-14 12:28
professionalCatchExAs19-Jun-14 12:28 
AnswerRe: Rewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
Member 99087646-Aug-14 12:03
Member 99087646-Aug-14 12:03 
Question.Dat file Pin
jjanmendra1-Jun-14 22:03
jjanmendra1-Jun-14 22:03 
AnswerRe: .Dat file Pin
Richard MacCutchan1-Jun-14 22:57
mveRichard MacCutchan1-Jun-14 22:57 
AnswerRe: .Dat file Pin
Dave Kreskowiak2-Jun-14 2:28
mveDave Kreskowiak2-Jun-14 2:28 
QuestionActivex code to print pdf files on client machine Pin
Sachin Mehndiratta29-May-14 1:29
Sachin Mehndiratta29-May-14 1:29 
AnswerRe: Activex code to print pdf files on client machine Pin
AmitGajjar29-May-14 6:43
professionalAmitGajjar29-May-14 6:43 
GeneralRe: Activex code to print pdf files on client machine Pin
Sachin Mehndiratta1-Jun-14 21:04
Sachin Mehndiratta1-Jun-14 21:04 
QuestionAttribute in .net Pin
Member 1079749328-May-14 21:30
Member 1079749328-May-14 21:30 
AnswerRe: Attribute in .net Pin
Pete O'Hanlon28-May-14 22:56
mvePete O'Hanlon28-May-14 22:56 
GeneralRe: Attribute in .net Pin
Manikandan1011-Jun-14 3:46
professionalManikandan1011-Jun-14 3:46 
GeneralRe: Attribute in .net Pin
AmitGajjar29-May-14 6:44
professionalAmitGajjar29-May-14 6:44 
Questionhow to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75327-May-14 23:49
ven75327-May-14 23:49 

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.