Click here to Skip to main content
15,890,947 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB version of OnIdle? Pin
-Dy9-Jul-03 2:11
-Dy9-Jul-03 2:11 
AnswerRe: VB version of OnIdle? Pin
Hesham Amin9-Jul-03 3:47
Hesham Amin9-Jul-03 3:47 
GeneralName of the Application and Command line arguments Pin
Mark P8-Jul-03 21:04
Mark P8-Jul-03 21:04 
GeneralRe: Name of the Application and Command line arguments Pin
dynamic8-Jul-03 22:04
dynamic8-Jul-03 22:04 
GeneralUTC time... Pin
byblostas8-Jul-03 10:42
byblostas8-Jul-03 10:42 
GeneralRe: UTC time... Pin
Hesham Amin9-Jul-03 20:54
Hesham Amin9-Jul-03 20:54 
GeneralSending information to and from different forms Pin
Emile Jacobs8-Jul-03 9:20
Emile Jacobs8-Jul-03 9:20 
GeneralRe: Sending information to and from different forms Pin
dynamic8-Jul-03 9:53
dynamic8-Jul-03 9:53 
try this :
In Form1:
<font color="blue">Private</font><font color="blue"></font> <font color="blue">Sub</font> Button1_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object,<font color="blue"></font> <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button1.Click <br> <font color="blue"></font><font color="blue"></font>    <font color="blue">Dim</font> frm2 <font color="blue">As</font> <font color="blue">New</font> Form2() <br> <font color="blue"></font><font color="blue"></font>    Me.AddOwnedForm(frm2) <font color="DarkGreen">'/// add it as an owned form. <br></font><br> <font color="blue"></font><font color="blue"></font>    frm2.Show() <font color="DarkGreen">'/// show it. <br></font><br> <font color="blue">End</font><font color="blue"></font> <font color="blue">Sub</font> <br> 


In Form2:
<font color="blue">Private</font><font color="blue"></font> <font color="blue">Sub</font> Button1_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object,<font color="blue"></font> <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button1.Click <br> <font color="blue"></font><font color="blue"></font>    <font color="blue">Dim</font> frm1 <font color="blue">As</font> Form1 = Me.Owner <br> <font color="blue"></font><font color="blue"></font>    frm1.TextBox1.AppendText("some text from Form2 , to Form1!") <br> <font color="blue">End</font><font color="blue"></font> <font color="blue">Sub</font> <br> 



hope it helps Smile | :)



Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br>     Select Case</font> twins<br>         <font color="blue">Case</font> "Gender" <br>             <font color="blue">Return</font> "Two Girls" <br>     <font color="blue">End Select <br> End Function</font> <br> 


GeneralRe: Sending information to and from different forms Pin
Emile Jacobs8-Jul-03 23:45
Emile Jacobs8-Jul-03 23:45 
QuestionHow to make VB ActiveX DLL? Pin
mr20038-Jul-03 9:19
mr20038-Jul-03 9:19 
AnswerRe: How to make VB ActiveX DLL? Pin
Hesham Amin8-Jul-03 20:45
Hesham Amin8-Jul-03 20:45 
GeneralRe: How to make VB ActiveX DLL? Pin
mr20039-Jul-03 2:49
mr20039-Jul-03 2:49 
GeneralRe: How to make VB ActiveX DLL? Pin
Hesham Amin9-Jul-03 3:45
Hesham Amin9-Jul-03 3:45 
QuestionMulti Threading Optimal Use? Pin
rlcc8-Jul-03 4:14
rlcc8-Jul-03 4:14 
AnswerRe: Multi Threading Optimal Use? Pin
Daniel Turini8-Jul-03 10:25
Daniel Turini8-Jul-03 10:25 
QuestionHow to Get \ Set The size of one col? Pin
lee12128-Jul-03 3:55
lee12128-Jul-03 3:55 
Questionhow to perform that... Pin
elmahdy7-Jul-03 13:41
elmahdy7-Jul-03 13:41 
AnswerRe: how to perform that... Pin
J. Dunlap7-Jul-03 13:46
J. Dunlap7-Jul-03 13:46 
Generaloutlook style interface Pin
yan194547-Jul-03 8:00
yan194547-Jul-03 8:00 
GeneralRe: outlook style interface Pin
apferreira8-Jul-03 6:04
apferreira8-Jul-03 6:04 
GeneralSystem.IO.DirectoryInfo.GetFiles.Getlength Pin
DxSolo7-Jul-03 6:41
DxSolo7-Jul-03 6:41 
GeneralRe: System.IO.DirectoryInfo.GetFiles.Getlength Pin
Mike Dimmick7-Jul-03 6:53
Mike Dimmick7-Jul-03 6:53 
GeneralWinForms DataGrid - colors and selecting individual cells Pin
IainJ7-Jul-03 3:58
IainJ7-Jul-03 3:58 
GeneralRe: WinForms DataGrid - colors and selecting individual cells Pin
dynamic8-Jul-03 2:03
dynamic8-Jul-03 2:03 
GeneralDeployment problem... Pin
-- NA --6-Jul-03 23:36
-- NA --6-Jul-03 23:36 

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.