Click here to Skip to main content
13,142,182 members (58,313 online)

Visual Basic

 
AnswerRe: how to give Chinese characters sa in put in a Text box in vb.net Pin
Bernhard Hiller29-Nov-12 22:11
memberBernhard Hiller29-Nov-12 22:11 
QuestionHow to use c++ class into vba? Pin
gui.cmsilva29-Nov-12 17:16
membergui.cmsilva29-Nov-12 17:16 
QuestionHow Bind Multiple Columns under Same Label and store in database(VB 2010) Pin
charuwaka29-Nov-12 5:06
membercharuwaka29-Nov-12 5:06 
QuestionHow to make Login Page For a Windows Application Form(VB 2010) Pin
charuwaka29-Nov-12 3:41
membercharuwaka29-Nov-12 3:41 
AnswerRe: How to make Login Page For a Windows Application Form(VB 2010) Pin
Zaf Khan1-Dec-12 8:09
memberZaf Khan1-Dec-12 8:09 
QuestionVB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 2:17
membermebjen29-Nov-12 2:17 
AnswerRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 3:55
mvpDave Kreskowiak29-Nov-12 3:55 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 4:29
membermebjen29-Nov-12 4:29 
OK - lets see if this helps - have the following variable under Public Class Main:

Dim poIncNo As Integer

Then in the formLoad Event I have:

txtBx_poNo.Text = genPoNo(currUser)

Private Function genPoNo(ByVal user As String) As String
Dim strNum As String = "1"
poIncNo = My.Settings.po + 1
Dim poNum As String
Select Case user
Case uFred
poNum = strNum & userId + CStr(poIncNo)
Return poNum
End Select
End Function

In Application.Settings I have:
Name = po
Type = integer
Scope = user
Value = 100001

Thanks,

MB
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 10:36
mvpDave Kreskowiak29-Nov-12 10:36 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 10:57
membermebjen29-Nov-12 10:57 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 15:50
mvpDave Kreskowiak29-Nov-12 15:50 
QuestionMouse Down Event and Flag setting Pin
big_col28-Nov-12 19:53
memberbig_col28-Nov-12 19:53 
AnswerRe: Mouse Down Event and Flag setting Pin
Simon_Whale28-Nov-12 22:46
memberSimon_Whale28-Nov-12 22:46 
GeneralRe: Mouse Down Event and Flag setting Pin
big_col29-Nov-12 2:09
memberbig_col29-Nov-12 2:09 
GeneralRe: Mouse Down Event and Flag setting Pin
Simon_Whale29-Nov-12 3:06
memberSimon_Whale29-Nov-12 3:06 
AnswerRe: Mouse Down Event and Flag setting Pin
big_col29-Nov-12 20:19
memberbig_col29-Nov-12 20:19 
AnswerRe: Mouse Down Event and Flag setting Pin
Alan N29-Nov-12 3:09
memberAlan N29-Nov-12 3:09 
Questionvb6 to .net Pin
dvdljns28-Nov-12 7:42
memberdvdljns28-Nov-12 7:42 
AnswerRe: vb6 to .net Pin
Zaf Khan28-Nov-12 16:58
memberZaf Khan28-Nov-12 16:58 
GeneralRe: vb6 to .net Pin
dvdljns1-Dec-12 5:47
memberdvdljns1-Dec-12 5:47 
GeneralRe: vb6 to .net Pin
Zaf Khan1-Dec-12 8:00
memberZaf Khan1-Dec-12 8:00 
AnswerRe: vb6 to .net Pin
Dave Kreskowiak28-Nov-12 18:04
mvpDave Kreskowiak28-Nov-12 18:04 
QuestionDeleting a datarow, creating a query to find the row. - ANSWERED, Thank yo Pin
JRHibner27-Nov-12 23:30
memberJRHibner27-Nov-12 23:30 
AnswerRe: Deleting a datarow, creating a query to find the row. Pin
Andy_L_J28-Nov-12 22:30
memberAndy_L_J28-Nov-12 22:30 
GeneralRe: Deleting a datarow, creating a query to find the row. Pin
JRHibner1-Dec-12 7:21
memberJRHibner1-Dec-12 7:21 

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.


Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 17 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid