1,857 Posted Topics
Re: looks like mostly you'll need to add using System.Windows.Forms; then use Application.ExecutablePath instead of My.Application.Info.DirectoryPath.ToString and using System.IO; File.WriteAllText( instead of My.Computer.FileSystem.WriteAllText( and MessageBox.Show( instead of Interaction.MsgBox( and MessageBoxButtons.OK instead of MsgBoxStyle.Information MsgBoxStyle.Critical I think that handles most of the errors. | |
Re: Have you tried a listview it can be data bound and can have multiple columns. | |
Re: what error are you getting, and on what line? | |
Re: in the e-mail will be a 'From' field, that line should have the e-mail address | |
Re: try `textbox1.text=combobox.selecteditem.text` | |
Re: This problem seems to crop uip every so often. I think it's hotmail. If it get's a bunch of spam from yahoo ip addresses it automatically blocks the ip's. | |
Re: How can the user pick the date and time if it's read only? You need some clarification there. If you want to display the date and time as read only use a label and the built in tostring functions of the datetime class. | |
Re: Perhaps I'm missing something, but why is: int main() { string selection = ""; while (!(selection == "Q")) { cout <<"\n\n\tA)\tOption A\n\tB)\tOption B\n\tQ)\tQuit\n"; cout << "Full selection: '"; cin >> selection; selection = char(toupper(selection[0])); switch (selection[0]) { case 'A': cout << "You chose option A\n"; break; case 'B': cout << … | |
Re: Where do you want the account? Website? Computer? Windows? Linux? Mac? Server? | |
Had an idea. How about an automatic page refresh when a post is submitted? This would allow a poster to see posts that were submitted at close to the same time, and maybe re-word his or her response. | |
Re: Not sure about express but you should be able to use the 'Publish' wizard. Just point it to a folder on your hardrive and say it'll install from a cd/dvd. You end up with a file called 'setup.exe', that will install your app with shortcuts, and can be uninstalled. | |
Re: I think this will give you want you want: Dim s As String = "1642" Dim dt As TimeSpan dt = TimeSpan.Parse("00:" + s.Substring(0, 2) + ":" + s.Substring(2, 2)) MessageBox.Show(dt.ToString) Your output is 00:16:42. I think this is the closest you can get with a built-in function. But if … | |
Re: sounds like a hardware failure. hope it's still under warranty. | |
Re: declare 2 constants one for height and one for width and change the height and width in the resize event. Maximize will throw an error so you'll have to trap that. | |
Re: look for a project file. The pattern for the extension will be ##proj. Keep in mind that unless it's presented as a .net project, it's probably written in a different language even if it says that it will interface with .net | |
Re: Here's the link to an MSDN [article](http://msdn.microsoft.com/en-us/library/ms229063%28v=VS.100%29.aspx) on designing custom event handlers. Here's the link to an MSDN [article](http://msdn.microsoft.com/en-us/library/ms229011%28v=vs.100%29.aspx) on designing events. It seems there are several things missing from your code. | |
Re: When you `ReDim Results` it clears the values. Try placing the statement after line 22, or if it must be where it is, use the `Preserve` modifier to keep it from clearing the values | |
Re: gonna date myself, but isn't time we brought back RTFM? lol | |
Re: From my understanding of MDI Forms, here's something you can try. In your mdi child forms add menu items that are specific to that form, with the same name that you have in the MDI Parent. For instance you said that when the Category form is open you want the … | |
Re: the locations look to be registry entries. deleting those entries from the registry should do the trick. | |
Re: Your code will work if the .lnk file is in the current users desktop directory. But if it's in the All Users desktop Directory, you'll need to use `Environment.SpecialFolder.CommonDesktopDirector`. | |
Re: if autosave isn't enabled you might have to save everything first. | |
Re: > VS2012. > As long as you've got Win 7 or higher | |
Re: for the count try: `int count =Directory.GetFiles(@"c:\InitialPath", "*.cs", SearchOption.AllDirectories).Length;` | |
Re: This [article](http://stackoverflow.com/questions/2841120/watin-logondialoghandlers-not-working-correctly-in-windows-7), is using C# but the concepts should be able to help you. | |
Re: Here's one way to sort ascending or descending: using System; using System.Collections.Generic; class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public int CompareTo(Employee other) { if (Program.SortOrder) { // Alphabetic sort if salary is equal. [A to Z] if … | |
Re: You might want to consider a maskedtextbox: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.Globalization; namespace TestCode2 { public partial class Form2 : Form { public Form2() { InitializeComponent(); maskedTextBox1.Mask = "$0000.00"; maskedTextBox1.ValidatingType=typeof (double); maskedTextBox1.TabIndex = 0; } … | |
![]() | Re: Try this: For I = 1 To Val(TextBox1.Text) ComboBox1.Items.Add(I) Next |
Re: I think your problem might be a limitation of VB. When there is both a click event handler and a doubleclick event handler the doubleclick never triggers because the first click is trapped by the click event handler. > [If there is code in the Click event, the DlbClick event … | |
Re: what code have you got? and where is the problem in it? | |
Re: It looks like you're declaring `RowCount` every time the routine is run, which will reset it's value. Try making it global. | |
Re: it appears that when you install the dongle that it will install a virtual serial port. Through this port you access it like any modem, with AT commands. The specific commands don't seem to be readily available online, but maybe the documentation or your provider will have them. This [article](http://www.codeproject.com/Articles/38705/Send-and-Read-SMS-through-a-GSM-Modem-using-AT-Com) … | |
![]() | Re: If you want to insist on doing it in run time use `Me.ControlBox = False` or for C# `this.ControlBox = false;` ![]() |
![]() | Re: in the design tab of the child form set the `WindowState` property to `Maximized` |
Re: have you tried the Add New Hardware applet in control panel? Also what does the Device Manager say about the sound card? Another place to check is the Sound applet and see where the default audio device is pointing to. | |
Re: instead of `Format(DTPicker2.Value, "YYYY/MM/DD")` try `dateTimePicker1.Value.ToString("u")` | |
Re: I think you probably want to use a [`FileSystemWatcher`](http://msdn.microsoft.com/en-us/library/vstudio/system.io.filesystemwatcher%28v=vs.100%29.aspx) I'm thinking the Changed event filtered by the LastAccess property. | |
Re: I think what you want is `button1.PerformClick();` This will trigger the button click event from anywhere in your code. I'm pretty sure the click event handler subroutine is a must. If you need to record the status of the button click a simple boolean in the click handler routine can … | |
Re: Try using a byte array and the `ReadAllBytes` method instead. From there a simple For loop stepped the length of each section should be able to parse it. ![]() | |
Re: This reference [article](http://www.cplusplus.com/reference/algorithm/sort/), seems to have the info you're looking for. | |
Re: Start [here](https://www.google.ca/search?q=autorun+editor&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a#hl=en&client=firefox-a&tbo=d&rls=org.mozilla:en-US%3Aofficial&sclient=psy-ab&q=android+programming+tutorial+for+beginners&oq=android+programming+tutpo&gs_l=serp.1.1.0i13l4.0.0.6.3313.0.0.0.0.0.0.0.0..0.0.les%3B..0.0...1c.DhGYWFtnuYk&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.1357316858,bs.1,d.cGE&fp=84a3b48c80fa3a9c&biw=1280&bih=859) | |
Re: btw you can still access the answer on your old [thread](http://www.daniweb.com/software-development/vbnet/threads/443671/need-help-with-datetimepicker). Here's the answer that worked before. > change the format string, `TempDateString = Format(dtphours.text, "MM/dd/yyyy")`. Also you'll have to pass TempdateString to the database not dtphours.text | |
Re: The title bar will stay just the minimize.maximize, and close buttons will go. | |
![]() | Re: Add another menustrip. Enter the properties for the items collection. Set the layout to Top, Right. Add a menuitem. Set the alignment property to right.this will give you a menustrip with a menuitem on the right hand side of the form. ![]() |
I'm working on a project that contains 3 different lists. 2 lists of 2 different controls, and 1 list of a custom class. I found that I needed each of these lists sorted. The problem with sorting a list of complex types is there's no default comparer for them. That … | |
![]() | Re: try this `Form1.Button1.PerformClick()`. Put this in the click event of the button on form 2. ![]() |
Re: If Form1 is the startup form just call Form1.Close(). That will close the whole app. | |
Re: try declaring `NetworkStream` with class level scope the same as `ClientSocket` and use the same stream in both subs. | |
Re: Try this: Public Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim KeyChr As Char = e.KeyChar If KeyChr.ToString.ToUpper = "A" Then Label1.Text += KeyChr.ToString End If End Sub Anytime an `a` or an `A` is entered in the textbox it gets echoed to the label. If … | |
Re: That's really such a wide field. Googling for a specific algorithm would probably be more efficient, build your library as you go. |
The End.