Find Nationality Of User?

Jul 12, 2010

How can I find the country that a user resides in?

I need to be able to create an IF statement to check if they are from the U.S or U.K, and perform one action, if not perform something else.

View 10 Replies


ADVERTISEMENT

Save Application Settings But For USER But Cannot Find The User.config File

Aug 7, 2009

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file

when does this file get created?

i searched my entire hardrive. i also searched the entire project.

View 2 Replies

Find And Interact With A User Control On Page From Separate User Control?

Oct 17, 2011

I have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.

I was thinking I could do something like this:

Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")

...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.

View 2 Replies

Find If User Is XP Or Vista

Oct 21, 2009

How would I go about doing this? Like maybe if this folder exsists then user=vista else user=XP? How would I go about doing this?

View 4 Replies

Find The Last User Input?

Jul 27, 2005

I am trying to have my program time out if the user lets it sit idle for an amount of time. Is there an easy way to find the last user input? I am using VB.NET.

View 4 Replies

Find User In A Group?

Aug 18, 2009

I have some code that checks user authentication in a windows .VB .NET 2008 program.

We have 5 plants, each with its own HR plant department. Each plant has an AD group called "HR-Plant1", "HR-Plant2" ect. with its user/members.

I'm looking for some code that will take the windows user name, check to see if that user is in a certain plants group and then let him into that form. We would then dump the need for the user to login to authenticate.

Each form reads data from there local SQL DB and we already have setup that in the app.config.

In looking I couldn't seem to find any good code on passing in the group name into an AD query and verifying a single user is a member.

View 8 Replies

Where To Find The User Name And The Password Of Msn In Pc

Feb 16, 2009

where can i find the user name and the password of msn in my pc

View 1 Replies

Find Out Remote Cp Logged On User?

May 21, 2010

I want to know if its possible to retrieve from a given address (IP) the currently logged on user.

View 5 Replies

Find User Input In Datagridview?

Oct 26, 2009

Probably I am asking something stupid. I have a datagridview in which I would like to be able to let the user change values of multiple columns by entering values (input 55.0) or additions(input +1.2)/decreases(input -1.2).How can I check what the exact input of the user is ?

At the moment I only use the input value (so for exampel 55.0) for which I use the DataGridView1.CurrentCell.Value which I put in all selected cells, but I would like to receive the exact user input (so eg '+1.2')

View 1 Replies

How To Find If User Is Scrolling Up Or Down In A Textbox?

Mar 23, 2012

I have a textbox with multiline enabled. I want to find out if the user is scrolling up or scrolling down on that text box. Is there a way to find it out?

View 1 Replies

How To Find Out Owner / User Running Any Process

Jun 20, 2011

I'm fairly new to vb.net and trying to get information for a project at work! Basically I can list all the applications running on a machine, I cannot however retrieve the details of the user running it! At the moment I'm using the following code after importing System.ServiceProcess and System.Diagnostics.Process:

Public Sub GetProcess()
Dim pr As Process
A = 0
For Each pr In Process.GetProcesses(System.Environment.MachineNam e)
ReDim Preserve arrProcess(A)
arrProcess(A) = New String() {pr.ProcessName.ToString, Process.GetCurrentProcess.PrivateMemorySize64}
A = A + 1
Next
End Sub

I have tried using pr.StartInfo.UserName but that just returns the username of the person logged onto the machine.

View 5 Replies

[2005] - ReportViewer: Find Out If The User Has Printed?

Jul 8, 2008

I'm trying to determine if a user has printed a report from the ReportViewer control, so I can write the date/time and username to a database table as part of an audit trail.When the user opens a report there is a print button, which calls up a standard print dialog box.However I can't find any way to determine whether the print button has been clicked or not. The reportviewer has a Print event, but this is no good as it's called before the print dialogue is displayed.

View 6 Replies

C# - Find Through Which Network Device User Is Connected To Internet?

Apr 1, 2011

Using the code below i will get all network interfaces wich are enabled and functional on the machine.

Private netIntrfc As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
For i As Integer = 0 To netIntrfc.Length - 1
If netIntrfc(i).OperationalStatus = OperationalStatus.Up Then

[code]....

