Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,547 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,832 people online right now. Registration is fast and FREE... Join Now!




How to make textbox fields REQUIRED and using the USERPROFILE variable

 
Reply to this topicStart new topic

How to make textbox fields REQUIRED and using the USERPROFILE variable

jclegg42002
18 Aug, 2008 - 10:17 AM
Post #1

New D.I.C Head
*

Joined: 14 Aug, 2008
Posts: 10


My Contributions
How would one make textbox fields REQUIRED fields to enter, and im trying to set a program up for multiple variations for userprofile settings, example:

WinXP : %USERPROFILE% = C:\Documents and Settings\userhere\My Documents\
Vista : %USERPROFILE% = C:\users\userhere\My Documents\

when I dim %USERPROFILE% in any instance I get a unhandled exception error.

so what I want to do is save a file to the users My documents folder. '

sDirectory = "%USERPROFILE%" & "\My Documents\"
sFilename = "email.html"

Obviously I couldn't make this universal if there are multiple operating systems involved.


Please advise! Thanks so much!

This post has been edited by jclegg42002: 18 Aug, 2008 - 10:18 AM
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: How To Make Textbox Fields REQUIRED And Using The USERPROFILE Variable
18 Aug, 2008 - 10:18 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,997



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Are you using VB6 or a different version?
User is online!Profile CardPM
+Quote Post

jclegg42002
RE: How To Make Textbox Fields REQUIRED And Using The USERPROFILE Variable
18 Aug, 2008 - 11:47 AM
Post #3

New D.I.C Head
*

Joined: 14 Aug, 2008
Posts: 10


My Contributions
I am sorry, I am using vs2005
User is offlineProfile CardPM
+Quote Post

jclegg42002
RE: How To Make Textbox Fields REQUIRED And Using The USERPROFILE Variable
19 Aug, 2008 - 04:35 AM
Post #4

New D.I.C Head
*

Joined: 14 Aug, 2008
Posts: 10


My Contributions
bump bump, ne1?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:57PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month