VB Form Has Frozen / Locked - Button Didn't Appear
Apr 21, 2011
I'm sorta newish to VB.Net programming, and in the program I'm working on (VB Express 2010, Windows 7) its as if everything has frozen. When I make changes to the code or the designer view, then run/debug the program, the changes don't get saved. For example, I put a random button on the form, saved it, ran it, and when I ran it, the button didn't appear.
View 3 Replies
ADVERTISEMENT
Apr 8, 2009
This is for a login form. I'm trying to read if the account is locked. in my access database I've tried using a yes/no column and use datareader.getboolean but that didn't work, so I tried something simpler and used a number column, 0 for account unlocked and 1 for account locked. then tried .getint32 .getdata .getvalue but none of them get the value that in the column. but the data reader part is working, it is getting 3 columns. So I have 3 columns and the correct ordinal for the accout_lock column but can get seem to get that value it holds.
Public Class LoginForm
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim Command As OleDbCommand
Dim DBconnection As OleDbConnection
[Code] .....
View 9 Replies
Dec 16, 2009
I'm having difficulty with a log in form to a banking program I'm developing. If the user enters an incorrect username or password 3 times I want the program to not allow them log in.
View 4 Replies
Dec 27, 2011
I want to know how i can make my application (which i created in visual basic 2010) start up when the computer is locked So as to act as a Lock Screen...
View 3 Replies
Feb 5, 2009
I do not know what happen to my program. there is one table, if i want to view its properties, .net get frozen...try to create new table..it also gets frozen..
View 3 Replies
Feb 2, 2009
I'm trying to make an application that shows the status of hl2 gameservers.I have to send a datagram to gameserver and receive a datagram from it.[code]...
View 8 Replies
Oct 4, 2011
So I'm writing this VB.NET application, and it's doing things. But whenever I press a button to start some process, it does what it does except I can't click the window until it's finished. Otherwise the whole thing freezes. This essentially stops me from doing more than 1 thing at a time, because if I click another button (or anywhere) when something's running, it just freezes my program.
View 1 Replies
Apr 9, 2011
I'm trying to optimize my WPF/VB.net program, and I'm considering freezing some objects. However, while I know that an object that is animated in any way cannot be frozen, I need to know...can you change the visibility of a frozen object?
View 1 Replies
Jun 12, 2012
This is the first time I have used this messaging library and used some example code to implement it. The first time I ran it it worked perfectly but I abruptly stopped the code since my parsing method seemed wrong. So when I restarted it, the code freezes at the following line:
[Code]....
View 1 Replies
May 12, 2010
I am testing to insert a record to the table from the form by button click event.Data was temporarily hard-coded for testing.There is data grid view opened on the form as well.When the button is clicked, the data was inserted in the data-grid.But after exit out, I don't see in the table.When I run the program, I don't see in the data grid view as well.
Dim newCustomerRow As CustomerLookupDS.CustomerRow
newCustomerRow = CustomerLookupDS.Customer.NewCustomerRow()
newCustomerRow.CustomerID = 123
[code]....
View 2 Replies
May 2, 2011
I submitted 2 questions but I forgot to assign it to a Forum.... Is there a way that I can find these posts and edit then and attach them to the right forum?
View 3 Replies
Mar 15, 2012
I get the following Error: when Using The program ... Didn't Used to happen before ...
This Is the Source Code :
Form2
Form1
I Have tried Different Stuff But none of Them work.
View 1 Replies
Jun 10, 2009
My project is like this. When I select from "TypeComboBox" and "BeanComboBox", the "PriceTextBox" will display the appropriate amount of the "Private PriceDecimal". But when I added the "Private SnackPrice", it will display only the 1st array, (0, 0) for both array. I try using "Select Case" but doesn't work. I don't know what the problem is. Or maybe it can't be done like this? One structure can have one array?
Private TransactionCoffeeSale(30) As CoffeeSale
Private NumberTransactionsInteger As Integer
Private SnackPrice(,) As Decimal = {{1D, 2D}, {3D, 4D}}
[code].....
View 1 Replies
Jul 18, 2011
I've tried to create a DLL injector for using it in a game but it didn't work for me, here's the code:
Imports System.IO
Imports Microsoft.Win32
Public Class Form1
[code]....
View 1 Replies
Jan 10, 2011
I wrote one exentension method for object. But the intelligence didn't display the method ?
[Code]...
View 6 Replies
Mar 17, 2011
it's about object binding, yes it's just a simple binding. but i don't know why it won't work.for summary, i will write about what i am doing:
1. i have one solution, and have two project in it. WaitressDataWin and WaitressDataObject
2. inside WaitressDataWin, i have 'waitressdata.vb' . this is my simple form , there are some basic textbox (waitress name, address, phone)
3. inside WaitressDataObject, i have 'waitressDataObj.vb' is where i put my object class, i have WaitressName property, WaitressAddress, and Phone.one of my property is like this, others are same except the name of course.
Private _WaitressName As String
''' <summary>
''' Gets or sets the Waitress Name[code]....
4. i create data source , that is object data source. i add reference so i can add my second project which is WaitressDataObject and set the WaitressDataObj as the data source.now i have datasource with three properties (WaitressName, WaitressAddress, Phone)
5. I bind my textbox, by dragging the WaitressName (in datasource) to my waitressname textbox .. so on to all my properties.., i also get bindingsourcecomponent, WaitressDataObjectBindingSource
6. then I put this code to my form load :
dim wdm = new WaitressDataObj
Me.WaitressDataObjectBindingSource.DataSource = wdm
7. done, it should've been worked, but it didn't , i don't know why.. , every time i fill one of my textbox, the properties didn't set the value, i put breakpoint in the 'set' part of all my properties but it never breaks anyway.. (the 'get' part is good, it read my property value when i load the form). so i just had problem in my 'SET' Part.
8. I think i had checked on my variable (word, case sensitive,etc), no problem.
View 2 Replies
Jun 10, 2011
My histogram report didn't show the data in the database.
View 2 Replies
Jun 20, 2012
im trying to learn ado from vb and i noticed some difference in the codes from the sites url...may i ask why the other tutorial didn't bother of using the functions open and close for the oledbconnection?
View 7 Replies
Aug 6, 2009
I'm beginner in Visual Studio 2008. I want to question why VS 2008 doesn't find toolbox input box.
View 1 Replies
Oct 11, 2010
On Windows Phone 7 to get the current control one would use
FocusManager.GetFocusedElement()
Wherea on Winform it is just ActiveControl.Why use 2 semantics which is a nuisance for portability ? Is there any difference of behavior you can see between the two ? If yes that makes sense, otherwise that doesn't.
View 2 Replies
Aug 4, 2011
I am new to vb.net and I have looked at other topics. I cannot find the answer I need. OK I have a combobox named cboRaceDesc and five checkboxes (CkRaceAfricanAmerican, ChkRaceAmerican Indian, ckRaceAsian, ckRacePacificIslander, and ckRaceWhite). I was going to post an image, but I cannot.cboRaceDesc has two options...Hispanic and Other. If the user selects Other then they have to choose one of the five checkboxes or it will raise an exception when the record is being saved. I am assuming I would generate the code under the "save" button. I know I need to gather the following information in my code:
If cboRaceDesc.SelectedValue = Other Then
<I am not sure how to code the logic regarding the checkboxes>
<I know I need to use multiple else/else if statements>
<I know towards the end I would generate the exception>
End
Can anyone help me fill in the blanks or point me in the right direction?
View 1 Replies
Jul 29, 2009
If i didn't place any date in the textbox ,system is capturing 1/1/1900 by default insted of Null.How can i get rid of this.
[Code]...
View 2 Replies
Apr 29, 2011
I am making a small game of pong and i want to incorporate a pause feature. is there a way i could freeze the form in place and then unfreeze it later at the push of a button. the tutorial i used is below so check it out to get an idea of what i've made so far.
View 2 Replies
Jun 22, 2010
how to move button over a panel from the form in which the button is created dynamically at run-time ?
View 1 Replies
Feb 7, 2010
I just want a program compiled in Visual Basic 2008. which can just submit a form of only one field. the form is already uploaded to the server but i don't want to go to that url every time to do so.What I want here, just to open application and fill that field and submit. Is this possible in visual basic 2008?Also let me know how to create a button that can rapidly submit the form repeatly untill the second button named cancel is pressed.
field name of that form is "msisdn" and the action on submit button is post method and url in target is url...
View 1 Replies
Jun 12, 2009
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
View 1 Replies
Sep 5, 2009
I have already done the creation of button and the dragging of button at runtime already.But now i need to know how do i save the last dragged button on the form and also detect the name of the last clicked button.so lets say i now drag a button to coordinates 25,254. so when i exit the form and the next time i launch it, the button will still be at 25,254. and this one will go on for the number of button i created like 100. so when i launch the form the 100 button will be at the exact position where i last saved them.the second part is lets say i created button1 and button2 on the form in runtime. so when i clicked the first button, it should display button1. and if i clicked on button 2, it should say button2. same goes for like 100buttons.
[code]...
View 1 Replies
Sep 3, 2011
I have created a button in a UserControl. I have added that button to a WindowsForm in another app and added a buttonclick event to the code. When running (debugging) the app and clicking on the button; nothing happens. It doesn't act like a button at all.
The code for the button click event in my test app is as follows:
Private Sub Element1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Element1.Click
MsgBox("The button has been clicked")
End Sub
View 1 Replies
Sep 13, 2010
Shutting down a pc in vb.net is easy:Process.Start("shutdown", "-s -t 00")less the user has locked the pc in which case the above fails.How do I get around this in vb.net? How do I shutdown a locked PC?
View 5 Replies
Jun 11, 2011
I'm currently writing a small system tray app that needs to shutdown my PC at a certain time. That bit's easy:Process.Start("shutdown", "-s -t 00")But how do I do this when my PC is locked? The above doesn't work and I don't want to leave my PC unlocked and unattended
View 1 Replies