See If Textbox Is Active Or Not?

May 26, 2011

I have 2 textbox control in my form.How do I get my program to know which textbox is active(user is currently typing or the caret/cursor is in the active textbox)

View 6 Replies


ADVERTISEMENT

Make Textbox Always Active?

Mar 4, 2011

I am doing a program that loads a PDF after a bar code scan, and it is really working but, now I need the text box where the scanned text appears, to be ready for next scan, after the PDF load on programm form, the textbox is not active and I need to highlight the text on it so next scan delete and replace the current text. How I can do it automatically?

[Code]...

View 3 Replies

Asp.net - Disabled Textbox/textarea Still Active

Feb 18, 2010

I have a multi-line textBox disabled through vb.net :

myTxtA.enabled= false

The html it outputs :

<textarea name="myTxtA" rows="10" id="myTxtA" disabled="disabled" style="width:99%;">
...
</textarea>

That's the source code I get through the browser but the textArea is still editable in the browser. There is no javascript modifying myTxtA, and the only other reference to myTxtA in my codeFile is the following :

If somethingNotHappeningHere Then
myTxtA.ReadOnly = True
End If

I can't see why my textarea is still editable. Can the class of the div containing the textArea modify its behaviour ?

PS: I am not concerned about if the data is sent or not. I'm just looking for the textArea to be uneditable.

Edit: Same problem on IE7 and Firefox 3.5

Edit 2: When I copy all the html source from my browser into a new html file the textarea is properly disabled...

View 4 Replies

VS 2008 : Make Textbox Active Field When Listbox Selected Item Changed?

Jul 14, 2010

I'm trying to make the textbox field active when listbox selecteditems is change so I know I have to but something in the selecteditemchanged action of the listbox, but what?I tried:

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
TextBox1.Enabled = True
End Sub

But it didn't work..

View 2 Replies

VS 2005 Get The Active Control Of The Active Form?

Mar 30, 2009

I want to get the active control (control which has the focus or where the cursor is on) each time the cursor moves to another control or each time a control receives a focus.

View 5 Replies

Get Query Active Directory With The Pc Name And Return It's Path In The Active Directory Tree

May 9, 2006

I'm a developer for a College we have an active directory.I need to query Active Directory with the Pc name and return it's path in the Active Directory tree.

View 3 Replies

FlashWindowEx Doesn't Work While The Application Is Active But Does When Another Application Is Active

Apr 2, 2010

I have a standard Visual Studio 2008 VB.Net WinForm application, running on Vista Business. One of the forms has a timer that passes Me.Handle to FlashWindowEx. This works as intended as long as none of the windows that belong to this application are the Foreground window. If this program is running and another application's window is the Foreground window, then it flashes as intended. If, however, any of this application's windows are the Foreground window, then it doesn't flash.

[Code]...

View 2 Replies

.Net Get Datagridview Which Is In The Active Tab?

Aug 24, 2011

I've got a form, with a TabControl which has a DatagridView on each of its tabs.

I would like to be able to access the datagridview which is on the active Tab.

I guess code could look something like this:

Dim
mydatagridToExport As DataGridView
mydatagridToExport = TabControl2.SelectedTab."Some code to access the datagridview on this tab"

View 3 Replies

Active Directory In .Net?

Jul 1, 2009

How can I get a list of computers and their properties from Active Directory using VB.Net and Visual Studio 2008?

View 3 Replies

Detect If Abc.exe Is Active/on Top/using Etc?

Mar 30, 2011

With active i meant for example you are using browser now, so its active when you skip to another window, its not active anymore

View 1 Replies

Get Active Workbook Name Only?

Mar 16, 2010

how can i find all the open excell workbooks

View 2 Replies

Get Name Of Active Control?

Jul 3, 2011

I would like to get the control name, regardless of if its on the projects form or not. put it in a thumbnail following the mouse...

So if i open up notepad it would give me the active control name...

View 5 Replies

Get Name Of Active Exe On Network Pc?

Oct 30, 2009

How could i get name of Active exe on Network pc?

View 1 Replies

Get The Last Active Control?

Dec 24, 2009

I have 9 textboxes in 1 form and couple of buttons to add unicode symbols inside the last active textbox when the button is pressed. So how do I find out which textbox was last active when the button was pressed.

View 10 Replies

Get The Name Of The Active Control?

Dec 19, 2009

how to get the name of the active control in Visual basic

system.reflection..... that doesnt work

like i use addhandler so if I do that it gets me the name of the adress of the original control

Also, I'm trying to get a toolstripdropdown menu as a bookmarks thing; how can I get the name of the selected dropdown item?

View 3 Replies

Get The Name Of The Active Window?

May 19, 2010

How can i get the name of the active window? like Internet explorer.

[Code]...

View 9 Replies

How To Know Name Of 'active' Node?

Jun 5, 2009

The only way I currently find for it is by the "AfterSelect" event (the 'e' object and then e.node.text). But how do I get the active node.text when I need it by another event?

View 2 Replies

Keep GUI Active While Processing?

Mar 15, 2011

How can I keep the GUI active for my windows form application if I am processing some data in db and my process is waiting for result ?

View 2 Replies

Security - Textbox On Form - User Inputs Data ( During Runtime ) Data Remains In Textbox For Good And Textbox Becomes Read Only ?

Jan 8, 2010

Is it possible to have a Textbox on a form that when the user inputs data, ( during Runtime )that data remains in the Textbox for good and the Textbox then becomes read only ? Is it also possible to make it so that the CD with the programme on, is in the PC when the programme is being used. Perhaps writing the Textbox data back onto the CD ?

View 1 Replies

