Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMSHflexgrid and images question Pin
Tarek Jabri5-Jun-06 3:01
Tarek Jabri5-Jun-06 3:01 
Questionplease help me sm the chlbx items,pleeease Pin
nellyvb.net5-Jun-06 2:20
nellyvb.net5-Jun-06 2:20 
AnswerRe: please help me sm the chlbx items,pleeease Pin
Rey99995-Jun-06 2:38
Rey99995-Jun-06 2:38 
QuestionTextBox language !! Pin
Tamimi - Code5-Jun-06 1:07
Tamimi - Code5-Jun-06 1:07 
QuestionCatch an event from another form Pin
Rey99995-Jun-06 0:05
Rey99995-Jun-06 0:05 
AnswerRe: Catch an event from another form Pin
Robert Rohde5-Jun-06 0:18
Robert Rohde5-Jun-06 0:18 
GeneralRe: Catch an event from another form Pin
Rey99995-Jun-06 2:20
Rey99995-Jun-06 2:20 
GeneralRe: Catch an event from another form Pin
arcticbrew6-Jun-06 9:41
arcticbrew6-Jun-06 9:41 
This code works in Visual Studio 2003. Form1 has a ListBox on it. Form2 has two command buttons named btn1frm2 and btn2frm2. Programatically create two command buttons on form1 and set them equal to the command buttons on form2. Now you can capture the events from the buttons on form2 in the event handlers for the buttons you programatically created on form1 as follows:

    Private WithEvents b1f2 As Button<br />
    Private WithEvents b2f2 As Button<br />
<br />
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
        Dim form2 As New Form2<br />
<br />
        b1f2 = form2.btn1frm2<br />
        b2f2 = form2.btn2frm2<br />
        AddHandler b1f2.Click, AddressOf b1f2_click<br />
        AddHandler b2f2.Click, AddressOf b2f2_click<br />
<br />
        form2.Show()<br />
<br />
    End Sub<br />
<br />
    Private Sub b1f2_click(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
        ListBox1.Items.Add("1")<br />
    End Sub<br />
<br />
    Private Sub b2f2_click(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
        ListBox1.Items.Add("2")<br />
    End Sub<br />

QuestionBrowser Pin
Socheat.Net4-Jun-06 22:58
Socheat.Net4-Jun-06 22:58 
QuestionFinding maximum value from a series... Pin
mayhem_rules4-Jun-06 22:56
mayhem_rules4-Jun-06 22:56 
AnswerRe: Finding maximum value from a series... Pin
Tamimi - Code4-Jun-06 23:44
Tamimi - Code4-Jun-06 23:44 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 0:02
mayhem_rules5-Jun-06 0:02 
GeneralRe: Finding maximum value from a series... Pin
Robert Rohde5-Jun-06 0:13
Robert Rohde5-Jun-06 0:13 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 0:23
mayhem_rules5-Jun-06 0:23 
AnswerRe: Finding maximum value from a series... Pin
Guffa5-Jun-06 0:47
Guffa5-Jun-06 0:47 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 1:14
mayhem_rules5-Jun-06 1:14 
AnswerRe: Finding maximum value from a series... Pin
J4amieC6-Jun-06 0:00
J4amieC6-Jun-06 0:00 
QuestionMotherboard Unique ID number Pin
Rod Simmons4-Jun-06 22:44
Rod Simmons4-Jun-06 22:44 
QuestionReading Excel File error Pin
pirogramci4-Jun-06 22:30
pirogramci4-Jun-06 22:30 
AnswerRe: Reading Excel File error Pin
Tamimi - Code4-Jun-06 22:35
Tamimi - Code4-Jun-06 22:35 
QuestionHow to Disable Task bar, Special Keyboard functions? Pin
Krishnaraj Barvathaya B4-Jun-06 21:45
Krishnaraj Barvathaya B4-Jun-06 21:45 
QuestionConnection Error Pin
zenithmaximus4-Jun-06 19:23
zenithmaximus4-Jun-06 19:23 
AnswerRe: Connection Error Pin
Hesham Amin4-Jun-06 21:22
Hesham Amin4-Jun-06 21:22 
AnswerRe: Connection Error Pin
Mekong River4-Jun-06 21:35
Mekong River4-Jun-06 21:35 
QuestionCombinational Keys as Hot Keys Pin
sujanakar4-Jun-06 18:13
sujanakar4-Jun-06 18:13 

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.