Make A Form Focused Over The Over One?
Feb 2, 2010
I want to beable to make a Form Focused over the over one.E.G. I have 2 Forms Called: MainForm.vb && HelpForm.vb When I Press 'Button1' on 'MainForm.vb' 'HelpForm.vb' Pops-up I want to make HelpForm Focused so that the User cannot continue working on 'MainForm.vb' But when HelpForm is closed i want MainForm to be Enabled again.
View 1 Replies
ADVERTISEMENT
Mar 12, 2009
When you do frmWhatever.showDiaglog(), frmWhatever stays on top of the calling form even if you click "behind" it. Is there any way to get this behavior on a form displayed by calling frmWhatever.show() ?
View 2 Replies
Jun 4, 2008
I want to make hotkeys for my project, it needs hotkeys to complete. how to make hotkeys even if it now focused on form1.
View 3 Replies
Apr 24, 2010
I have a form. On its load event, i have a txtName.focus , this is a text box inside a group box on the form.However when the form loads it does not focus the cursor in to this text box.I tried using the groupbox1.focus but that didn't work either.
View 3 Replies
Mar 29, 2010
How do I retrieve the name of a textbox that has the focus? I have many textboxes on my form and when the user right clicks anywhere in one of the textboxes I want my code to store the name of the textbox in a string variable such as NameOfSelectedTextBoxString as string.
View 13 Replies
Nov 4, 2011
I am using Dev Express to develop a form in which i have a GridControl with a View inside a View.It looks like this:
I am then trying to use the event ValidatingEditor to validate the user input.I tried to do that by doing:
Private Sub grvObsAM_Artigos_ValidatingEditor(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs) Handles grvObsAM_Artigos.ValidatingEditor
Dim row As Integer = Me.grvObsAM_Artigos.FocusedRowHandle
This, however always returns me something like -99999.. I poked around and tried this other solution using the sender from the event:
Private Sub grvObsAM_Artigos_ValidatingEditor(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs) Handles grvObsAM_Artigos.ValidatingEditor
Dim grv As DevExpress.XtraGrid.Views.Grid.GridView = CType(sender, DevExpress.XtraGrid.Views.Grid.GridView)
Dim row As Integer = grv.FocusedRowHandle
And using this second solution i managed to get the focused row handle. Even though this worked this time (because the event was triggered by the view itself and i had access to the sender) this doesn't solve my problem as there are other events where the sender is not the view and the problem persists.Usign Me.grvObsAM_Artigos."insert anything here" doesn't seem to work properly.
View 1 Replies
Jun 16, 2012
I have a Class(ChorNumbers) and in this class i have a Function that test textbox1...17 is a Character or a Number.I create a WindowsForm that have 9 textboxs. And if i enter 1 in the textbox1 that must jump to next textbox2 (that do this) If i enter A in the textbox2 that must jump to textbo3, but they does not jump. Where is the Problem why it doesnt not Jump?And i want a use one textbox1_TextChanged Function.
private void textbox1_TextChanged(object sender, EventArgs e)
{
TextBox myText = (TextBox)sender;
ChorNumbers myNR = new ChorNumbers();
[code]...
View 4 Replies
May 28, 2011
Is there anyway for a form to become in focus.. basically something like Me.inFocused = True, In order to print a form, it must be visible and in focus, so I need to focus on it without the user having to click it so that I can send the form to a printer
View 1 Replies
Apr 9, 2012
I am creating a 2D RPG game similar to the pokemon interface. After solving my problem with walls, I came across another problem. If I make the panel show the whole map, it would be too small. Thus, I tried to increased the size to 1200,1200, but it wouldn't let me because my screen is smaller than that. Then I thought about it and realized that most games limit the sight of the map to the characters surroundings.
[Code]...
View 2 Replies
Mar 18, 2010
With that program, it has extra dialogs within it. They cannot be scrolled out and stay topmost while the whole app is focused. How can I do that?
View 1 Replies
Apr 12, 2011
I have multiple textbox in a form. How do I know what textbox the cursor currently is? Trying to do something like this:
If TextBox2.Focus() = True Then
MessageBox.Show("its in two")
ElseIf TextBox3.Focus = True Then
MessageBox.Show("its in three")
End If
But I think its not working.
View 3 Replies
May 31, 2012
I have my menustrip with the standard edit items. I know I can do this:
If TextBox1.Focused = True Then
TextBox1.Undo()
ElseIf TextBox2.Focused = True Then
TextBox2.Undo()
'Ect. Ect. Ect.
End If until I type out every textbox. However, I have like 30 textboxes and don't want to type out every textbox to see if they have focus. Is there a work around for that?
[Code]...
View 6 Replies
Jun 1, 2011
How do you read a key down event when your application is not focus but other are?
View 2 Replies
Dec 27, 2011
I have several buttons, all of which use flat appearance. I made them look just how I liked,but once you focus one, the 2px border (from 1px) ruins everything.
View 4 Replies
Jun 3, 2011
i want to automatically turn on the caps lock when the cursor is focused on a certain textbox
View 7 Replies
Jul 11, 2010
i am trying my hand in visual basic 2010
it's a windows form program, what am i trying to do is, when i press ctrl+v (yes pasting) in other program, whether it be notepad or a text box, something also happens in my program.
So i need to capture the keypress event when my form does not have the focus.I would hate to create a windows service for this, but if there is no other way i might have to do it.
View 14 Replies
Oct 26, 2011
I have a datagrid view that loads data from a database. This is unbound datagridview.The columns are Description, UPrice, Quantity and TotalDescription UPrice come from database then quantity is typed. I want it so that when my datagrid loads, cursor goes to Quantity column and it is shown blinking like we have in text boxes.
View 1 Replies
Jul 21, 2009
what i have been trying to get to work is getting a pixel from a program that is not focused (so minimized). I tried Getpixel but only got it to work when the window is active(focus). It seems it only works for active window.Then i thought making a temperately screenshot of the program and get the pixel. I came across PrintWindow. Right now im searching to make a temperately screenshot of a minimized program and read the pixels of it. So far i had no success.
View 1 Replies
May 5, 2011
Using DevExpress 10.2 within Visual Studio 2008 with VB.Net I have created a single gridcontrol that contains two different gridviews. The gridviews are related using an id column. Basically if there are related details about a row in the first gridview then the user can click on the plus sign to see all the related details. When I have any row on the first gridview I am able to get the focused row. Yet when I have the focus on any of the rows in the second gridview I am unable to get the focused row or the content of the row.
[Code]...
Is there any way to get the value in id from the focused inner gridview? Or at least figure out the parent row and grab the id value from there?
View 1 Replies
Nov 13, 2010
When a button is focused by pressing Tab key, a rectangle appears on it. Even if the button's TabStop property is set to false, when the button is clicked with mouse the rectangle appears. Is it possible to stop the rectangle from appearing?
View 1 Replies
Jun 10, 2010
Visual Basic Interop Video Series This how-to video series is focused on the Interop Forms Toolkit and working with Visual Basic .NET and Visual Basic 6 together. The Interop Forms Toolkit allows Visual Basic developers to migrate their Visual Basic 6 applications over to .NET using a phased migration strategy. Instead of having to convert the entire VB6 application at once, the toolkit enables .NET Forms and User Controls to run directly in Visual Basic 6 applications so that you can build the pieces that you need over time.
Download the Code: Videos 13
You will need: Visual Studio and the Interop Forms Toolkit 2.0 in addition to Visual Basic 6.0
#1 | How Do I: Build Interop Forms? (11 minutes, 28 seconds)
View 1 Replies
Jan 4, 2009
I have a listview that is populated with data. When I select a row the data is added to my textboxes for viewing editing etc. I want the row to stay focused while I am editing a textbox. I have set the property Hide selection to false for my list view but I still lose focus of the row.
[Code]...
View 3 Replies
Jun 24, 2009
i allready know i cant use sendkeys.send, whats the other code to do this?
View 2 Replies
Aug 25, 2011
Overreaching amateur developer that is outsourcing some of my work and doing part of it as well. I've been working on a dictionary/ thesaurus / spell check & suggestion application that I am trying to get to work on all applications within the windows environment.
I've used hooking to get key stokes and show output as the person is typing for definitions and spelling suggestions. This isn't accomplishing everything I want. Works fine for spell checking and suggestions but to click on a word that already exists or for touch screen interfaces to touch a word it doesn't work.
I was reading the Raw Input API on MSDN and thought that would work but my developer that I've hired is advising me that the RAW input's scope is only on the window that has focus and so cannot do low level hooking. I'm considering giving the effort but wanted a 2nd third fourth perspective prior to making the effort.[URL]
View 1 Replies
Nov 13, 2010
When a button is focused by pressing Tab key, a rectangle appears on it. Even if the button's TabStop property is set to false, when the button is clicked with mouse the rectangle appears. Is it possible to
stop the rectangle from appearing?
View 2 Replies
Jul 6, 2011
Currently I have the following VB.NET code to make a screenshot of my desktop, but it only takes a picture of the active screen:
Public Function SaveScreen(ByVal theFile As String) As Boolean
Try
SendKeys.Send("%{PRTSC}")[code].....
The following code is how I execute the above function, if it makes any difference, which I don't think it does:
SaveScreen("C:Lexer_tracescreen.png")
Now, I need to be able to take a picture of the entire screen, not just the focused window.
View 4 Replies
Aug 27, 2009
i want to change color of text box control or another control when it is focused,its color changes around border.
View 5 Replies
Nov 17, 2011
I have read that VB .NET in earlier versions limited the FORM size to that of the development machine screen resolution.I am hoping that there is a way in the current VB 2010 to get around that.However in my attempts to make the form larger, it always resets itself to the screen height on my develoment machine.Is there a way to get around this and have the person be able to use a scroll bar to move down?The data I wish to show actually has two screens worth of information but the stuff in the scroll down section would be used on a limitied basis so scrolling will be useful rather than having to recreat the screen to show less data at one time.
View 2 Replies
Jul 9, 2010
How can I make the main form grey out/translucent black when a new form opens on top?
View 8 Replies
Oct 24, 2009
I have a form with a text box in a toolstrip. I would like to make the width of the textbox relative to the form size when the form is resized. The following code works fine except when you click the restore button from a maximized state.
[Code]...
View 6 Replies