473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Lost in OO… (in VB.NET 2003)

RG
Sorry, I’m new to OO (thought I’ve programmed for decades in other
languages), and though what I want to do here seems so trivial, I’m just not
getting it to work (despite all the OO example exercises I’ve gone through in
my books):

- I have a Form with many labels (including Label1 & Label2, let’s say).
- When you click on Label1, another form is shown (which is actually a
dialog).
- On the dialog, I have radio buttons.
- When you click on a radio button, I need to set the Text property of
Label2 (back on the first Form) to a certain value.

That’s it. Thanks for your help.

--
RG
Nov 21 '05 #1
3 1173
RG,

Did yo not see my sample?

Cor

"RG" <rg@medworks.com> schreef in bericht
news:BB**********************************@microsof t.com...
Sorry, I'm new to OO (thought I've programmed for decades in other
languages), and though what I want to do here seems so trivial, I'm just
not
getting it to work (despite all the OO example exercises I've gone through
in
my books):

- I have a Form with many labels (including Label1 & Label2, let's say).
- When you click on Label1, another form is shown (which is actually a
dialog).
- On the dialog, I have radio buttons.
- When you click on a radio button, I need to set the Text property of
Label2 (back on the first Form) to a certain value.

That's it. Thanks for your help.

--
RG

Nov 21 '05 #2
RG
Sorry, No, I did not see your sample. Something must have gone wrong with my
post the first time - I received no replies, so I re-submitted it last night,
and all I have now is your one-sentence question. Please let me see your
sample again, if you would. Thanks very much.
--
RG
"Cor Ligthert [MVP]" wrote:
RG,

Did yo not see my sample?

Cor

"RG" <rg@medworks.com> schreef in bericht
news:BB**********************************@microsof t.com...
Sorry, I'm new to OO (thought I've programmed for decades in other
languages), and though what I want to do here seems so trivial, I'm just
not
getting it to work (despite all the OO example exercises I've gone through
in
my books):

- I have a Form with many labels (including Label1 & Label2, let's say).
- When you click on Label1, another form is shown (which is actually a
dialog).
- On the dialog, I have radio buttons.
- When you click on a radio button, I need to set the Text property of
Label2 (back on the first Form) to a certain value.

That's it. Thanks for your help.

--
RG


Nov 21 '05 #3
RG,

A very simple way to begin with. (jroughly typed in this message

In the label click event (I would use a button which appearance is set to
flat) of your mainform

dim frm as new extraform
frm.ShowDialog
label2.text = frm.LabelTextField
frm.Dispose

frm.LabelTextField is in your extraform
Public LabelTextField as string.

This you string you fill in the event from that radiobutton and than end of
that event you set me.close

I hope this helps,

Cor
"RG" <rg@medworks.com> schreef in bericht
news:F3**********************************@microsof t.com...
Sorry, No, I did not see your sample. Something must have gone wrong with
my
post the first time - I received no replies, so I re-submitted it last
night,
and all I have now is your one-sentence question. Please let me see your
sample again, if you would. Thanks very much.
--
RG
"Cor Ligthert [MVP]" wrote:
RG,

Did yo not see my sample?

Cor

"RG" <rg@medworks.com> schreef in bericht
news:BB**********************************@microsof t.com...
> Sorry, I'm new to OO (thought I've programmed for decades in other
> languages), and though what I want to do here seems so trivial, I'm
> just
> not
> getting it to work (despite all the OO example exercises I've gone
> through
> in
> my books):
>
> - I have a Form with many labels (including Label1 & Label2, let's
> say).
> - When you click on Label1, another form is shown (which is actually a
> dialog).
> - On the dialog, I have radio buttons.
> - When you click on a radio button, I need to set the Text property of
> Label2 (back on the first Form) to a certain value.
>
> That's it. Thanks for your help.
>
> --
> RG


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
by: Davor | last post by:
Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone...
11
by: sklett | last post by:
I have created a series of classes for my business layer, data retrieval is working fine and things seem good. However I have quickly discovered a design flaw in my system in that my objects...
0
by: Fred | last post by:
w/ the same problem: " Hi, When I try to create a new web project, or "add existing project from web" or "open from source control" i'm prompted for a URL and type in a virtual directory. ...
4
by: Edward | last post by:
I don't know if this has been covered here, but a search didn't reveal a good fit. Sorry in advance and all that. SCENARIO. Small software house used to building small, bespoke apps using VB6,...
1
by: RG | last post by:
Sorry, I’m new to OO (thought I’ve programmed for decades in other languages), and though what I want to do here seems so trivial, I’m just not getting it to work (despite all the OO example...
3
by: Smitro | last post by:
Hi all, I have spent the last couple of days getting my code up to scratch with PHP 5 and MySQL 5. (I still don't quite understand why we had to change to mysqli from mysql) Just a question,...
2
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting...
45
by: Master Programmer | last post by:
- Constant language / system changes - Dropping of the VB language - Security configuation minefields - Loss of old code base - Time consuming to learn (then it changes every 5 minutes) - Slow...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.