Click here to Skip to main content
15,893,486 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to put flash in vb.net Pin
Vimal Raj20-Jan-06 20:16
Vimal Raj20-Jan-06 20:16 
AnswerRe: how to put flash in vb.net Pin
Mekong River21-Jan-06 4:41
Mekong River21-Jan-06 4:41 
Questiondatagrid header text Pin
Pravin H20-Jan-06 14:51
Pravin H20-Jan-06 14:51 
AnswerRe: datagrid header text Pin
abhinish20-Jan-06 18:30
abhinish20-Jan-06 18:30 
AnswerRe: datagrid header text Pin
Dave Kreskowiak21-Jan-06 4:26
mveDave Kreskowiak21-Jan-06 4:26 
AnswerRe: datagrid header text Pin
Mekong River21-Jan-06 4:48
Mekong River21-Jan-06 4:48 
QuestionSearch button Pin
shakizil20-Jan-06 7:07
shakizil20-Jan-06 7:07 
AnswerRe: Search button Pin
Mike K. Clark20-Jan-06 9:50
Mike K. Clark20-Jan-06 9:50 
I believe that I understand your problem. This is how you would go about doing it. I don't know what server you are trying to run off of (MS Sql server, oracle, an internal dataset application, whatever) but you would have to setup a dataconnection to call the information from the server, then you would have to setup a dataset off of that dataconnection to actually go in and retrieve the data, once you put the dataset control in your environment you have to bind the properties of it so that it uses the dataconnection. I believe the property is datasource (if you set the data source to your connection which could be named mydbcon or whatever you named it) the data source allows the dataset to connect through the dataconnection type which actually the dataconnection only connects to the server, logs in, then the dataset retrieves the information requested from the server. .Net has server control boud functions for this that login to a server and retrieve data from it based off of data connections and datasets. These controls should automatically be placed inside your toolbox in VStudios. The next step that I am about to arrive at is binding the button search to display the dataset on the next control. This is probably the easiest part. We will display Form2 with the dataset control on the form using the nice easy
With New function that is supported in VB.Net. This is how you would call Form2 to load on the button click event to display with the dataset object:

Private Sub btnsearch_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click<br />
With New Form2<br />
.Show()<br />
    End With<br />
End Sub<br />

Now I don't know how you have your environment setup but if you have the dataset object to display on the load of form2 then you have to set the search results to bind with the search query given. Again you can do this using the with New function.
I apologize if this sounds confusing, I am at school and don't have Visual Studios on me so I am having to do this all off my head Wink | ;) If you have any further questions or problems MSDN libraries is a great resource on explaining how to connect datasets to dataconnections and dataconnections to servers (or any other programming problems you may arrive at). Thanks hope this helps!

~ Mike
GeneralRe: Search button Pin
shakizil20-Jan-06 10:48
shakizil20-Jan-06 10:48 
AnswerRe: Search button Pin
Mike K. Clark20-Jan-06 13:42
Mike K. Clark20-Jan-06 13:42 
GeneralRe: Search button Pin
Icharus20-Jan-06 15:20
Icharus20-Jan-06 15:20 
QuestionDateTimepicker Pin
shakizil20-Jan-06 5:44
shakizil20-Jan-06 5:44 
AnswerRe: DateTimepicker Pin
Dave Kreskowiak20-Jan-06 6:15
mveDave Kreskowiak20-Jan-06 6:15 
GeneralRe: DateTimepicker Pin
shakizil20-Jan-06 6:23
shakizil20-Jan-06 6:23 
GeneralRe: DateTimepicker Pin
Dave Kreskowiak20-Jan-06 6:30
mveDave Kreskowiak20-Jan-06 6:30 
GeneralRe: DateTimepicker Pin
Mekong River21-Jan-06 4:53
Mekong River21-Jan-06 4:53 
GeneralRe: DateTimepicker Pin
Dave Kreskowiak21-Jan-06 8:36
mveDave Kreskowiak21-Jan-06 8:36 
AnswerRe: DateTimepicker Pin
Mike K. Clark20-Jan-06 6:26
Mike K. Clark20-Jan-06 6:26 
GeneralRe: DateTimepicker Pin
shakizil20-Jan-06 6:36
shakizil20-Jan-06 6:36 
Questionefficient control redrawing Pin
JW73820-Jan-06 4:46
JW73820-Jan-06 4:46 
AnswerRe: efficient control redrawing Pin
Dave Kreskowiak20-Jan-06 6:05
mveDave Kreskowiak20-Jan-06 6:05 
GeneralRe: efficient control redrawing Pin
JW73820-Jan-06 16:42
JW73820-Jan-06 16:42 
GeneralRe: efficient control redrawing Pin
Dave Kreskowiak20-Jan-06 18:14
mveDave Kreskowiak20-Jan-06 18:14 
GeneralRe: efficient control redrawing Pin
JW73820-Jan-06 21:15
JW73820-Jan-06 21:15 
QuestionProgram works in debug but exe has errors Pin
jonathan1520-Jan-06 4:16
jonathan1520-Jan-06 4:16 

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.