.net - Active X Development: VC++ Or VB Or Other Technologies?

Mar 6, 2010

We are in the process of creating active-x controls used within our application. Since Microsoft stopped supporting classic Visual Basic, is it wise to use Visual Basic to develop the Active X control or the latest VC++/ATL/MFC libraries provide more feature where we can create controls faster by leaving Visual Basic flexibility?

We will not be able to use .NET/VB.NET/C# since the application is supposed to work inside containers and containers may not support latest .NET runtime.

View 4 Replies

Access Active Directory Via .Net?

Mar 25, 2011

I having a program built in VB.Net and would like to take in the users windows name and then compatre that with a security group in AD, if they are in a certain group then redirect them to the next page otherwise block them.I have tried many ways using many different snippets of code from different forums, but cannot find a code piece of code that works?

View 6 Replies

Active Directory - ID For Each User?

Feb 15, 2007

I would like to have all properties on a user from active directory. I find some property name as :
distinguishedName, SAMAccountName, sn, givenName, TelephoneNumber, mail
If you have a list of property? As each user has an ID in AD ?

View 5 Replies

Active Directory Display Name?

Jun 17, 2008

I'm having a weird problem with active directory and the display name attribute. I can create an AD account with no problems, the account shows up, I can log on as the account, everything appears to be working as intended. The problem is, our company requires that the display name be in the form of "Lastname, Firstname". Thats all fine and dandy when you create an AD account use the MMC snap-in, you type in the users name as "Lastname, Firstname" in the display name field and when the account is created, the display name shows as "Lastname, Firstname" as you would expect.

The problem I am having is this, whenever I create an AD account programmatically, I can't for the life of me get the display name to show up as "Lastname, Firstname". The displayname property is set as such, checking the AD account using the MMC snap-in shows the display name is set correctly, but when looking at the list of user accounts, the account is always displayed as the users username. The account name I am using is "Test User", see pic below.

if you try to rename the account, the field it tells you it is editing is called Full Name? I can't find a property in AD even called Full Name so I am completely confused, here is a picture of me trying to rename the programmatically created account, as you can see, the display name field is set correctly even though it doesn't display that way. And of course, after renaming the account as seen below, the display name shows up correctly as "Lastname, Firstname"Here is the code I use to create the account, just for reference.

Public Sub CreateActiveDirectoryAccount(ByVal sUserName As String, ByVal sFirstName As String, _
ByVal sLastName As String, ByVal sUserPrincipalName As String, ByVal sPassword As String, _
ByVal sHomeDrive As String, ByVal sHomeDirLocation As String, _

[code]....

View 2 Replies

Active X Image Control?

Mar 14, 2010

The following code lets me insert an image into an Active X Image box using 'GetOpenFilename', however, if I push the Cancel button I get an error saying that the file cannot be found. Can anyone provide me with some advice on how to handle this error, the code is below?

Private Sub Image1_Click()
Dim ImageOneLocation As String
ImageOneLocation = Application.GetOpenFilename

[code]....

View 3 Replies

Asp.net Active Directory Logging In?

May 24, 2009

i would like to be able to login on a webpage using a valid active directory username and password.user name and password are entered in textboxes. if they are correct then i would like to redirect to another page.how can this be coded.in a second task after some code is performed, log in as an administrator using code and unlock the account.i have heard that this is called impersonation. how can i perform the above?i'm using visual web developer 2008 and vb.net

View 1 Replies

Binding With Active Directory?

Jan 11, 2011

Im trying to connect to AD and carry out some basic tasks for a .Net application written in VB .Net. I would like to create the application so when it loads, it automatically binds to the default AD domain that the user is logged onto. This has led me to writing the code

Dim domain As DirectoryEntry = New DirectoryEntry("LDAP://DC=domain,DC=com", Nothing, Nothing, AuthenticationTypes.Secure)
domain.RefreshCache()

But this doesnt work.

View 8 Replies

C# - Active Handler In One Application From Another?

Apr 26, 2010

How I can run handler from one application to another, for example:
In application one I have form1 and button.
In application two I have also form1 and button.
Now how I can run handler for button on form1 in first application from application two?

View 2 Replies

C# - Connect Passive STS To Active STS

Mar 12, 2012

at the moment I have a single active sts. The sts validates the user with a custom user/password validator. The sts is used for different windows services. Now I'd like to write a asp.net application that uses the sts for login. Later I'd like to change the sts authentication method(e.g. to windows authentication).

What is the best solution for connecting a asp.net site to an active sts. Do I need a passive sts?

View 1 Replies

Can Zoom Form While It Is Active

Mar 20, 2012

i want to know is there any way i can zoom my form in vb.net. i could resize the form and byanchoring all controls to left top right bottom i can make it look like zoom. but it is not actually zooming. it is resizing. while font size and other formats are still as same.

View 1 Replies

Checks That The Connection To OPC Is Active And If Not?

May 7, 2010

I am using a third party OPC library.I have a routine that basically checks that the connection to OPC is active and if not, waits 10 seconds and reinitializes by calling a .disconnect / .connect on the third party library's object.The OPC connection somewhere in its chain is using a com object that dislikes this behavior due to the object belonging to another thread.Ordinarily I would invoke a delegate to get the call back on the correct thread, however this base class does not implement ISSynchronizeInvoke.

Is there another way to make sure a a call to to an objects methods occur on the thread they were created on from within a system.timers.timer which is obviously running on another thread?Error message is: "The application called an interface that was Marshalled for a different thread. (RPC_E_WRONG_THREAD)"I know, kind of vague without a whole LOT of sample code, looking for pointers on where to even begin looking.

View 5 Replies







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