Search:

Type: Posts; User: Negative0

Page 1 of 13 1 2 3 4

Search: Search took 0.67 seconds.

  1. Replies
    7
    Views
    2,796

    Re: ping.sendasync memory leak

    Could it be because you are creating one that you don't dispose? Look at the top of your method, you Dim myPing as New Ping and then in your loop you create another one, essentially orphaning that...
  2. VS 2010 Re: How to get server's IP from client on VB.NET

    Are they on the same network? If they are you can use UDP to do broadcasting. On your server, you can have a component that listens for a UDP broadcast and when it hears one, it can reply to the...
  3. Re: [RESOLVED] Too many Excel.exe tasks are opened...

    I ran the code you posted pretty much as is (just changing the filename) and no instances of Excel.exe were left running on my machine.

    I would start your code with a clean slate and make sure you...
  4. Replies
    8
    Views
    3,345

    VS 2010 Re: Mac dock for my application

    Look at this code:

    http://chakkaradeep.wordpress.com/2007/08/15/macdock-updated-to-hold-aero-style/

    It's C# and WPF, but might give you an idea on how to do things.
  5. Replies
    12
    Views
    2,320

    VS 2010 Re: My own system tray / taskbar.

    I don't quite understand what you are trying to do. Do you want it to run on top of windows or to be a complete OS? IF you want the Complete OS, then you need to start with a lower level language...
  6. VS 2008 Re: Setting the Installation Location of a published application

    Go to Tools->Options in VS and select the Projects and Solutions settings and check the "Always Show Solution" checkbox.
  7. Replies
    4
    Views
    1,269

    Re: JS inside VB.Net

    What does the JS do that you can't do in VB?
  8. Replies
    3
    Views
    1,530

    Re: [vb2008] mainHwnd from Child Hwnd

    Actually, GetParent may be a more appropriate call in this case:

    http://msdn.microsoft.com/en-us/library/ms633510(v=vs.85).aspx
    http://www.pinvoke.net/default.aspx/user32/GetParent.html
  9. Replies
    2
    Views
    640

    Re: VS 2010 - VB using a VC file

    Microsoft has a KB article on creating a C DLL and then calling it from VB. Since you already have the C DLL, you can focus on section B, which goes over calling the dll:
    ...
  10. Replies
    2
    Views
    1,836

    VS 2008 Re: OpenFileDialog Filter.

    You can modify the filter to only show the files you want to see:


    Dim ofd As New OpenFileDialog
    ofd.Filter = "Docs(1*.doc)|1*.doc"
    If (ofd.ShowDialog() =...
  11. Replies
    2
    Views
    3,837

    VS 2010 Re: Setting Checkboxes in ListView

    The ListViewItem has a checked property, that lets you set the CheckBox state. If you set it to True, then an item will be checked:


    For i = 0 To 100
    Dim li As ListViewItem...
  12. Replies
    1
    Views
    964

    Re: Screen recorder

    Those are the letter O, not the number zero. Change them to zeros.
  13. Replies
    3
    Views
    736

    Re: write to xml file

    You can use the WriteAllText method to write to text file. If you are simply modifying the XML in a textbox, then that is all you should need:


    ...
  14. Replies
    2
    Views
    683

    VS 2008 Re: Resizing form and controls

    You can use the Form's AutoSize and AutoSizeMode properties to have it grow. So if you programmatically add controls, it will automatically resize to show the newly drawn controls. I would set...
  15. VS 2008 Re: Resize windows form based on option

    The window has a Size property which you can modify. For example, if I have a menu item, that when checked makes the form larger, I can do it like this:


    Private Sub...
  16. Replies
    15
    Views
    4,355

    VS 2008 Re: Read Excel file except fist 14 rows

    Oh and if you are glutton for punishment, you could technically write your own parser for excel files:

    http://www.microsoft.com/interop/docs/OfficeBinaryFormats.mspx

    I know that this is not...
  17. VS 2010 Re: VB.NET --> Is there anyway to retrieve my email from GMail in vb.net? Any class/a

    There are no native classes for receiving email. With GMAIL, you can use a POP3 client, and there is an open source project call OpenPop.net that would let you connect.
    ...
  18. Replies
    15
    Views
    4,355

    VS 2008 Re: Read Excel file except fist 14 rows

    They have a free trial, so you might be able to quickly proof it out to see if it works. If it does, then you can suggest spending $900 now or taking two weeks to see if you can write a workaround. ...
  19. Replies
    3
    Views
    724

    VS 2008 Re: Prevent Clicking Other form

    I agree with Hack, just don't show the main form until after they have already logged in.

    For future forms, where your main window is up and you spawn a new window that needs to block input from...
  20. Replies
    15
    Views
    4,355

    VS 2008 Re: Read Excel file except fist 14 rows

    Have you tried any third party products? I have used the Aspose suite for Word documents on a server and that worked great for me. They have an excel version called Aspose.Cells.

    It basically...
  21. VS 2008 Re: httpwebresponse and getelmentbyid

    Depending on what you are doing, you could use the webbrowser control, as the Document property has a getElementById method.
  22. Replies
    13
    Views
    1,718

    VS 2010 Re: IDE eats too much memory?

    They do have read and write limitations in them. Many manufacturers have mitigated some of this risk by blocking off part of the drive capacity to be used to replace areas that go bad. So a 60GB...
  23. Replies
    13
    Views
    1,718

    VS 2010 Re: IDE eats too much memory?

    I've noticed that running on an SSD has drastically improved the load time and responsiveness of the IDE, so if you are getting a new notebook, try and get an SSD.
  24. Replies
    4
    Views
    3,857

    VS 2010 Re: "WebClient" very slow on initial request

    Are you using a Proxy in IE? If not, try setting the .Proxy property to Nothing and see if it runs faster.
  25. Replies
    5
    Views
    873

    Re: count 00 to 52

    You can use the format parameter of the ToString() method to achieve what you are looking for:


    For i As Integer = 0 To 52
    Debug.WriteLine(i.ToString("D2"))
    Next
    ...
  26. VS 2010 Re: How to set form resolution like current screen resolution

    This needs to be handled on a form by form basis. What you can do it use anchoring and docking to get the desired effect. Anchoring will allow you to specify how your form grows/shrinks with...
  27. VS 2008 Re: help me pls - this about barcode and stuff

    What kind of barcode? There are many different flavors, depending on what you are doing (3of9, 128, UPC, EAN, ...). If you need UPC, this article on code project has a lot of good information:
    ...
  28. Replies
    5
    Views
    8,108

    Re: combo box - assign value to each item

    You can assign objects to the items in a combobox and it will use the ToString method of the object as the display member of the combo box. So for your example, you could create a Country class and...
  29. Replies
    5
    Views
    940

    VS 2008 Re: SendKeys.Send mess with me

    You can do that through code:


    For Each f In System.IO.Directory.GetFiles("C:\Temp")

    If IO.Path.GetFileName(f) = "fileyouarelookingfor.mp3" Then
    ...
  30. Replies
    8
    Views
    9,648

    Re: Read CSV Data into textbox

    If you simply want the entire file contents in a textbox, you can do this:


    TextBox1.Text = System.IO.File.ReadAllText("C:\Temp\file.csv")

    If you want more control over how the data is...
  31. Replies
    2
    Views
    693

    VS 2008 Re: Which button is this ?

    That is referred to as a SplitButton. You can add them to toolbars out of the box, but if you want to add it to a form, you will probably have to create your own or use one available online:...
  32. Replies
    5
    Views
    940

    VS 2008 Re: SendKeys.Send mess with me

    What are you trying to do?
  33. Replies
    5
    Views
    940

    VS 2008 Re: SendKeys.Send mess with me

    Process.Start is stating the process up and then continuing on with your code. The reason you are getting multiple CMD windows is that the command window is not yet open when you try and send the...
  34. Replies
    4
    Views
    947

    VS 2010 Re: Simple browser login

    You could use an enum to keep track of your state:


    Enum CurrentState
    BeforeVBF
    OnVBF
    AfterVBF
    Done
    End Enum
  35. Replies
    2
    Views
    695

    VS 2008 Re: Character count from string

    You can use a regular expression to check how many times a string appears.

    Dim s As String
    s = "myfilename_employee--2010-11-23-45-00--empid200"
    If...
  36. Replies
    9
    Views
    11,784

    VS 2010 Re: Converting vb6 to vb2010

    Rewrite it in .Net. Most conversion tools will still use VB6 syntax and a lot of what you glean from the conversion will be poor practices if you were writing brand new .Net code. This will give...
  37. Thread: CRD files

    by Negative0
    Replies
    1
    Views
    686

    Re: CRD files

    If it is truly XML, then you can parse it using XML classes in the System.XML namespace.
  38. Replies
    4
    Views
    947

    VS 2010 Re: Simple browser login

    You can use the DocumentCompleted event to let you know when the page has finished loading. And the code below shows you how to populate values and click buttons in web pages. This example, puts a...
  39. Replies
    1
    Views
    640

    VS 2008 Re: All all registry to treeview?

    Loop through the registry objects using a combination of GetSubKeyNames and OpenSubKey and add each key as a tree node. In theory this should work fine, the only trouble you are going to have is...
  40. Replies
    2
    Views
    2,066

    Re: Hard disk monitor

    What are you trying to get? The FileSystemWatcher class gives you the ability to monitor folders for changes. It may be a good starting point for you.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width