Click here to Skip to main content
15,884,472 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPop Up Form Pin
Socheat.Net4-Apr-08 18:52
Socheat.Net4-Apr-08 18:52 
GeneralRe: Pop Up Form Pin
Rupesh Kumar Swami4-Apr-08 20:49
Rupesh Kumar Swami4-Apr-08 20:49 
AnswerRe: Pop Up Form Pin
Rajesh Anuhya4-Apr-08 23:36
professionalRajesh Anuhya4-Apr-08 23:36 
GeneralRe: Pop Up Form Pin
Dave Kreskowiak5-Apr-08 13:37
mveDave Kreskowiak5-Apr-08 13:37 
GeneralRe: Pop Up Form Pin
Mycroft Holmes5-Apr-08 17:53
professionalMycroft Holmes5-Apr-08 17:53 
QuestionHow to design dataTables or DataSets for forms on different panels Pin
AAGTHosting4-Apr-08 16:23
AAGTHosting4-Apr-08 16:23 
AnswerRe: How to design dataTables or DataSets for forms on different panels Pin
Ashish Sehajpal4-Apr-08 23:48
Ashish Sehajpal4-Apr-08 23:48 
GeneralRe: How to design dataTables or DataSets for forms on different panels Pin
Mycroft Holmes5-Apr-08 17:50
professionalMycroft Holmes5-Apr-08 17:50 
I generally do the opposite of what Ashish recommends. Get each table as data discreet entity (1 table per dataset)

I use 2 types of data, static for lookup lists etc and transactional. The static tables I populate the first time they are used and remain in memory. These are in a class called MasterTables eg

	'Local var to hold the table<br />
	Private mvApp As DataTable<br />
<br />
	'Public property to expose the table<br />
	Public Property App() As DataTable<br />
		Get<br />
			If mvApp Is Nothing Then<br />
				mvApp = LoadApp()<br />
			End If<br />
			Return mvApp<br />
		End Get<br />
		Set(ByVal Value As DataTable)<br />
			'this allows the system to reload the table when the value is nothing<br />
			mvApp = Value<br />
		End Set<br />
	End Property<br />
<br />
	Private Function LoadApp() As DataTable<br />
		' Load the app table from the database<br />
		Dim oClass As New clsApp<br />
		Return oClass.GetRecord(cAllRecords)<br />
	End Function


Note if you use a dataview to filter a table (when populating a list) then this can be reflected in the base table unless you copy the table.



QuestionHow Can i start? Pin
hassandot4-Apr-08 9:17
hassandot4-Apr-08 9:17 
AnswerRe: How Can i start? Pin
Dave Kreskowiak4-Apr-08 9:39
mveDave Kreskowiak4-Apr-08 9:39 
GeneralRe: How Can i start? Pin
hassanasp4-Apr-08 10:45
hassanasp4-Apr-08 10:45 
GeneralRe: How Can i start? Pin
Luc Pattyn4-Apr-08 12:07
sitebuilderLuc Pattyn4-Apr-08 12:07 
GeneralSaving Data Pin
tibmark4-Apr-08 7:23
tibmark4-Apr-08 7:23 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 8:12
mveDave Kreskowiak4-Apr-08 8:12 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:19
tibmark4-Apr-08 8:19 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 9:36
mveDave Kreskowiak4-Apr-08 9:36 
GeneralRe: Saving Data Pin
jzonthemtn4-Apr-08 8:33
jzonthemtn4-Apr-08 8:33 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:40
tibmark4-Apr-08 8:40 
GeneralRe: Saving Data Pin
A Wong4-Apr-08 8:57
A Wong4-Apr-08 8:57 
GeneralVB.net/excel/access - problem with strings and dates Pin
AHeavey4-Apr-08 6:59
AHeavey4-Apr-08 6:59 
GeneralRe: VB.net/excel/access - problem with strings and dates Pin
Dave Kreskowiak4-Apr-08 8:08
mveDave Kreskowiak4-Apr-08 8:08 
Generalapplication created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 4:29
Chun24-Apr-08 4:29 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 5:08
mveDave Kreskowiak4-Apr-08 5:08 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 5:36
Chun24-Apr-08 5:36 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 5:57
mveDave Kreskowiak4-Apr-08 5:57 

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.