1,857 Posted Topics

Member Avatar for mathias234

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.

Member Avatar for tinstaafl
0
732
Member Avatar for GolDRoger00
Member Avatar for vonnoy
Member Avatar for khizer03
Member Avatar for margaret224
0
195
Member Avatar for rockout15
Member Avatar for hawkeyes1000

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.

Member Avatar for tinstaafl
0
230
Member Avatar for thanzeem7

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.

Member Avatar for M.Waqas Aslam
0
1K
Member Avatar for deceptikon

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 << …

Member Avatar for tinstaafl
2
3K
Member Avatar for rei8mer

Where do you want the account? Website? Computer? Windows? Linux? Mac? Server?

Member Avatar for tinstaafl
0
54
Member Avatar for tinstaafl

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.

Member Avatar for Dani
0
2K
Member Avatar for santo12

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.

Member Avatar for tinstaafl
0
237
Member Avatar for jakub.peciak

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 …

Member Avatar for jakub.peciak
0
384
Member Avatar for moutaz.almsrey
Member Avatar for tinstaafl
0
114
Member Avatar for rishif2

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.

Member Avatar for AndreRet
0
140
Member Avatar for andika.kurniawan.121

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

Member Avatar for Ancient Dragon
0
356
Member Avatar for neo.mn

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.

Member Avatar for nmaillet
0
161
Member Avatar for t2nator

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

Member Avatar for Begginnerdev
0
205
Member Avatar for bazzer14
Member Avatar for silversurf

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 …

Member Avatar for silversurf
0
444
Member Avatar for Leo G

the locations look to be registry entries. deleting those entries from the registry should do the trick.

Member Avatar for stormal1
0
364
Member Avatar for RobRTaylor

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`.

Member Avatar for RobRTaylor
0
1K
Member Avatar for acepeda
Member Avatar for TnTinMN
0
135
Member Avatar for Raisefamous
Member Avatar for tony75

for the count try: `int count =Directory.GetFiles(@"c:\InitialPath", "*.cs", SearchOption.AllDirectories).Length;`

Member Avatar for tinstaafl
0
191
Member Avatar for HBovenkamp

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.

Member Avatar for tinstaafl
0
146
Member Avatar for thechampp

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 …

Member Avatar for tinstaafl
0
345
Member Avatar for tony75

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; } …

Member Avatar for tony75
0
200
Member Avatar for Rahul47
Member Avatar for tinstaafl
0
30
Member Avatar for romz

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 …

Member Avatar for romz
0
1K
Member Avatar for docgrid
Member Avatar for imti321

It looks like you're declaring `RowCount` every time the routine is run, which will reset it's value. Try making it global.

Member Avatar for tinstaafl
0
382
Member Avatar for sr.senthilnathan

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) …

Member Avatar for tinstaafl
0
391
Member Avatar for Rahul47

If you want to insist on doing it in run time use `Me.ControlBox = False` or for C# `this.ControlBox = false;`

Member Avatar for Rahul47
0
799
Member Avatar for Rahul47
Member Avatar for Luc001
0
330
Member Avatar for Zippyvinman

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.

Member Avatar for stormal1
0
166
Member Avatar for 2mhzbrain
Member Avatar for AndreRet
0
438
Member Avatar for f4fjks

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.

Member Avatar for lolafuertes
0
133
Member Avatar for Mr.M

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for gigillo

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.

Member Avatar for Roxy-
0
383
Member Avatar for nitin1

This reference [article](http://www.cplusplus.com/reference/algorithm/sort/), seems to have the info you're looking for.

Member Avatar for NathanOliver
0
225
Member Avatar for ziziBA

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)

Member Avatar for ziziBA
0
337
Member Avatar for acepeda

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

Member Avatar for tinstaafl
0
133
Member Avatar for monching

The title bar will stay just the minimize.maximize, and close buttons will go.

Member Avatar for Ancient Dragon
0
141
Member Avatar for Rahul47

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.

Member Avatar for Rahul47
0
97
Member Avatar for tinstaafl

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 …

Member Avatar for Ketsuekiame
0
301
Member Avatar for Rahul47

try this `Form1.Button1.PerformClick()`. Put this in the click event of the button on form 2.

Member Avatar for Rahul47
0
163
Member Avatar for monching

If Form1 is the startup form just call Form1.Close(). That will close the whole app.

Member Avatar for tinstaafl
0
239
Member Avatar for ryklon

try declaring `NetworkStream` with class level scope the same as `ClientSocket` and use the same stream in both subs.

Member Avatar for ryklon
0
568
Member Avatar for glenndr_15

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 …

Member Avatar for tinstaafl
0
214
Member Avatar for rotten69

That's really such a wide field. Googling for a specific algorithm would probably be more efficient, build your library as you go.

Member Avatar for ddanbe
0
222

The End.