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
ADVERTISEMENT
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
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
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
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
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 1 Replies
Jul 26, 2011
In small project I am making , when I load the main for the list box is generated by data from xml ,well that done well , but I cant get the control active and I can getit to select item
Me activecontrol = listbox 1
ListBox1.SelectedItem = 0
View 1 Replies
Apr 7, 2010
I have got a project that i am currently creating that is a basic word processing application. There is the capability to have unlimited MDI child forms open however when you click on change font colour of something similar i only want it to do it in the currently active MDIChild. I have found the Me.activemdichild however i cant then access controls on that form.
View 4 Replies
Jan 18, 2012
I created a TabControl with 3 Pages. Like TabPage1, TabPage2 and TabPage3. How to check which page is active in tabcontrol? Using visual basic 2010.
View 4 Replies
Mar 12, 2009
I'm an old Access developer and know VBA quite well, but now I'm working at learning VB.net. I'm trying to find the equivilent of the following Access VBA code using VB.net:
Function EvalField()
Dim x As Integer, ctl As Control
Set ctl = Screen.ActiveControl
x = Val(Mid(ctl.Name, 5))
Screen.ActiveForm.Controls("Formula" & x) = ctl
ctl = Eval(ctl)
UpdateTotal
End Function
This code sets a control variable to the currently active control, then copies the text from that control into it's matching "Formula" field for reference by the user), then turns the string of math into the answer. For example, if the user enters 5 + 4, that will be copied to the Formula textbox, then it will be evaluated and the answer will replace the 5 + 4. And lastly, the UpdateTotal sub will execute which will add this answer to the existing Total field.
View 1 Replies
Aug 11, 2010
I have a tab control with two tabs. Both tabs have controls which are unique to them, but there is one control which I would like to always appear on whichever tab is currently active. I figure I just need to add some code to TabControl1_SelectedIndexChanged(). I tried
MyControl.Parent = TabControl1.TabPages(
TabControl1.TabPages.IndexOf(TabControl1.SelectedTab))
MyControl.Parent.Update() ' is this necessary?
[code]....
View 2 Replies
Dec 9, 2010
I have developed an active x control and signed it with certificate. I know that digital signing is needed , so that the browser knows that the active x comes valid source.My asp.net form has a button , which invokes a method on activex control as -[code]....
But it errors on browser stating that the - IE has blocked this site from using an active x control in an unsafe manner. ( Please see attachment).So should I have to develop the active x control which implement IObjectSafety and also signed digitally, so that it can execute on client browser without any warnings from IE. Any examples.
View 1 Replies
Mar 12, 2009
I'm using VB.NET within Visual Studio 2008.I have a ActiveX control on my form that contains a method that takes an Array. In VB6 I just passed in the array and it was populated OK. When I do the same in VB.NET, I get a result but the value of each index appears to be a pointer.Here is the C++ method code...
void CMyCtrl::GetRowInfo(const VARIANT FAR& vArray, short sNumRows)
{
// Declaretemp array to put the row list into
short asRowList[24];
[code]....
Here is the VB code (same VB6 and VB.NET...
Dim maintRowList(0 To 23) As Integer
AxMyCtrl.GetRowInfo(maintRowList, 24)
In VB6, the value of maintRowList(0) is in the range 0 to Windows screen height(its a pixel value)In VB.NET the value of maintRowList(0) is a value that looks like a pointer to me (e.g 285671429).In VB.NET, the type of the 1st parameter is Object. In VB6 it is a Variant. I've tried AxMyCtrl.GetRowInfo(maintRowList(0), 24) and got the same result. I think I need to get a pointer to either the array or the first element of the array but I can't see a way to do that. how I can pass an array to this type of C++ ActiveX method?BTW - I cannot change the ActiveX code so the solution must be within VB.NET.
View 1 Replies
Mar 2, 2011
i am making my final year project in vb.net for data entry i want to make the project more user friendly i use code to change the control focus by pressing 'Enter'(ASCII 13).. and clear the content of current control by pressing 'Esc'(ASCII 27)... in my project one form contains at-least 300 of controls say(t1,t2,t3,t4...)
so in the keypress event of t1 i have writen
if asc(e.keychar)=13 then
t2.focus
elseif asc(e.keychar)=27 then
t1.text=nothing
end if
the code works fine but produce an alert beep when i press ENTER to change the active control...
View 2 Replies
Feb 23, 2010
After getting the current mdi active child form, how can I get it's control collection so I can access their data?
View 8 Replies
Aug 12, 2009
Is there any way to skip a the validating event of the active control when the close button of the form is clicked. It is very annoying when user wants to close the form, but due to the validate event of the active control, it asks for the valid input. The user is forced to give valid input to close the form. I have searched a lot for this on net but no any proper solution could be found.
View 5 Replies
Nov 27, 2009
how to specifically identify all the specific table cells that are selected in a webbrowser control. To be specific once I load a page into the webbrowser control and it is displayed I simply want to be able to click and drag with the mouse over multiple cells. Once I have selected the multiple cells I want to be able to do something to them such as adding an attribute. I can do this with a single cell. With the follwoing code:
Private
Sub
WebBrowser1_DocumentCompleted(ByVal
[Code]......
View 1 Replies
Mar 23, 2009
I have a vb.net application that uses Flash movies (AxShockwaveFlashObjects.AxShockwaveFlash). I have buttons in the flash movie. When they first start using the application, they can single click on the buttons in the flash movie and button responds accordingly. But after a while (and I haven't been able to pin-point an exact thing that changes it or my issue would be solved), the user has to double-click on the button in the flash movie for them to work.
View 2 Replies
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
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
Dec 29, 2010
Here's my situation: I have a control with motion graphics (for the sake of simplicity, a 'video player' control) in my project. Think of a PictureBox with constantly-changing images. In front of this will sit a second control (such as a second PictureBox of the same dimensions). The topmost PictureBox will be drawn to in its Paint event.
I need to draw very few elements, and the bottom control is updated much more frequently than I need for this drawing. So these elements are drawn to the topmost control. Think of a news broadcast, where they have live video in the background, with a news channel logo, news ticker, and sometimes gradient visible in front.
I'm trying to create that 'foreground' control, and the closest I believe I have gotten so far is the following:
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
[CODE]...
The 'Opacity' property in the code above is a sort of "scaling factor." The image drawn to the top control may, in different parts of the image, have any alpha value from full transparent to a full 255. This 'Opacity' property is applied to the entire image being drawn, scaling the alpha values of each pixel.
See the following pictures for description:
[URL]
[URL]
[URL]
View 9 Replies
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
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
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
Mar 16, 2010
how can i find all the open excell workbooks
View 2 Replies
Oct 30, 2009
How could i get name of Active exe on Network pc?
View 1 Replies
May 19, 2010
How can i get the name of the active window? like Internet explorer.
[Code]...
View 9 Replies
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
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
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