VS 2010 Form Turns Into Code?
Feb 7, 2012
Every once in a while, my GUI form will turn into a code. So in the right panel (Solution Explorer), I click on Form2 to edit my gui, but instead a blank editor appears.Yet when I am debugging the application, everything is normal and I can see the GUI fine.
View 2 Replies
ADVERTISEMENT
Mar 28, 2009
Another newbie question i am afraid, I have created a game of pontoon it generates the numbers into an array and the assigns the values to the labels. this all works great.however the bit that i am stuck on is creating a player turn as each label has a name lnlP1Card1 to lblP1Card5 for player 1 and lblP2Card1 -5 for player 2 etc. I tried to create a set of if statements that checked a counter and then if the counters value matched the if statement the players turn moved to the next player. sample
If pcount < 5 Then
Do
If pcount = 1 Then
[code]....
View 1 Replies
Mar 5, 2009
I was under the impression that any time I set a Nullable(Of Something) to Nothing, it will take the value of Nothing.In a class, I have;
Private _something As Nullable(Of Double)
Public Property Something() As Nullable(Of Double)
Get
Return _something
End Get
[Code]...
In my page, using this class I set Something = Nothing, but as I step into the Set method, value = 0.0.Am I doing something wrong here? Or do I just not understand Nullable types yet?
View 4 Replies
Jun 16, 2012
It is a word scrambler in which the user must guess the word that is scrambled. It is not completed obviously but the code only works with one form. As soon as I include other forms for title screens and the likes, the code doesn't work at all.Here it is (This is the multiform version):
Imports System.Text
Public Class Form3
Public word As New List(Of String)
[code]...
View 3 Replies
Jan 8, 2012
I am wanting to make a tool where I can load up a previously coded project and then add error reporting to each sub/function.My problem is this: When I open up some forms, the layout is not as desired. Here is an example:The sub header: "Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click" is extended over two lines... (when opened up as text) is it possible in VB settings to change this to be only on one line? Or is there a 'word wrap' feature I can use when viewing text?
View 4 Replies
Jul 8, 2010
I have a winforms application that uses a datagridview. When I access the EditedFormattedValue of a cell while it is in edit mode, sometimes, but not always, the whole cell turns black. Is this a feature of the datagridview, perhaps some sort of validation feature I need to turn off? Also, changing the background color doesn't remove the black background for me.
View 1 Replies
May 18, 2010
i have a program were you import a image with a red back and the red disapeers and turns transparent using this code. But it uses a bitmap as a image holder and bitmap does not support transparacy. So i need a image bitmap so i dont know what else to do
[Code]...
View 13 Replies
May 5, 2009
How to make a programe that turns off the computer after a set amount of time.
View 13 Replies
Apr 27, 2006
when i click on a comboboxcell in a datagridview, the background turns black . . .
View 4 Replies
Feb 26, 2012
Just wanted to know if you had some design code which was created, and that is all you have. Can you open this designer code and create the actual working main Form from this? I don't need this designer code for any specific task, just wanted to know if there is a command within VB Studio 2010 that creates the actual Form from the design code. For example; The following piece of designer code is for a simple program that finds the Circumference of a Circle.
[Code]....
View 3 Replies
Apr 21, 2011
I'm trying to add a string to a listbox if there is none exact string existed inside, but it turns out a very weird error. Look at this.
On form_load, I have this:
AddHandler Server1.OnUserLoggedIn, AddressOf HandleUser
And then,
Public Sub HandleUser(ByVal username As String)
'Here, you handle adding the text to a text box.
Me.Invoke(New PrintMessageDelegate(AddressOf AddUser), username)
End Sub
[Code] .....
The output is when I connect the first client, it works fine. But, when I try to connect the second client, it prints out three times both the listbox1 item and the txtDisplay. It's like get caught in loop, but I have tried other kind of loops like for each and other string comparison too, still work that way.
View 4 Replies
Apr 10, 2011
I have a form in Visual Basic 2010 in Design view, and at the top of the form there is a close button along with the minimize and Maximize Buttons. is what I require is when that close button is pressed/clicked I want to close the application
View 4 Replies
Jun 8, 2012
I have a VB windows form for users to put in their payment amount and credit card information for direct payment. I have downloaded the .NET and Java code snippet from paypal for direct payment.How do I integrate the .NET or Java code into the VB form. Finally, how do I pass the parameters from the form to the snippet code.
View 3 Replies
Dec 25, 2011
I need help to form a code for a small arrays manipulation. The input data are known: they are two integers "N" and "s". An integer "N" is always divisible by 4.I need to create an array of "N" members, by repeating (N/4 times) this sub-array: 1,2,2,1 (always is the same). In the picture, this is shown in blue. Then I need to add the same array to the existing array, but shifted for "s" places (red array). The result is "yes" if each sum in new columns is always the same (3). Otherwise the result is "no." note there is no need to draw or display something (DGV, table ...). The required result is only "yes" or "no".
View 8 Replies
Apr 22, 2012
I am trying to create a sort of code library in visual basic where the form displays a list box of certain project files in vb that i have made in the past and when clicked, launches the .exe files of those visual basic program project files.I know it does not work the same way as writing/ reading text files to vb and it seems as simple as 'on click, launch .exe of selected string "vb program 1" and so on. I am having trouble getting started on this one. Im sorry I cannot provide any starter code bc I only have a basic understanding of in/out text files which wont work the same way with .exe
View 1 Replies
Aug 19, 2009
I have a database app where on a button click, I export the current record to crystal report which in turns converts it to a PDF file. Upon application startup, I export one record into PDF just fine but when I move ahead to the next record and I click the export button, the new PDF file that was exported is now blank. If I restart the app, I can then export the one record again but any subsequent record will export to PDF as a blank PDF file.
To sum up:I can export one record once using the below code snippet but when I try it for a second time on another record, I get a blank PDF file (only the crystal report formatting is in the PDF).
[Code]...
View 1 Replies
May 11, 2012
I tried to make a menu for my game, but when I placed the code into the form loading event, it wouldn't show. Then I placed a button and moved the code into the button click event and it worked. Thus, I know the code shouldn't be wrong. How can you make the graphics( as in lines, rectangle,etc) show up when it starts up?
View 5 Replies
Jun 27, 2012
If I add a WindowEvents_WindowActivated handler to my Visual Studio 2005 Macros EnvironmentEvents module, I get a weird side-effect: when I click from one window to another in Visual Studio, that click is treated as a double click.
[Code]...
View 1 Replies
Jul 19, 2011
This code was posted in Chit Chat and everyone is saying how great it is. I just have Visual Studio 2010 and no familiarity with VB6 so I thought it would be good to convert the code to Visual Basic 2010.
[Code]...
View 39 Replies
Jan 18, 2012
I had a weird series of errors involving e.Graphics.DrawString() when painting a panel.I am using a barcode font [Code 128] with a library that converts text to the proper format for Barcode readers.That's fine, however, when I draw it to the panel, that's where things stop being fine:But, here's where things get funky. When I put it into a TextBox instead of drawing it via Graphics.DrawString(), everything is peachy:In fact, the TextBox one looks much better than the Graphics.DrawString() one! Am I doing something wrong?[code]
View 2 Replies
Jan 22, 2012
Wondering if it is possible. It works on the idea that all files share common code. The program would ideally analyse the source file and compare it to the reference files. It would then find common parts of the code and write it to a rebuild file. At the end the rebuild file and the reference files would then be able to rebuild the source file without it being present.
For Example.
source file code = xxyyzyzyxw
ref file 1 = xyxxzyzxwyy
ref file 2 = zxxwyzzywxx
The program would then analyse these files and make a rebuild file like the following
source(0,1) = ref1(2,3)
source(2,3) = ref1(10,11)
source(4,7) = ref2(5,6) + ref2(5,6)
source(8,9) = ref2(2,3)
Thus you would be able to build the source file using these instructions and the reference files.
View 1 Replies
May 25, 2009
I've been working on a project the last couple of day with the help of a lot of you out there. I've more or less finished the design of the interfase, but there are stange this happening with the form. I can say much about what is wrong because I dont understand it, but I would like to. I have added the form Class code and the Designer Code, is that enough or is more required? Theres a msgbox that popup in the form Load event which I placed there to see what I could learn about the GraphicsBuffer.
Imports System.Drawing
Imports System.Drawing.BufferedGraphics
Imports System.Drawing.BufferedGraphicsContext
[CODE]...
View 1 Replies
Dec 6, 2011
when i put, for example, a picturebox in form and code some events. then i want delete that picturebox. well the code stills there. imagine that i use another picturebox i use the same name. now if i double click on these picturebox, the code editor recreates a new subs. can i disable these situation?
View 6 Replies
Mar 8, 2011
Ok i have this code on a button click hook
[Code]...
but if the checkbox is not checked then i want it to wait until it has copied the file before deleting it because at the moment it deletes it quicker than it copies it and the file could be different size everytime so i cant just put a simple timer of say for example 5 seconds in.
View 2 Replies
Dec 18, 2010
using one form information to be transferred to a second form the code becomes invalid after an validation error has arisen from the first form (ie no adult passengers was selected and the error message was displayed) when corrected the information to be transferred become incorrect as the information is transferred without the correction. [code]
View 1 Replies
Aug 15, 2011
I need a code that can allow the login form to search for pin number stored in another form example when a customer enters the pin number and clicks ok button the login form searches if the pin number exists in the bank details form
View 7 Replies
Oct 30, 2009
I'm making a game maker, and I just need to know how to put the buttons on the form. where to add the button code in the Form1.Designer.vb file? I just need to know what the syntax of InitializeComponent is.
View 7 Replies
Feb 4, 2010
how to make another class/module that I can use in Form1.vb? I've been putting all my code into Form1.vb and it's getting really messy?
View 8 Replies
Oct 7, 2010
I am learning VB for the moment. I want to copy/paste code from a PDF to Visual Basic 2010 Exppress, but if i paste the (structured in PDF) code to VB, i get 1 long string of code and need to restructure it by entering after each line. Otherwise VB gives me a lot of errors. This is a time consuming work. Isn't there a way, VB puts the code in the right format?
View 4 Replies
Jan 4, 2010
I've got a form that opens up whilst data is being pulled from the database in another form (basically a box to say it's loading), the form opens when I want it to and the gif shows but doesn't run until the code on the other form has finished.
View 5 Replies