.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> VB.Net >> Post New QuestionBookmark and Share Subscribe to Forum

display result based on id in GridView

Posted By: Catherine     Posted Date: April 15, 2011    Points:5   Category :VB.Net
Hi i am using more than one form. In one form i give employee details. i would like to access in another form when i enter id. how should i link one form to another. then tell how to access when i enter id it should display the all details about employee.

Author: Mahesh             
Posted Date: April 17, 2011     Points: 20   

if you r displaying employee details on previous form on controls like Textbox, Combobox etc.. then create an object of previous form, and on the other form,

Form 2,
public objForm1 as object

on Form 1,
when calling form 2 use,
dim objForm2 as new Form2
objForm2.objForm1 = me

then on Form2,
you can use,
e.g. objForm1.textbox.text

if u r not using controls then declare public variables on Form1 and assign them values and you can use this variables in the same way as disscussed above...

hope this will help u..


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend