Click here to Skip to main content
15,883,835 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to find/copy image stored into ImageList controls Pin
Samarjeet Singh@india27-Aug-10 1:10
Samarjeet Singh@india27-Aug-10 1:10 
AnswerRe: How to find/copy image stored into ImageList controls Pin
Goutam Patra27-Aug-10 3:34
professionalGoutam Patra27-Aug-10 3:34 
GeneralRe: How to find/copy image stored into ImageList controls Pin
Samarjeet Singh@india27-Aug-10 4:57
Samarjeet Singh@india27-Aug-10 4:57 
QuestionPass value from One form to another Pin
.NetDeveloper0921-Aug-10 22:19
.NetDeveloper0921-Aug-10 22:19 
AnswerRe: Pass value from One form to another Pin
Abhinav S21-Aug-10 22:43
Abhinav S21-Aug-10 22:43 
GeneralRe: Pass value from One form to another Pin
.NetDeveloper0921-Aug-10 22:51
.NetDeveloper0921-Aug-10 22:51 
GeneralRe: Pass value from One form to another Pin
.NetDeveloper0922-Aug-10 2:01
.NetDeveloper0922-Aug-10 2:01 
GeneralRe: Pass value from One form to another Pin
johannesnestler26-Aug-10 3:33
johannesnestler26-Aug-10 3:33 
D'Oh! | :doh: ... you are allocating ("New") another instance in your Ok and Closed-Handler - this is a simple mistake. Your code smells like "beginner-style" maybe you want to learn about "variable scope"?

Solution:
1. Make a public property for Form2 which will give you the textbox.Text (you did that)
2. Read the property after showing the Form
-> Simple, isn't it?
3. Sit down and read a book about programming before you do further coding... (variable scope is always a thing you need to know, in any language)

Public Class Form1

      Public _form2 As Form2 = New Form2

      Private Sub btnList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnList.Click
            _form2.Show()
            tbxVal.Text = _form2.textBox1

      End Sub

      Public WriteOnly Property _textBox() As String

            Set(ByVal Value As String)

                  tbxVal.Text = Value

            End Set

      End Property

End Class

GeneralRe: Pass value from One form to another Pin
.NetDeveloper0926-Aug-10 9:59
.NetDeveloper0926-Aug-10 9:59 
GeneralRe: Pass value from One form to another Pin
Luc Pattyn26-Aug-10 10:45
sitebuilderLuc Pattyn26-Aug-10 10:45 
GeneralRe: Pass value from One form to another Pin
.NetDeveloper0927-Aug-10 2:00
.NetDeveloper0927-Aug-10 2:00 
AnswerRe: Pass value from One form to another Pin
Pete O'Hanlon26-Aug-10 4:21
mvePete O'Hanlon26-Aug-10 4:21 
QuestionBinding a controls enabled property to a static class property based on a separate threads state Pin
Mycroft Holmes19-Aug-10 17:05
professionalMycroft Holmes19-Aug-10 17:05 
AnswerRe: Binding a controls enabled property to a static class property based on a separate threads state Pin
Luc Pattyn19-Aug-10 18:01
sitebuilderLuc Pattyn19-Aug-10 18:01 
GeneralRe: Binding a controls enabled property to a static class property based on a separate threads state Pin
Mycroft Holmes19-Aug-10 19:41
professionalMycroft Holmes19-Aug-10 19:41 
GeneralRe: Binding a controls enabled property to a static class property based on a separate threads state Pin
Luc Pattyn20-Aug-10 1:31
sitebuilderLuc Pattyn20-Aug-10 1:31 
GeneralRe: Binding a controls enabled property to a static class property based on a separate threads state Pin
Mycroft Holmes20-Aug-10 3:24
professionalMycroft Holmes20-Aug-10 3:24 
Questionhow to make window form control scale with the form Pin
neodeaths17-Aug-10 0:08
neodeaths17-Aug-10 0:08 
AnswerRe: how to make window form control scale with the form Pin
Richard Blythe17-Aug-10 7:20
Richard Blythe17-Aug-10 7:20 
AnswerRe: how to make window form control scale with the form Pin
dan!sh 17-Aug-10 7:36
professional dan!sh 17-Aug-10 7:36 
AnswerRe: how to make window form control scale with the form Pin
johannesnestler26-Aug-10 3:44
johannesnestler26-Aug-10 3:44 
QuestionChange .exe icon Pin
Abdullah S. Abdelhay15-Aug-10 0:17
Abdullah S. Abdelhay15-Aug-10 0:17 
AnswerRe: Change .exe icon Pin
Richard MacCutchan15-Aug-10 1:13
mveRichard MacCutchan15-Aug-10 1:13 
AnswerRe: Change .exe icon Pin
ignrod15-Aug-10 5:51
ignrod15-Aug-10 5:51 
Questionclose form from its usercontrol Pin
Marcel Vreuls (www.agentbase.nl)13-Aug-10 11:18
Marcel Vreuls (www.agentbase.nl)13-Aug-10 11:18 

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.