Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2007, 11:18 AM
Authorized User
 
Join Date: Dec 2006
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Default how to get user name to insert into column

I've been figuring out a lot of things by looking through LOTS of books, websites, and posts and MS Help.
Right now, I'm trying to figure out how to get the current user's name to put into the user_insert and user_update columns in the hidden columns of my data grid view.
So far what I have found relates to the LoginName control, which is for web pages - I'm writing a Windows Form application...
I know this has to be possible, and that some one else has to have done it already.

I would appreciate your help.
Thanks,
Karen

 
Old May 3rd, 2007, 11:25 AM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

Make the following the value of your UserName field:

My.User.Name




Best Regards,
Earl Francis





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert varchar data in numeric column dhirajDac Classic ASP Components 3 March 31st, 2008 06:23 AM
How to insert a column values in existing db (msac gilgalbiblewheel Classic ASP Databases 0 April 6th, 2005 06:53 PM
How to Insert a Column additionally in grid ramk_1978 VB How-To 2 November 9th, 2004 02:39 PM
How to Insert additional column in the Middle of a ramk_1978 BOOK: Beginning ASP 3.0 0 November 6th, 2004 09:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.