But my problem is how to get the default one, the one(ethernet adapter) through wich user is connected to internet?I need to change some settings of default(through wich user is connected to internet) adapter. settings i change through registry so i could sample add same settings for each network interface but that could cause problems and makes no point then?

EDITED:for now i have done like code below, so if this can help someone other...

Dim u As UdpClient = New UdpClient(System.Net.Dns.GetHostName, 1)
Dim localAddr As IPAddress = CType(u.Client.LocalEndPoint, IPEndPoint).Address
Private netIntrfc As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()

[code]....

View 1 Replies

Can't Find File When Running Under Limited User (Vista)

Mar 25, 2009

My program runs under a limited account, and uses impersonation to access admin codeI also have a program in the same folder, that my program runs sometimes when it exitsBoth exe files are in the same folder in the "Program Files" folderIf I try to run the other file, I get a not found error.If I Raise the first program to admin (even though it should already have admin rights due to impersonate) it can run the second file.1. I don't want to raise to admin.2. I'm using the full path and file name to the file.3. That do i need so that dot net can find the file so that it runs.

View 2 Replies

Find File By Extension And Last Accessed Time And If Possible User Id

Dec 6, 2011

I am brand new to VB and been advised it might be the best thing to use for my problem, so here goes. I need to be able to scan a machine for all excel and access db files and list them by name and last accessed time. I would like to be able to do this in bulk so more than 1 machine at a time but thinking it my be best to do each machine seperately.

When I have the data I need it to be exported in a list to either excel or a text file or anything really. Als if possible how would I add the machine name to the list so I know which one i have scanned. I have been searching the forums and google but think I am getting more confussed as this is a whole new world for me.

View 5 Replies

Find If User Is Member Of Active Directory Group ASP.NET?

Jul 6, 2010

I am using Active Directory to authenticate users for an intranet site. I would like to refine the users that are authenticated based on the group they are in in Active Directory. how to find what groups a user is in in ASP.NET 4.0 (VB)?

View 3 Replies

Find Out What Active Directory Groups A User Belongs To?

Mar 8, 2012

how to find out what Active Directory groups a user belongs to? I already have the code finding out their username but now I need to find out what group they belong to so I can assign the relevant photocopier code.

View 1 Replies

Programmatically Find Out A Domain User's Last Login Machine Name (or IP)?

Jan 20, 2010

I am able to find out when is the last time a user log into a domain but I am also wondering if it is possible to find out what's the machine's name or IP.

In my Active Directory, I see there is an attribute called logonWorkstation but it seems not being used (no value stored)

View 1 Replies

VS 2010 Allow User To Find An Image File And Put Into A Form

Dec 31, 2010

Finished with my overlay program. Now I want to give users the ability to show their own images. [URL] That is an example of the program. Currently on the right I just have a drop down box with that image tied to a form. I want to have a blank form that allows people to select from files on their own computer to be displayed. Edit: Just realized the print screen didn't work (well, obviously it worked) but it didn't capture my overlay. Will try to take another. Let me know if you have any questions,

View 1 Replies

Math.min - Find Smallest Number Typed By User In Text Box 1

May 3, 2011

I have two text boxes on my form. text box 1 allows a user to type in a number (decimal) and text box 2 will display the smallest number typed in so far. The idea is to find the smallest number typed in by the user in text box 1, by using the Math.min method to compare each number typed in by the user to a variable that contains the smallest number to the point. Then replace the variable value with the smaller of the two numbers. To make it work for the first number. I have to initialize the variable to 99999. (no if else statements should be used).

View 3 Replies

Windows - Find Out Where In User Code An Internal .Net Exception Originated?

Feb 27, 2010

I am currently working on an existing Windows Forms application (VB.net), and am busy reworking the exception handling mechanism.Currently, a lot of methods in the code are just surrounded with try/catch block that catches a generic exception and then calls a utility method that just shows the user a messagebox informing him of the error, and then logging it.So in a lot of cases no corrective action is taken and the exception is just logged. I know this probably isn't the best way but that's they way we're gonna have to do it for the near future.Anyway, I wanted to do this in a more generic way, so I hooked up Application.ThreadException and AppDomain.UnhandledException.

