Setting Up A Program In VB?
Jun 18, 2012I have a little problem with setting up a program in visual basic, could you help me out ? This is what i want to do.. I have no ideea on how to make the form in form thing..
View 2 RepliesI have a little problem with setting up a program in visual basic, could you help me out ? This is what i want to do.. I have no ideea on how to make the form in form thing..
View 2 RepliesI'm trying to select a TreeView node with my programhy does this not work?
Dim
MyNode As
New
[code]....
I want to insert text into an empty database.I create a database using Access and now I want to insert text1) first I Added the data source2) I drag and drop the Fields into the dialog Form3) using dataview I inserted the database onto the dialog form4) added a little bit of code...5) Built the program and the database shows nothing...do I need to make a Query or something...bind the source
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[Code]...
Is there a way to create a setting while program is running?For example, have a textbox in which the user will give the name of the setting
and a combobox with 3 items: String, integer, Boolean.But these settings have to stay until you open the program again.
I'm setting up a quote calculation program for my business.I'm just a beginner with Visual Basic (2010 Express) and am finding it very interesting.I already did some reading and followed the tutorials but I'm getting stuck with my program now.
[Code]...
Make it possible for users to enter necessary data in the "new quote" screen. The data needs to be written into the database table of "new quote"Make it possible for users to lookup previously made quotes in the "open quote" screen. I want them to be able to select a quote based on "quotenumber" or "customername".They then must be able to select a quote, which will open a new window with all quote information from the tables. This information needs to be editable and savable to the databaseGenerate a PDF of a "finished" quote and mail it as attachment to a customerthe "customer information" table contains information for the quote concering address and name of customer. I want this so that users can select a customer in the "quote screen" and all other data will be filled in automatically. I also want that users
can give in a new customer in the quote screen and that that customer will be saved in the "customer information" table.point 4 is also applicable for the "material information table".
I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out �pessimist�, otherwise print out �optimist�.I'm only at the very beginning stage of the program, I've created the design of it but I'm not too sure whether the code concept for the radio buttons is right. How can I expand on this?
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numberOfNos As Integer = 0
[code]....
Is it possible to set a form Topmost setting only for one commercial program?Say my program is A and commercial program is B... I want Topmost setting for program A will only work when I working on program B, and when I switch to other program than program B the Topmost setting for program A back to false.
View 2 RepliesI have a single form that I would like to move across the screen with my VB program. Of course it's simple to set the location X and Y property for compile time using the properties tab, but I want the form to move as the program runschanging the coordinates within a for-next loop.I can easily get the X and Y coordinates of the form within my program by using X = me.location where X has been dimmed as type point.console.writeline(X) will appear as {X=20, Y=40}. for example
View 2 Replieshow to add the Uninstall option in the Start--> Programs, during setup and deployment of an application?
View 4 RepliesI am trying to make a program that deletes all setting made by using the SaveSetting function. I don't use the MySettings class as it makes a setting for each user. This is basically what I need it to do:[code...]
View 9 RepliesI'm using .net 2008 Trying to create a small graphic component, I have a problem setting background both at design time and then runtime. I derived a panel like this
[code]...
But it isn't working! If I don't Overrides Property BackColor, this is working as expected but I really need to group in my custom tab.
I need a way to allow another form to load after my program display's an introduction cut-scene without loading the form in the middle of the cut-scene. Sort of like a delay.
View 2 RepliesWindows forms Application. VB .NET 4.0 In my application I have a global boolean variable that keeps track of when changes are made and when they are saved called changesSaved. On closing even it checks the value of this variable before closing the window.. I am using textchanged event to automatically change the value of changesSaved to FALSE when text is changed.. Problem: The group box items are being populated dynamically so the user can edit the values or simply just view them. This dynamic population is causing the textchanged event to fire because the program is changing the text value of the box to put the values in that are stored in the database. The textchanged event should not fire unless the user him or herself enters a value or values in the text boxes..
Is there a way to specify the source i guess you could say for the text changed event or another way so that it will only fire when the user inputs information.??? Functions are as follows: The first is called by the load event to place the values in the box... The next one is the one that is being called as a result of the first one and is also the one that is causing the problems.
[Code]...
Setting a textchanged event to only fire when text is actually entered by user not program
View 1 RepliesI am trying to create a setup file which would automatically install a link to the executable in the User's Desktop and Startup--> Program. However despite following all the steps in the right order I do not see any short cut in the desktop and Start -> Program.
View 4 RepliesI need help and wondering if you can help me to get my first project...it's a hobby and wondering if you can get me code for this so i can see how it does it* Evaluate( ) Prints the evaluation of the hand to the evaluation Label.
o If IsFlush( ), prints "flush; "
o calls SetPipArray( )
o Uses a For Loop to go through pipArray. For each element, uses a Select Case statement to
[code]....
In our projects we use setting variables to store user setting for the applications. Moreover, with every latest version of the applications, we upgrade these variables to retain user settings.Normally, this works fine, but recently one of my end user reported an error i.e.Configuration System failed to initialize". The error is related to user.config file. Therefore we requested the user to send us his file.After received the folder, we noticed that it contains 3 files (3begfjb.newcfg,3begfjb.tmp and user. config). 3begfjb.tmp is an empty file, while 3begfjb.newcfg and user.config are identical files. We tried to open these files but the data in user.config isn't proper xml rather its unreadable formatted file.Do any you guys had experienced this sort of issue or any ideas how and what may have created these files and corrupted user.config file.
View 3 Repliesis it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 RepliesIf you have a sqlClient.sqlconnection object, in the cleanup code (finally block etc) do you dispose of the object or do you set it to nothing, or both?
I've always just called the dispose, and allowed the garbage collector to do its thing...
My.Setting is working ! But when I add form to project then my app are not save Setting ! Now , how can fix it !
View 2 RepliesMe.SetProgressBars()
AddHandler zip.SaveProgress, New EventHandler(Of SaveProgressEventArgs)(AddressOf Me.zip_SaveProgress)
zip.Save(target)
Took some snippets from a MSDN page and molded it into my project ... problem is on every run its setting a value of -1 to something and i cant for the life of me figure out what to!
Private Sub zip_SaveProgress(ByVal sender As Object, ByVal e As SaveProgressEventArgs)
Select Case e.EventType
Case ZipProgressEventType.Saving_AfterWriteEntry
[code].....
how to setting the SQL Server
View 6 RepliesI kinda found a way to get the name.. but not the value.. anyone have some sample code to just run thought the settings and spit out the name and value ?
View 3 RepliesI think the way to do this in VBnet involves binary math? -- no "easy" way I don't think (like picbasic mybyte.0 = 1 mybyte.1 = 0 etc).I know you can read a bit by using convert.toint32 (2^0) (2^1) etc. and comparing to an integer value but my head is going in circles on how to set (write) a bit value. I need bytes because I intend on writing to the serial port.If bit0 is 1 then mybyte bit 0 = 1.
View 33 RepliesI have a tab in a windows form called Wafer Map that has three sub-tabs. The First sub-tab is the called Map and has a Load and Skip button. I am trying to set the focus on the Wafer sub-tab on the Load button click. This is the following code I have tried to use.
[Code]...
The Wafer_Info.Enabled = True is used to enabled all of the controls on the Wafer tab and works properly when the button is clicked. I have tried using .Focus() and .Show() to bring focus to the next tab but I am not have any luck getting to switch.
How to set focus on next row or how to find next row index. My first row is inserted but on second loop it overwrites the first row cell...
View 1 RepliesSo I am working on a small program to take a given password and mess with it etc. I have coded everything to make it work the way I want except I can't figure out what I am missing to limit the input from 5 to 7 characters only. I have attached the entire solution in case anyone wants that.
'Variables
Dim oldPassword As String = String.Empty
Dim newPassword As String = String.Empty
[Code].....
i am sending an email message from outlook using this method:
dim message as new mailmessage(from,to, subject, body)
mailclient.send(message)' mailclient is defined as an smtpclient
my from is "aaa@yahoo.com" (the mail is fiction for the purpose of demonstrating what i am doing)and this method works but I don't want the reciever to see that the mail is from aaa@yahoo.com, I want him to see that its from "Blacknight". In yahoo you can simply write [URL] <Blacknight> and this will work. how do i add a name to the mail in mailmessage?
I have this code for placing food in my snake game, but it is not working. It says the structure 'system.drawing.point' has no default property.
Public Sub PlaceNewFood(Optional ByVal EmptyCell As Boolean = False)
Dim rng As New Random
Dim fx, fy As Integer
[Code].....
I'm having trouble setting up a connection to the DB.... When I go into VS 2008 on the left hand side (Server Explorer), I right click on the "Data Connections" option and select Add Connection and get the following error:
"The Microsoft.VisualStudio.Data.Interop.IVsDataProviderManager service could not be found."