355 Posted Topics
Re: Hi, You can find some information, [URL="http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx"]here.[/URL] Or you can try a thirt party like INNO Setup, look [URL="http://www.jrsoftware.org/isinfo.php"]here.[/URL]. | |
Re: Hi, Perhaps you can find some information, [URL="http://www.codeproject.com/KB/miscctrl/GMapNET.aspx"]here.[/URL] How to use this Control. | |
Re: Hi, He're some examples how to play with Dates and Time. See, wich one you need: [CODE]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = TimeOfDay.ToLongTimeString Label2.Text = DateAndTime.Now.ToString End Sub[/CODE] | |
Re: Hi, You can try this: [CODE]For Each dr As DataRow In myDataSet.myTable.Rows Me.toolStripTextBox1.AutoCompleteCustomSource.Add(dr("myColumn").ToString()) Next[/CODE] Make sure you have your AutoCompleteSource set to CustomSource. | |
Re: Hi, I should use a Class for this so that you can call it instead of writing the whole code over again. | |
Re: Hi, I think a better way of doing this to use the Arrowkeys. The reason way is, if the user needs the letter W or Q then he can't use it because of another action. | |
Re: Hi, I've one more question: What will you do if the number doesn't match in listbox2? ![]() | |
Re: Hi, You can find an example how to convert a Crystal report to PDF file, [URL="http://www.codeproject.com/KB/vb/JatsArticle1.aspx"]here.[/URL] | |
Re: Hi, This: [CODE] Else FutureJob = future[/CODE] Should be: [CODE] Else FutureJob = future[/CODE] | |
Re: Hi, You should use the Image..Fromfile method. You can find some information, [URL="http://msdn.microsoft.com/en-us/library/4sahykhd.aspx"]here.[/URL] | |
Re: Hi, What you also can do is, go to ask by uncle Googl or you can read [URL="http://www.homeandlearn.co.uk/net/nets12p1.html"]this[/URL] tutorial about databases with access. | |
Re: Hello zambag, You should create a new thread, because this thread is solved. Thanks, Luc001 | |
Re: [QUOTE] I would also like a way to eliminate having 40 textboxes on a page lol, because the idea was to have a pop up box or something open that would let the user submit it and then return to the question instead of hiding textboxes[/QUOTE] Hi, You can try … | |
Re: Hi, You should My.Settings. You can find some information, [URL="http://msdn.microsoft.com/en-us/library/ms379611(v=vs.80).aspx"]here.[/URL] | |
Re: Hi, To delete the last typed char you need this: [CODE]Private Sub btnBackSpace_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBackSpace.Click If (lblDisplay.Text.Length > 0) Then d = lblDisplay.Text.Length lblDisplay.Text = lblDisplay.Text.Remove(d - 1, 1) End If End Sub[/CODE] To change the value signal, you need this: [CODE]Private Sub … | |
Re: Hi, You want to print the bill. What's that the bill? How did you showed the ordered food by the costumer? ........ It's like walking in the dark without any lights... Give us some light and I'm sure you'll have a solution for your problem :) | |
Re: Hi, What you also can do is to create a splasscreen. In that screen you can add some program information like Name, programmers, version, etc... Add a progressbar and when the value reach 3 sec. then show the form load. | |
Re: Hi, Here's an example: [CODE]Dim associatedChar As Char ' Returns "A". associatedChar = Chr(65) ' Returns "a". associatedChar = Chr(97) ' Returns ">". associatedChar = Chr(62) ' Returns "%". associatedChar = Chr(37)[/CODE] | |
Re: Hi, You should do something like this: [CODE]Private treeViewWithToolTips As TreeView Private Sub InitializeTreeViewWithToolTips() treeViewWithToolTips = New TreeView() Dim node1 As New TreeNode("Node1") node1.ToolTipText = "Help for Node1" Dim node2 As New TreeNode("Node2") node2.ToolTipText = "A Tip for Node2" treeViewWithToolTips.Nodes.AddRange(New TreeNode() {node1, node2}) treeViewWithToolTips.ShowNodeToolTips = True Me.Controls.Add(treeViewWithToolTips) End Sub[/CODE] | |
Re: Hi, I think you should use a powerpointviewer for that instead of the powerpoint.exe . That means that you can use an ActiveX control like the activex control from windows media player. To download the powerpointviewer look, [URL="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=048dc840-14e1-467d-8dca-19d2a8fd7485"]here.[/URL] After you downloaded and installed the viewer you can find the AciveX … | |
Re: [QUOTE=msqueen082;1524749] I have to use dates in calculation ... like a client types a appointment datat in textbox and in another textbox it shows that the date has to be between two days. [B](appointment written in text box has to be 90 days after today but less than 100 days … | |
Re: Hi, You can find a Tic Tac Toe tutorial, [URL="http://vbprogramming.8k.com/tutorials/tic-tac-toe.htm"]here.[/URL] This one is the easyest one, just googled ;) | |
Re: Hi, Did you added that desktop icon again to the newer version setup of your application. If not I think you should try that. | |
Re: Hi, Add a label in designtime and place it above the datetimepicker, just like Codeorder showed. In the properties of the label set the text: - Please Select Date - and the textalign = center. That's all. | |
Re: Hi, You can use the OpenfileDialog Class for that. You can find some explanation and example, [URL="Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)"]here.[/URL] | |
Re: Hi, In the properties of the textboxes you doesn't want the focus set Tabstop = False For the textbox set Tabindex = 0 | |
Re: Hi, You can try something like this: [CODE]Me.DataGridView1.Rows.Insert(0, value1, value2) ' values you entered[/CODE] Didn't tested it | |
Re: Hi, A string containing the column name followed by "ASC"(ascending) or "DESC"(descending) will change the datatable order. The columns are sorted ascending by default. | |
Re: Hi, Yu can find some VB 2008/2010 tutorials, [URL="http://www.visual-basic-tutorials.com/"]here.[/URL] There some good books depending on the VB version on the net. | |
Re: [QUOTE=kazekagerandy;1517232]is there anyway that i can place an object in a specific coordinates in vb?[/QUOTE] Hi, When you speek about coordinates with Mapping, then I think of Latitude and Longitude. You can find some tutorial, [URL="http://www.vbdotnetheaven.com/UploadFile/scottlysle/GPSandVBNET09062007021746AM/GPSandVBNET.aspx"]here.[/URL] | |
Re: Hi, You should try something like this: [CODE]Dim item As ListItem For Each item In ListView1.ListItems If item.Selected = False Then 'do your stuff here End If Next[/CODE] | |
Re: Hi, I think you can find some information, [URL="http://msdn.microsoft.com/en-us/library/ms720163(v=vs.85).aspx"]here.[/URL] And specially step 3 . | |
Re: Hi, For your second question, use this in a button event: [CODE]System.diagnostics.Process.Start("shutdown", "-s") ' Will cause the computer to shutdown[/CODE] | |
Re: [QUOTE=markdean.expres;1507418]Guys how do I save settings of a form like its background color, fonstyle, sontsize etc. I cannot save them as string or text into my access database.[/QUOTE] Hi Mark, You can also try to do this with the My.Settings object. You can find some information,[URL="http://www.devsource.com/c/a/Languages/VBNET-Using-MySettings-for-Application-Settings/"]here.[/URL] | |
Re: Hi, To let the code that Animal Mother provided work. You need to change in the properties of that Tabcontrol the [B]Drawmode = OwnerDrawFixed[/B] ![]() | |
Re: Hi, You should try something like this: [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If CheckBox1.Checked = False Or TextBox1.Text = "" Then MsgBox("Error, You forgot something") Else MsgBox("Progressbar coding goes here") End If End Sub[/CODE] | |
Re: [QUOTE=Mysterious;1185106]it works for the final result, but when you click the dropdown button it shows you day and month, I want to pick years only, how can I do that thanks[/QUOTE] Hi, If you want only a dropdown with years to select without any days and months, then you doesn't … | |
Re: Hi, When you first open up a project written in VS 2008 inside VS 2010 it will normaly prompt you to upgrade the project. What this actually does is update the project (.vbproj) and solution .(sln) files to be compatible with VS 2010. Did you tryed that? | |
Re: Hi, You can find some information, [URL="http://msdn.microsoft.com/en-us/library/Aa362761"]here.[/URL] | |
Re: Hi, Go to the properties of your button and use this text: &Open and this name: btnOpen You will see in the designer the text appear in the button like this: [U]O[/U]pen Now, try this part of code: [CODE]Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click … | |
Re: Hi chibex64, Your code only shows a randomvalue and not the datetime.minute or datetime.year. You should do it like this: [CODE]'declare variables Dim randomvalue As New Random 'create random object Dim randomhold As Integer 'generate random number For i As Integer = 0 To 9999 randomhold = randomvalue.Next(1, 9999) txtUserId.Text … | |
Re: Hi, You can find some examples how to create custom buttons, [URL="http://www.codeproject.com/KB/buttons/CButton.aspx"]here.[/URL] | |
Re: Hi, You can find some information, [URL="http://stackoverflow.com/questions/1163149/custom-action-on-uninstall-clickonce-in-net"]here.[/URL] | |
Re: [QUOTE=markdean.expres;1481952]Guys, is there a way to programatically and more efficiently sort records displayed in a datagridview control? If so, how?[/QUOTE] Hi, You should use the Datagridview.Sort method. You can make your sorting in a ascending or decending direction. You can find an example, [URL="http://msdn.microsoft.com/en-us/library/0868ft3z(v=vs.80).aspx"]here.[/URL] | |
Re: Hi, You could try to set [B]AutoGenerateColumns = off [/B]. | |
Re: Hi, You can try something like this: [CODE]Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged, _ RadioButton2.CheckedChanged If RadioButton1.Checked Then MsgBox("You clicked Radiobutton1") End If If RadioButton2.Checked Then MsgBox("You clicked Radiobutton2") End If End Sub[/CODE] | |
Re: Hi, You need to use the performance counter class for that. Look, [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx"]here.[/URL] | |
Re: Hi, You can't add a Checkbox into the listview header, but you can add a checkbox into the listview header and use this ccde to use it. [CODE]Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged For Each lvitem As ListViewItem In Me.ListView1.Items If lvitem.Checked = … |
The End.