Click here to Skip to main content
16,014,591 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: uninstallation icon Pin
kubben23-May-07 2:49
kubben23-May-07 2:49 
AnswerRe: uninstallation icon Pin
kubben23-May-07 2:55
kubben23-May-07 2:55 
GeneralRe: uninstallation icon [modified] Pin
Sonia Gupta23-May-07 3:02
Sonia Gupta23-May-07 3:02 
QuestionInstall True Type Font Pin
Rupesh Kumar Swami23-May-07 0:52
Rupesh Kumar Swami23-May-07 0:52 
AnswerRe: Install True Type Font Pin
Steven J Jowett23-May-07 1:18
Steven J Jowett23-May-07 1:18 
GeneralRe: Install True Type Font Pin
Rupesh Kumar Swami23-May-07 3:09
Rupesh Kumar Swami23-May-07 3:09 
GeneralRe: Install True Type Font Pin
Dave Kreskowiak23-May-07 3:46
mveDave Kreskowiak23-May-07 3:46 
QuestionOffline Test [modified] Pin
G.Manivannan23-May-07 0:51
G.Manivannan23-May-07 0:51 
Now I am doing one project in vb.net with ms access for offline test.

In my project I had one command button named as "View Questions". If I Click this button first five question will be displayed with four optional answers.

Question are displayed using Label control. And the optional answers are displayed using radio button. These controls are created at the runtime only not at the design time. The radio button are grouped into Panel and the panel control name is pane1. the radio button names are radio1,radio2,radio3,radio4.

Now problem is if I click radio1, it goes into database and check the answer in the database and if it is right answer the mark stored in the another field of the same table should returned and it should be added in the separate variable.

Anotherthing I didn't use array concept to create controls. (i.e) I had use the following line to create the conrols at runtime.

Public radio1, radio2, radio3, radio4 As Windows.Forms.RadioButton
Public pane1 As Windows.Forms.Panel
Public label As Windows.Forms.Label
label = New Label()
radio1 = New RadioButton()
radio2 = New RadioButton()
radio3 = New RadioButton()
radio4 = New RadioButton()
pane1 = New Panel()
Me.Controls.Add(label)
Me.Controls.Add(pane1)
Me.Controls.Add(radio1)
Me.Controls.Add(radio2)
Me.Controls.Add(radio3)
Me.Controls.Add(radio4)
pane1.Controls.Add(radio1)
pane1.Controls.Add(radio2)
pane1.Controls.Add(radio3)
pane1.Controls.Add(radio4)
AddHandler radio1.Click, AddressOf GenericClick
AddHandler radio2.Click, AddressOf GenericClick1
AddHandler radio3.Click, AddressOf GenericClick2
AddHandler radio4.Click, AddressOf GenericClick3


According to the no of question that are stored in the database, the controls will be created. Controls are creted by using forloop.

-- modified at 7:16 Wednesday 23rd May, 2007

Regards,
G.Manivannan M.Sc.,[IT],
Software Programmer (VBA),
AKUVA Infotech, Bangalore.

AnswerRe: Offline Test Pin
Dave Kreskowiak23-May-07 5:56
mveDave Kreskowiak23-May-07 5:56 
GeneralRe: Offline Test Pin
G.Manivannan23-May-07 18:23
G.Manivannan23-May-07 18:23 
GeneralRe: Offline Test Pin
Dave Kreskowiak24-May-07 4:10
mveDave Kreskowiak24-May-07 4:10 
GeneralRe: Offline Test Pin
G.Manivannan28-May-07 20:47
G.Manivannan28-May-07 20:47 
GeneralRe: Offline Test Pin
Dave Kreskowiak29-May-07 13:13
mveDave Kreskowiak29-May-07 13:13 
GeneralRe: Offline Test Pin
G.Manivannan30-May-07 0:06
G.Manivannan30-May-07 0:06 
GeneralRe: Offline Test Pin
Dave Kreskowiak30-May-07 14:31
mveDave Kreskowiak30-May-07 14:31 
Questionslow down performance when converting word to html Pin
koolprasad200323-May-07 0:32
professionalkoolprasad200323-May-07 0:32 
AnswerRe: slow down performance when converting word to html Pin
Dave Kreskowiak23-May-07 3:38
mveDave Kreskowiak23-May-07 3:38 
QuestionPrinting bug vb.net Pin
js8008522-May-07 21:56
js8008522-May-07 21:56 
AnswerRe: Printing bug vb.net Pin
Dave Kreskowiak23-May-07 3:36
mveDave Kreskowiak23-May-07 3:36 
GeneralRe: Printing bug vb.net Pin
js8008523-May-07 6:20
js8008523-May-07 6:20 
GeneralRe: Printing bug vb.net Pin
Dave Kreskowiak23-May-07 6:35
mveDave Kreskowiak23-May-07 6:35 
GeneralRe: Printing bug vb.net Pin
js8008523-May-07 6:53
js8008523-May-07 6:53 
GeneralRe: Printing bug vb.net Pin
Dave Kreskowiak23-May-07 7:28
mveDave Kreskowiak23-May-07 7:28 
GeneralRe: Printing bug vb.net Pin
js8008523-May-07 23:40
js8008523-May-07 23:40 
QuestionWhere do we use panel, FlowLayoutPanel and TableLayoutPanel control Pin
Mekong River22-May-07 21:19
Mekong River22-May-07 21:19 

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.