This seems to work well, except for one inconvenience. Whenever an error gets thrown from the .net runtime itself, or a 3rd party control, the stacktrace begins there where the exception is thrown in the framework-methods or 3rd party methods (obviously!)But it would be handier if I had an easy way of finding out exactly where these exceptions cross the boundary into my code. I would like an easy way of determining (in Application.ThreadException) where in my own code an exception originated. am aware this information is contained in the Exception.StackTrace property, but I would like an easy way to get to this specific information seeing as the stacktrace property is one huge string.

View 3 Replies

Query - Find All Records In A Table In Which A User Enters A Search Word

Nov 22, 2010

I need to do a query in which I can find all records in a table in which a user enters a search word. The word to be searched for will be a word in a column. If there's a table named solutions and in the table there is a field named description; i need to be able to pull up all records where for example the search word is 'printer' is in the description column. I don't have any code or database structure to show. I first need to know if this can be done. Can someone supply a code snippet example or tell me what SQL keywords will do this, or some pointer?

View 4 Replies

Using FreeFile And OpenFile Functions To Find File-locking User Name Over Network?

Mar 16, 2012

using FreeFile and OpenFile functions to find file-locking user name over network

View 12 Replies

Loop The Datagrid And Find The Selected Row Columns Value When The User Click The Save Button?

May 18, 2011

I am using datagridview to show the data when the form load.Datagridview have a template checkbox column also where the user will select the class to attend.I want to loop the datagrid and find the selected row ro columns value when the user click the save button How i do this am using vb.net 2008?

View 8 Replies

VS 2005 Make Live Search Form Like When User Enter 1 Char Then It Ll Find All Data Start With Or Contain Letter?

Jun 19, 2009

I want to make live search form like when user enter 1 char then it ll find all data start with or contain letter.i have use the sql like query with textbox textchanged event but it is too slow any other method to make it fast?

View 4 Replies

Find The Handle Of The Child Window For The Yes Button In The User Account Control Window?

Mar 20, 2010

I am trying to find the handle of the child window for the Yes button in the User Account Control window so i can click it. This window has a structure with a few child windows with the same name.

Dim hwnd As IntPtr = FindWindow(Nothing, "User Account Control")
Dim hwnd2 As IntPtr = FindWindowEx(hwnd, 0, "DirectUIHWND", vbNullString)
Dim hwnd3 As IntPtr = FindWindowEx(hwnd2, 0, "CtrlNotifySink", vbNullString)
Dim hwnd4 As IntPtr = FindWindowEx(hwnd3, 0, "Button", "&Yes")

There are multiple CtrNotifySink with its own Button child window or other child windows. How do i search thru the different CtrNotifySink window to find the one that contain the Yes button so i can send a click to it? I do need to find it before i can send a click, right? because i try just sending it to the main window with sendmessage and nothing happen.I even try sending it directly to the handle found by spy++ of the yes button with bm click but nothing happen?

View 2 Replies

The Application Is Used To Find A Given File Name In A Given File Directory And Put Messages To Remind User At A Given Time?

May 13, 2011

the application is used to find a given file name in a given file directory and put messages to remind user at a given time.

View 2 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies

C# - Find Out If The "TextChanged" Event Is Fired If User Is Typing Into A Textbox Or MyTextBox.Text Is Called Programmatically?

Mar 9, 2012

Is there a way to find out if the "TextChanged" event is fired because the user is typing into a textbox or the programmer called myTextBox.Text = "something"? I don't want to react when the user is typing each letter into the textbox so I am using the "Validated" event to catch when the user is done so I can react. The problem is I don't have a way to catch when the programmer does "myTextbox.Text = "something". The only way I know to catch changes there is to use TextChanged but then I don't want to be reacting when the user is typing each letter into the textbox.

View 4 Replies

Using Selection.Find In Microsoft.Office.Interop.Word To Find Tracked Changes In A Document?

Apr 15, 2009

I am currently using the code below within a VB.Net application to find specific text in a Word document. The text is surrounded by symbols represented by the character codes in the .Text statement. The code below is working fine. The issue now is that sometimes the desired text within a document has been marked for deletion and appears as tracked change within the document. I would like to find only the desired text that has NOT been marked for deletion. Does anyone know of a way to determine if the found text is a deletion?

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved