Avoid "clicking Through" Forms?
Mar 22, 2010
A fairly common problem I imagine but can't find anything relevant.I have a button on a child form. A click opens another form that also has a button in about that position. If the user double clicks, as some are bound to, it acts as a click on the second form's button.
View 18 Replies
ADVERTISEMENT
Mar 26, 2011
i'm a beginner in MDI form. i created a MDI form with buttons and child forms. when i click the forms continuously, many forms will be opened. how to avoid forms overlapping, in other words, duplicate
View 6 Replies
Feb 17, 2009
Now I need to avoid exception error for when I move, minimize and close any of the other 3 forms for the program I am building. ZOrder?. I was thinking of using an if statement to determine the zorder of each form. I need to know how to implement the if statement.
Option Explicit On
'Route User to the desired page
Public Class Form1
[Code]....
View 1 Replies
Jun 10, 2009
i want to create such a textbox in which only the numbers and one period should be allowed to type.
View 6 Replies
May 29, 2009
I am using MDI form and nearly more than 10 child forms.. Here, When i load or unload some forms, it flickers very much.. It is not as much good.. So i need to avoid this.. How to avoid form flickering?
View 3 Replies
Dec 1, 2010
i have a monthcalendar control on a form, and about every minute or so, the click event fires. this is wierd, since i look at the call stack and nothing called it.
View 2 Replies
Aug 21, 2011
So when a Form2 is opened you shouldn't be able to touch Form1.
View 2 Replies
May 21, 2011
I'm making a program which will work minimized in the system tray.Now, what it have to do is to load a page [URL] and then input a specific string which i have stored, into this element:
HTML Code:
<input name="ctl00$ctl00$JobnetBaseMiddelContent$LoginContentPlaceHolder$txtUsername" type="text" id="ctl00_ctl00_JobnetBaseMiddelContent_LoginContentPlaceHolder_txtUsername" class="text required" style="width:183px;">
and another string into this one:
HTML Code:
<input name="ctl00$ctl00$JobnetBaseMiddelContent$LoginContentPlaceHolder$txtPassword" type="password" id="ctl00_ctl00_JobnetBaseMiddelContent_LoginContentPlaceHolder_txtPassword" class="text required" style="width:183px;">
and then press this button:
HTML Code:
<input type="submit" name="ctl00$ctl00$JobnetBaseMiddelContent$LoginContentPlaceHolder$btnLogon" value="Log ind" id="ctl00_ctl00_JobnetBaseMiddelContent_LoginContentPlaceHolder_btnLogon">
After that, it would login to the website, and would afterwards press on another button.Each week, i have to login to a website, and press a button in order to keep my current economic status. Which is quite meaningless. Therefore, having a program to press it for me, working in the background, would be so much easier, and make me not forget it?
Ps.The elements info's were received using Google Chrome's "View Element Details".
View 4 Replies
Mar 8, 2012
I've created a form that plays some internet radio. The thing is the user wants an extra form for volume control that is docked to the side of the main form. This is no problem, i've made that, but im having some trouble making this form shown at the same time as the main form.In short what i want is that when you set focus on form1, form2 should also get in the foreground. Not focused, it should just follow form1
View 6 Replies
May 28, 2010
how to stop a ComboBox from displaying blank data?
The query I'm using does not allow nulls but the ComboBox is showing black areas and the user can click in those areas.
The PureComponents ComboBox did not show the blank areas but when I started to use the ComboBox from VS 2008 the blank areas are showing up.
The attachment shows me clicking in a blank area.
View 8 Replies
Mar 25, 2009
My Front end is VB.net 2008.I have a form. In this form, I have a menu control, this menu control has four buttons.On clicking the first three buttons, open the window with Show() event. and the fourth button open the screen with ShowDialog().Now, One by one I am clicking the button , so finally i have now four windows of this application.(Three with Show() and one with ShowDialog())Right?
Now I am minimizing all the windows with the help of Window + D Button.After this, If I use the keyboard(Alt+ Tab) keys. This is opening the showDialog window on top because , Show dialog's TopMost = True.Now I come back to my problem. That's why I cannot use the show/Showdialog overloaded menthod to pass the Me/form-id .Again, I use the keyboard(Alt+ Tab) keys, to minimized all windows. In the taskbar and Startmenu properties ,I have selected the Group Similar Taskbar buttons.This resulted in the heap of my application windows, one on the other.Now i click on one of my application window , and If I click the window other then the Show Dialog opened Window, this is not bringing the show dialog window to topMost.
Note:- There is no parent child window requirement. That's why I can't use the Show/Show Dialog overloaded method to pass the Me/Form-id
View 10 Replies
Jul 11, 2011
When the user clicks the Exit button it closes the forms and if there was an open file it asks the user is they would like to save. But after the application closes there is still memory being held in Processes by the application. However, when pressing the [X] in the top of the form the application closes again but in this instance it is not held in Processes. How do I write the close for Exit to take into account how the [X] works and close the application cleanly?
Friend Sub CloseAllForms()
CloseHelpForm(True)
CloseDiagForm()[code].....
View 6 Replies
Mar 27, 2010
Someone asked me to add a function when the notifyicon is doublcliked. I figured that'd be easy with the mousedoubleclick event being available. I find out that then both the single and double will then be called. Well that sucks, I want it to only do the one the user requests. So I tried to get it to work:
Private Sub DblClick_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles DblClick.Tick
[Code]...
View 3 Replies
Jan 21, 2010
Is there any way to avoid UnauthorizedAccessException, i get it every time when I try to do this:[code]Is there any way to make that script read-write?
View 10 Replies
Feb 15, 2010
Until asking a question on here I never considered (enums) to be a "bad thing." For those out there that consider them not to be best practice, what are some approachs/patterns for avoiding their use in code?
Edit:
public Enum SomeStatus
Approved = 1
Denied = 2
Pending =3
end Enum
View 5 Replies
Jun 11, 2011
Is it possible to re-use a DataTable in .net? Here's an example from code-behind:
[Code]...
View 3 Replies
May 13, 2009
i have a list of items in a listbox:-
A
B
C
and i have a button that adds these items by selecting them to a datagrid how can i avoid adding A or B or C twice to the datagrid?
View 2 Replies
Jan 14, 2010
I can cheack another instance running r not then i closed the newly created instance
but nw my problem is i need to show the previously running instance if the previous instance minimized or hided
i m using the foolowing code to find the previous instance[code]...
View 7 Replies
Sep 2, 2011
My [code]...
But how i avoid when you selected nothing, you can delete.
View 2 Replies
Aug 10, 2010
I have following code that is generating random no. between 1 to 10. This is working fine. But, I do not want doubling in combobox (cmbRnd is my combo box). How can I avoid it?
Private Sub cmdRnd_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdRnd.Click
Dim random As New Random(), i As Integer = 1
[Code]....
View 2 Replies
Nov 11, 2010
How can I Avoid Duplicate values In datagrideview. IF found dublicate values in will change the row backcolour and show me the rows.
View 1 Replies
May 27, 2011
I am trying to check whether file exists or not. if not create and write something into it.The file is getting created but not updating and getting error message says it is being used by another processCode snippet:
Public shared sub MyXml()
If Not System.IO.File.Exists("configfile.xml") Then
Dim writer As New System.Xml.XmlTextWriter(fullPath.ToString + "configfile.xml", Nothing)
[code].....
View 1 Replies
Aug 26, 2011
I am doing an activation server which will enable users to activate their software. The problem is that they own the public key.. the verification method needs the public key to check signature of the license file. My concern is that someone could generate their own license file using two key (public and private) and then change the public key on the client which would spoof his current license.
Is there any way of avoiding this ? Where should the public key be stored ? You have to take into consideration that the checkup is done on client and the signature is created on server.
View 2 Replies
Apr 20, 2011
how to avoid rounding off numbers
Code below
Dim acc = 0
Dim i
Dim x() = {699.68, 632.70}
[Code].....
View 2 Replies
Jan 3, 2012
I would like to ask about how to code datetime in CONSOLE vb.net. I already got the format but my problem is after I inputted another data today to the database. In this image,my data retrieval was error. The ID (1,2,3,4,5,6)should be jan 2. Unfortunately, the output was today after Ive put new data to the database. I was confused on how to code to avoid changing the date.
[Code]...
View 2 Replies
Jun 15, 2009
I'm trying to introduce delay to my code so that it would read in the noise or garbage data.
I'm receiving the data from RFID to pic thru RS232.Is there any simple delay that i can use? I seriously don't understand threading.
View 1 Replies
Jan 8, 2011
I have been trying to use sockets in VB.NET and once I cannot understand how to avoid a null reference. [code] I have tried introducing sock as 'New Socket', but this gives me 'Overload resolution failed because no accessible New can accept this number of arguments'.I also cannot simply add '= Nothing' onto the end of my declaration since this still gives a null reference.
View 6 Replies
Sep 21, 2010
i have coded as below but once the record deleted and when the application write to text file again it gives an error says index was outside the bounds of the array any solution?
Dim stream As New IO.StreamWriter("C:Documents and SettingsAdministratorDesktopBill PaymentBillPaymentRecords.txt", False)
stream.WriteLine("")
stream.Close()
View 2 Replies
Aug 3, 2010
I have been programming for alot of time. Generally i program in some languages like PHP, ASP.net, Java, JavaScript and others. In all languages i have to use alot of if else statments . Like if value= 10 then ... if i review my code then i find alot of if conditions. So i would like to minimise them but how not sure. one point was using classes somewhat minimised but still they are more... like task, cat, sec and type:
[Code]...
View 9 Replies
Aug 14, 2010
I have a matrix for example (10 x 10) which represents 10 nodes. The matrix called MyMat(9,9) The rows of this matrix represent the source node (From Node) and the columns represents target node (To Node). It has 14 links which are randomly distributed. The non zero values represent the connections between nodes.
[Code]...
View 6 Replies