Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb.net

vb.net

Scheduled Pinned Locked Moved Visual Basic
csharp
20 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B bhawna_k

    my project is online test in vb.net.i m new to vb.net. i want to knw if ill use 1 form for each quesion then there is going to be lots of forms.is there nyway to combine multiple forms with single form bhawna

    J Offline
    J Offline
    JUNEYT
    wrote on last edited by
    #2

    I don't understand what you are asking. Do you say that you will have forms in vb.net for each question you want to ask? If that is true, you don't need to use multiple forms. Just use a single form to display your questions. For each question there is no need to call another form. Sorry I couldn't help you, please try to be more specific about it. :wtf:

    What a curious mind needs to discover knowledge is noting else than a pin-hole.

    B 1 Reply Last reply
    0
    • J JUNEYT

      I don't understand what you are asking. Do you say that you will have forms in vb.net for each question you want to ask? If that is true, you don't need to use multiple forms. Just use a single form to display your questions. For each question there is no need to call another form. Sorry I couldn't help you, please try to be more specific about it. :wtf:

      What a curious mind needs to discover knowledge is noting else than a pin-hole.

      B Offline
      B Offline
      bhawna_k
      wrote on last edited by
      #3

      actually my instructor told me to display one quesion on a single form,in this way there will be lots of form in my project.thats why im little confuse is it write or i ll find som alernative

      J 1 Reply Last reply
      0
      • B bhawna_k

        my project is online test in vb.net.i m new to vb.net. i want to knw if ill use 1 form for each quesion then there is going to be lots of forms.is there nyway to combine multiple forms with single form bhawna

        T Offline
        T Offline
        taherjaorawala
        wrote on last edited by
        #4

        form contains the lable,textbox ect.. so use the gruop box and make the property visibile =false , only make the first group box visibl so after each question when the user clicks on the next button u can set the visiblity next group box group box as true n the previous group box is set to false so if the user wans to navigate the previous question he will be able to do it. try it. taher

        1 Reply Last reply
        0
        • B bhawna_k

          actually my instructor told me to display one quesion on a single form,in this way there will be lots of form in my project.thats why im little confuse is it write or i ll find som alernative

          J Offline
          J Offline
          JUNEYT
          wrote on last edited by
          #5

          You are sounding that you got an homework. Sorry, I shouldn't help. :zzz:

          What a curious mind needs to discover knowledge is noting else than a pin-hole.

          B 1 Reply Last reply
          0
          • B bhawna_k

            my project is online test in vb.net.i m new to vb.net. i want to knw if ill use 1 form for each quesion then there is going to be lots of forms.is there nyway to combine multiple forms with single form bhawna

            M Offline
            M Offline
            manni_n
            wrote on last edited by
            #6

            i think i got yr problem.. basically u wanna display one question on each form and connect them all first of all open a windows application... add one more form name as form2 ... put yr question on form1 ,and a button named 'next'... nw under the buttton click event write this coding dim a as new form2 a.show() so wenever u'll click button on form1 u'll get form 2 add one form as form3 nw again put yr next quesion on form2 and put a button on form2 again name it as next... and under clickin event of that button write this code.. dim b as new form3 b.show() in this manner kep addin forms whichever no. u want and put yr question and button for next form... if u want "back" button also for gettin previous form, then tell me... bye enjoy coding...

            B 1 Reply Last reply
            0
            • M manni_n

              i think i got yr problem.. basically u wanna display one question on each form and connect them all first of all open a windows application... add one more form name as form2 ... put yr question on form1 ,and a button named 'next'... nw under the buttton click event write this coding dim a as new form2 a.show() so wenever u'll click button on form1 u'll get form 2 add one form as form3 nw again put yr next quesion on form2 and put a button on form2 again name it as next... and under clickin event of that button write this code.. dim b as new form3 b.show() in this manner kep addin forms whichever no. u want and put yr question and button for next form... if u want "back" button also for gettin previous form, then tell me... bye enjoy coding...

              B Offline
              B Offline
              bhawna_k
              wrote on last edited by
              #7

              whtever ur saying is the main problem,if i hav to put 100 quesion then there ll be 100 forms. is there nyway with which i can decrease no.of forms

              M 1 Reply Last reply
              0
              • J JUNEYT

                You are sounding that you got an homework. Sorry, I shouldn't help. :zzz:

                What a curious mind needs to discover knowledge is noting else than a pin-hole.

                B Offline
                B Offline
                bhawna_k
                wrote on last edited by
                #8

                not like this yaar.i m just asking a quesion.

                1 Reply Last reply
                0
                • B bhawna_k

                  my project is online test in vb.net.i m new to vb.net. i want to knw if ill use 1 form for each quesion then there is going to be lots of forms.is there nyway to combine multiple forms with single form bhawna

                  B Offline
                  B Offline
                  balakpn
                  wrote on last edited by
                  #9

                  hi dont get confused just add a label r richtext box r text box wat ever u want for displaying question on every next u just cahange the text of the control wat u r using for displaying question to next questions text just write this event on the button which is being used for retrival of next question

                  with regards Balagurunathan.B

                  B 1 Reply Last reply
                  0
                  • B bhawna_k

                    whtever ur saying is the main problem,if i hav to put 100 quesion then there ll be 100 forms. is there nyway with which i can decrease no.of forms

                    M Offline
                    M Offline
                    manni_n
                    wrote on last edited by
                    #10

                    i think its yr requirement only that each forms shud have one questions only... if u want u can add any no. of questions on one form... otherwise i think connecting it with DB cud be the option... not the nice one but jst one more way.. in wich u connect it wid DB and on each click next question will appear on same window and same label... but as i think ts jst an asssignment for u not any project.. so u need not to go dat much deep.... if u want that way .. i think i can try that... bye

                    B 1 Reply Last reply
                    0
                    • M manni_n

                      i think its yr requirement only that each forms shud have one questions only... if u want u can add any no. of questions on one form... otherwise i think connecting it with DB cud be the option... not the nice one but jst one more way.. in wich u connect it wid DB and on each click next question will appear on same window and same label... but as i think ts jst an asssignment for u not any project.. so u need not to go dat much deep.... if u want that way .. i think i can try that... bye

                      B Offline
                      B Offline
                      bhawna_k
                      wrote on last edited by
                      #11

                      this is not an assignment,my project is online test.there are three categories,computers mathematics and general english.my requirement is 1 form for each subject to display quesions. Db connectivity is not a gud options splly for me who dont knw anything abt db connectivity. somone has given me a suggesion .ill try that first otherwise definately conern

                      M 1 Reply Last reply
                      0
                      • B balakpn

                        hi dont get confused just add a label r richtext box r text box wat ever u want for displaying question on every next u just cahange the text of the control wat u r using for displaying question to next questions text just write this event on the button which is being used for retrival of next question

                        with regards Balagurunathan.B

                        B Offline
                        B Offline
                        bhawna_k
                        wrote on last edited by
                        #12

                        hiii whtever u said is working for only one click. click event on the same button is not working for second time. displaying an error " Method 'Button1_Click' has multiple definitions with identical signatures."

                        B 1 Reply Last reply
                        0
                        • B bhawna_k

                          my project is online test in vb.net.i m new to vb.net. i want to knw if ill use 1 form for each quesion then there is going to be lots of forms.is there nyway to combine multiple forms with single form bhawna

                          T Offline
                          T Offline
                          taherjaorawala
                          wrote on last edited by
                          #13

                          just copy paste the code which I think that can solve your problem this is the designer file _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) If disposing AndAlso components IsNot Nothing Then components.Dispose() End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. _ Private Sub InitializeComponent() Me.GroupBox3 = New System.Windows.Forms.GroupBox Me.GroupBox4 = New System.Windows.Forms.GroupBox Me.GroupBox6 = New System.Windows.Forms.GroupBox Me.GroupBox7 = New System.Windows.Forms.GroupBox Me.RadioButton25 = New System.Windows.Forms.RadioButton Me.RadioButton26 = New System.Windows.Forms.RadioButton Me.Label7 = New System.Windows.Forms.Label Me.RadioButton27 = New System.Windows.Forms.RadioButton Me.RadioButton28 = New System.Windows.Forms.RadioButton Me.RadioButton21 = New System.Windows.Forms.RadioButton Me.RadioButton22 = New System.Windows.Forms.RadioButton Me.Label6 = New System.Windows.Forms.Label Me.RadioButton23 = New System.Windows.Forms.RadioButton Me.RadioButton24 = New System.Windows.Forms.RadioButton Me.RadioButton13 = New System.Windows.Forms.RadioButton Me.RadioButton14 = New System.Windows.Forms.RadioButton Me.Label4 = New System.Windows.Forms.Label Me.RadioButton15 = New System.Windows.Forms.RadioButton Me.RadioButton16 = New System.Windows.Forms.RadioButton Me.RadioButton9 = New System.Windows.Forms.RadioButton Me.RadioButton10 = New System.Windows.Forms.RadioButton Me.Label3 = New System.Windows.Forms.Label Me.RadioButton11 = New System.Windows.Forms.RadioButton Me.RadioButton12 = New System.Windows.Forms.RadioButton Me.Button1 = New System.Windows.Forms.Button Me.Button2 = New System.Windows.Forms.Button Me.GroupBo

                          B 1 Reply Last reply
                          0
                          • B bhawna_k

                            this is not an assignment,my project is online test.there are three categories,computers mathematics and general english.my requirement is 1 form for each subject to display quesions. Db connectivity is not a gud options splly for me who dont knw anything abt db connectivity. somone has given me a suggesion .ill try that first otherwise definately conern

                            M Offline
                            M Offline
                            manni_n
                            wrote on last edited by
                            #14

                            yr problem is changin wid each reply yaar.... earlier u were in need of one question on one form.... then u wanna decrease no. of forms... and nw its three subjects.... finally make three forms for three subjects... and put all the questions on respective forms.. hw u have to join them , i have already told ya... if still its nt resolved.... then probably u r not able to describe yr problems... put yr requiement in specific and easy manner

                            B 1 Reply Last reply
                            0
                            • M manni_n

                              yr problem is changin wid each reply yaar.... earlier u were in need of one question on one form.... then u wanna decrease no. of forms... and nw its three subjects.... finally make three forms for three subjects... and put all the questions on respective forms.. hw u have to join them , i have already told ya... if still its nt resolved.... then probably u r not able to describe yr problems... put yr requiement in specific and easy manner

                              B Offline
                              B Offline
                              bhawna_k
                              wrote on last edited by
                              #15

                              aap ek subject ke liye reply karo mai tino par same apply karungi.ur right i cannot specify my problem. leave it i got solution for my problem which create another problem if ur interested then i ll explain u

                              M 1 Reply Last reply
                              0
                              • B bhawna_k

                                hiii whtever u said is working for only one click. click event on the same button is not working for second time. displaying an error " Method 'Button1_Click' has multiple definitions with identical signatures."

                                B Offline
                                B Offline
                                balakpn
                                wrote on last edited by
                                #16

                                if u dont mind send me the coding i think u have done mistkae take the values in dataset have a static variable r any thing to loop and display it

                                with regards Balagurunathan.B

                                1 Reply Last reply
                                0
                                • T taherjaorawala

                                  just copy paste the code which I think that can solve your problem this is the designer file _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) If disposing AndAlso components IsNot Nothing Then components.Dispose() End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. _ Private Sub InitializeComponent() Me.GroupBox3 = New System.Windows.Forms.GroupBox Me.GroupBox4 = New System.Windows.Forms.GroupBox Me.GroupBox6 = New System.Windows.Forms.GroupBox Me.GroupBox7 = New System.Windows.Forms.GroupBox Me.RadioButton25 = New System.Windows.Forms.RadioButton Me.RadioButton26 = New System.Windows.Forms.RadioButton Me.Label7 = New System.Windows.Forms.Label Me.RadioButton27 = New System.Windows.Forms.RadioButton Me.RadioButton28 = New System.Windows.Forms.RadioButton Me.RadioButton21 = New System.Windows.Forms.RadioButton Me.RadioButton22 = New System.Windows.Forms.RadioButton Me.Label6 = New System.Windows.Forms.Label Me.RadioButton23 = New System.Windows.Forms.RadioButton Me.RadioButton24 = New System.Windows.Forms.RadioButton Me.RadioButton13 = New System.Windows.Forms.RadioButton Me.RadioButton14 = New System.Windows.Forms.RadioButton Me.Label4 = New System.Windows.Forms.Label Me.RadioButton15 = New System.Windows.Forms.RadioButton Me.RadioButton16 = New System.Windows.Forms.RadioButton Me.RadioButton9 = New System.Windows.Forms.RadioButton Me.RadioButton10 = New System.Windows.Forms.RadioButton Me.Label3 = New System.Windows.Forms.Label Me.RadioButton11 = New System.Windows.Forms.RadioButton Me.RadioButton12 = New System.Windows.Forms.RadioButton Me.Button1 = New System.Windows.Forms.Button Me.Button2 = New System.Windows.Forms.Button Me.GroupBo

                                  B Offline
                                  B Offline
                                  balakpn
                                  wrote on last edited by
                                  #17

                                  dont use group box and all ur query is very simple u use just a single label set ur question as text its over

                                  with regards Balagurunathan.B

                                  T 1 Reply Last reply
                                  0
                                  • B bhawna_k

                                    aap ek subject ke liye reply karo mai tino par same apply karungi.ur right i cannot specify my problem. leave it i got solution for my problem which create another problem if ur interested then i ll explain u

                                    M Offline
                                    M Offline
                                    manni_n
                                    wrote on last edited by
                                    #18

                                    no problem... go ahead...

                                    1 Reply Last reply
                                    0
                                    • B balakpn

                                      dont use group box and all ur query is very simple u use just a single label set ur question as text its over

                                      with regards Balagurunathan.B

                                      T Offline
                                      T Offline
                                      taherjaorawala
                                      wrote on last edited by
                                      #19

                                      but u cannot go back to the previous question u can only navigate the next question

                                      B 1 Reply Last reply
                                      0
                                      • T taherjaorawala

                                        but u cannot go back to the previous question u can only navigate the next question

                                        B Offline
                                        B Offline
                                        balakpn
                                        wrote on last edited by
                                        #20

                                        u have to think a lot in concept if u want only the question you have to use another button and reduce the value one by one . if with answers then u have to store in database and have to do some extra thinks toretrive think a bit same as increasing the count we going to decrease the count

                                        with regards Balagurunathan.B

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups