CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    VB.Net Application Wizards

    Where are they ?

    In VB6 I can use the application wizard to create MSHFlexGrid Projects and Forms. While the result is a bit rough, it saves HOURS of keying the Datafield names into all the text boxes, and builds all the basic code.

    I have > 50 forms to create - a similar helping wizard would be great in VB.NET

    Is there such a project available ?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Seattle, Wa
    Posts
    179

    Re: VB.Net Application Wizards

    You can search for templates in the "new project" menu of VS.
    Instructions here: http://msdn2.microsoft.com/en-us/lib...06(VS.80).aspx

    I searched for "MSHFlexGrid" and had 4 results just in MSDN. Not sure how valid they are for what you need, but something to look at.

  3. #3
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards

    Well i don't know much about the application wizard for creating data forms in VB 6.0.
    As far as my limited knowledge there are No. of application wizards in VS 2005 in New Project window(Ctrl+N) i-e Crystal Reports application,SQL Server Project, Setup and Deployment Project and many more.

    As for creating a Data Form u can do:
    >>Make a new connection (Tools-->Connect to Database)
    You can see this new connection in Server Explorer(Ctrl+Alt+S)
    >>Add a dataset item thru Solution Explorer(Ctrl+R)
    >>DataSet Designer window opens.
    >>Drag and drop table from Server Explorer onto dataset designer.
    >>Open an empty form
    >>Drag and Drop the table added to Dataset from Data Sources window (Shift+Alt+D) onto form.
    >>I hope you will find some changes on your form.

  4. #4
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    Thanks guys

    There isn't much around

    Best I could find was EazyCode (www.eazycode.com) at $99 which will generate complete forms from various templates directly from the Database Schema

    This is exactly the type of thing I was looking for

    Has anyone had experience with this product ?

  5. #5
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    These are my options when opening a New Project in VB.Net

    Am I missing something ?

    (I have VS Studio 2005 Standard Edition)
    Attached Images Attached Images

  6. #6
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    Now I'm really confused (and feel a little cheated)

    This link shows a Windows Form Creation Wizard for VB.Net

    (Possibly it is for VB2003 not 2005)

    http://www.startvbdotnet.com/ado/dataform.aspx

    I wonder if it is a Microsoft Wizard ?

    If so, where is it ?

  7. #7
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards

    The dataForm wizard was available in previous version VS.Net 2003, its not available in the new VS2005.
    As i posted earlier there is a more easier method in VS2005.
    Just Few Step
    Code:
    1.Add a new connection in Server explorer.
    2.Add a new dataSource using this connection in dataSources window.
    3.Drop the entire table from dataset in datasources window onto form to have a datagridview, alternatively u can also add individual fields i-e adding a varchar column will result in a bound textbox and a boolean field will result in a checkbox.
    So just three steps.

  8. #8
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    Sorry, but have now tried thiseveral times and am not getting anywhere

    Is there a step by step tutorial with pictures you could recommend

    After the last step I get a bundle of errors and some XML inside the form but the form is blank

    Make a new connection (Tools-->Connect to Database)
    You can see this new connection in Server Explorer(Ctrl+Alt+S)
    >>Add a dataset item thru Solution Explorer(Ctrl+R)
    >>DataSet Designer window opens.
    >>Drag and drop table from Server Explorer onto dataset designer.
    >>Open an empty form
    >>Drag and Drop the table added to Dataset from Data Sources window (Shift+Alt+D) onto form.

    Blank Form after this

  9. #9
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards


  10. #10
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards

    Found another Link

  11. #11
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    Aniskhan, thats more like it !! - Thank you (First link is excellent)

    It is amazing how you can create a complex form which basically has one line of code - as you said, it basically does what a wizard does.

    One shortcoming is that you end up with no ability to manipulate fields easily as they all appear magically - there is no code

    The example updates a dataset only (not the database)

    Will have fun trying to make the database updated no doubt

    Will also need to add search capability

    Thank you again

  12. #12
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards

    George you will have to commit the changes to get it to the database using the save button in the toolbar that originated on your form.

    You can view all the code generated for you using Show All Files toolbar button icon in Solution Explorer.
    You can then see all the code generated by designer in the dataset and form items in Solution Explorer. Where files with extension designer.vb will have the code generated by the designer and files extension .vb are were you make enhancements.
    This division of class defination among several declaration using partial keyword is the new feature in VB 2005 called Partial Classes.

  13. #13
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    George you will have to commit the changes to get it to the database using the save button in the toolbar that originated on your form
    My Savebutton (FloppyDisk Image) is greyed out

    So I think, Enable the control, click on it and see the code

    But (as you know) it creates an event in the Form with no code in it

    No matter what I do -

    I cannot see how the arrow, add, delete, save events are triggered

    I can also add items to the toolstrip, but where is the code for the events triggered when you click a button on the toostrip ?

    (I can see the rest of the code - thanks)

  14. #14
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: VB.Net Application Wizards

    Sorry to be a nuisance

    With this project

    http://********dotnetcode.com/GdncSt...AndXMLFile.htm

    This is the project of your second link (above) which keeps getting truncated when I post - so I have attached the original full project

    The example shows a grid which can be used to key data into a dataset.

    Traditionally, I would prefer the grid as a means of Searching for records and a button "ADD" to create a new rec

    In the example picture shown I have added a form which pops up when I click on a row in the grid

    How would I get the form to show the content of the row in the grid ? (Currently it is of course blank)

    Thanks
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by George1111; April 8th, 2007 at 09:32 PM.

  15. #15
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: VB.Net Application Wizards

    Make a new overloaded constructor for the second form in which you can pass the ID column of the row selected and change the position of the bindingSource using this ID.
    can also pass selected datarow to the form ,edit it and update it.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured