SOME VB.NET QUESTIONS

  • Thread starter Thread starter T.S.Negi
  • Start date Start date
T

T.S.Negi

Q1. In ADO we have RecordCount Property of the RecordSet object. In
ADO.net what is the Replacement of RecordCount property?

Q2. How to create Hotkey in Tabcontrol of Visual basic.net.

Q3. If code is written in the control's validate event and next
control's causes validation is False.Now if you press Tab it will not
fire the validate event of the Active Control and focus goes to the
next Control.Now if you want to set the Focus to any other control it
fires the Validate event of the last Active Control whose Causes
Validation is TRUE.

Q4. If Form2 is called from Form1 you can successfully assign the
values to Form2 variables or Controls but if you want to fetch the
values of Form1 from Form2 it will not display correctly.



T.S.Negi
 
Hi Negi,

Mostly it is better to seperate your questions in different message, not
everybody knows all.
Q1. In ADO we have RecordCount Property of the RecordSet object. In
ADO.net what is the Replacement of RecordCount property?
If it is a datast
mydataset.tables(0).rows.count
Q2. How to create Hotkey in Tabcontrol of Visual basic.net. ??

Q3. If code is written in the control's validate event and next
control's causes validation is False.Now if you press Tab it will not
fire the validate event of the Active Control and focus goes to the
next Control.Now if you want to set the Focus to any other control it
fires the Validate event of the last Active Control whose Causes
Validation is TRUE.

I do not exactly understand what you mean but setting focus is
mycontrol.focus
Q4. If Form2 is called from Form1 you can successfully assign the
values to Form2 variables or Controls but if you want to fetch the
values of Form1 from Form2 it will not display correctly.
The best way in my opinion is to make a class with shared properties.
 
Back
Top