Search:

Type: Posts; User: bmahler

Page 1 of 13 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    9
    Views
    8,510

    Re: How to make a key generator

    I posted this in the codebank a while ago. It should do what you are looking for. Also has the ability to decode the keys generated to your passkey

    http://www.vbforums.com/showthread.php?t=466358
  2. Replies
    3
    Views
    1,344

    VS 2010 Re: Context Menu Strip

    np, be sure to mark this resolved. :)
  3. Replies
    3
    Views
    1,344

    VS 2010 Re: Context Menu Strip

    You are not breaking out of the for loop when it is set to true, so it is setting it based on the last item in the ListView. You also don't need a loop as you can just use the ListView SelectedItems...
  4. Replies
    6
    Views
    54,395

    Re: Silently Print PDF with ShellExecute

    This is not going to work on a website. This will print using Acrobat on the system where the code is executed. It is designed for a Windows application not a website.
  5. Re: How do I create a desktop shortcut to my application on install

    I'm just curious, how have you made your own setup file? Did you write an app in .net to install your other app? Because if this is the case and the user does not have the .net framework installed...
  6. VS 2008 Re: Access method of ServiceHost type

    Actually nevermind, I figured it out.

    I had to set the ServiceBehavior InstanceContextMode to Single in the service and then Pass and object reference to the ServiceHost Constructor.
  7. VS 2008 [RESOLVED] Access method of ServiceHost type

    So I have a WCF Service that has service methods. One of the methods needs to be called from the application that is hosting the service. I am using a ServiceHost to host it.
    Dim url As Uri = New...
  8. VS 2008 Re: RichTextBox clears formatting when changing font

    Thanks, sorry for my delayed response, I finally figured that out. It is a pain, but I got it working.
  9. VS 2008 [RESOLVED] RichTextBox clears formatting when changing font

    Anyone else seen this behavior. I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone...
  10. VS 2010 Re: Specify Target framework for Windows service

    Ya you guys were right. I got it working tonight, wasn't the framework that was the issue. I was just thrown off by the cryptic clr error. I found the null reference. I had a...
  11. VS 2010 Re: Specify Target framework for Windows service

    Yes 3.5 is installed on the server. I can run the same code in an exe but when I add it to my service and install it, it crashes out with the .net 2.0 clr error that I posted above. I am in the...
  12. VS 2010 [RESOLVED] Specify Target framework for Windows service

    Ok, so I have built a Dll and a Windows Service in vs2010. Both are targeting the .net 3.5 framework, but when I install it on the server it installs fine, but for some reason it targets the 2.0...
  13. Replies
    31
    Views
    2,515

    VS 2008 Re: SendKeys.Send() - Method

    http://pinvoke.net/default.aspx/user32.SendMessage

    There is a TON of information on the web about using SendMessage. A simple Google search will new you plenty of results.
  14. Re: Unable to cast object of type 'System.Windows.Forms.HtmlElement' to type 'mshtml.

    Don't use the mshtml document. Use a system.windows.forms.htmldocument. You can still get all of those properties you are looking for
    Dim doc As HtmlDocument = Me.WebBrowser1.Document
    For Each...
  15. Replies
    4
    Views
    579

    VS 2008 Re: Return an Array

    You can use a collection for this. Perhaps a hashtable
    Dim ht As New Hashtable
    ht.Add("Ford", True)
    ht.Add("Toyota", False)
    ht.Add("Volvo", 100.0)
    ht.Add("Peugeot", "This is a string")...
  16. VS 2008 Re: How to include inside .exe some data storing

    There is no foolproof way to stop hackers. Anyone can crack just about anything, so what we do is try to make it harder for them. Why not have your application connect to a web service and return...
  17. Re: Determine an external EXE/DLL target .NET version

    You can get it with Reflection
    Imports System.Reflection

    Namespace Reflection
    Public Class Peeker
    Public Function GetTargetFramework(ByVal Path As String) As String
    Dim...
  18. Replies
    8
    Views
    862

    VS 2008 Re: About Windows Processes

    Processs.Start("Processname")?
  19. Replies
    2
    Views
    606

    VS 2008 Re: Add .txt items to combobox1

    Well first of all how are they organized int he txt file? is it a different file on each line? if so it's very simple
    Dim Files As String = WebClient.DownloadString("URL/file.txt")...
  20. Replies
    2
    Views
    952

    Re: Morse Code Program - need help please

    You could use the keydown and keyup events coupled with a stopwatch and see how long they have been pressed. For example on KeyDown start the stopwatch, on keyup stop it, check amount of time and...
  21. Replies
    15
    Views
    886

    VS 2008 Re: EXE updating itself

    I ran into this until I just started using an installer for all updates. It is easy for the application to download an update installer, then start it and exit allowing the installer to overwrite...
  22. Replies
    4
    Views
    2,307

    Re: Modify a richtextbox from different thread

    Is this inside of another class? If so, you can use an ISynchronizeInvoke object to invoke the ui thread and use an event to update the text. Here is an example.

    Imports System.ComponentModel...
  23. Re: Download file: Need percentage & app freeze (BackgroundWorker & ReportProgress)

    On a side note, the WebClient class has a DownloadFileAsync method that will run the download without locking the UI thread. There is also a DownloadProgressChanged Event as well as other events.
    ...
  24. Replies
    2
    Views
    541

    VS 2008 Re: DateTimePicker

    Is the DataGrid databound? If so that field value may be DBNull. I would try something like this

    For i As Int16 = Me.LvwMain.Rows.Count - 1 To 0 Step -1
    If...
  25. Replies
    1
    Views
    851

    Re: Moving through rows in datagridview

    You need to make sure that x is not equal to the number of rows in the grid
    for example

    Dim x As Integer = dg.CurrentRow.Index
    If x < dg.Rows.Count - 1 Then
    dg.CurrentCell = dg.Rows(x +...
  26. VS 2010 Re: How to make SQL connections work on other user

    Backwoods is absolutely correct. If you want your users to be able to connect and access data in the same environment, you will need a dedicated SQL server PC for them to connect to at any time. ...
  27. Replies
    11
    Views
    1,306

    VS 2008 Re: get window x,y ?? how

    What you are doing there is setting the textbox text to your forms left and right
    You should be using the Location variable that is retrieved in the button click.

    Here is a little example...
  28. VS 2010 Re: How to make SQL connections work on other user

    If you are using a database on your computer, it will have to be on and accessible for anyone to access it. Do you need to have one centralized database or can each user have their own database?
  29. Replies
    7
    Views
    1,029

    Re: Get the value of first column

    I assume you are trying to get the value of nome, is this correct?

    If so you can replace the 0 with the name of the field like this

    Private Sub DataGridView1_CellMouseClick(ByVal sender As...
  30. Replies
    11
    Views
    1,306

    VS 2008 Re: get window x,y ?? how

    IT should update it every time it checks. That code is very simple and assumes that you only have one instance of Notepad open. If you have multiple instances you would have to move the first one...
  31. VS 2010 Re: How to make SQL connections work on other user

    If you are trying to connect to your PC from another one you have to have a couple things set up. First of all you need to allow SQL server connections through your firewall and it looks like you...
  32. Replies
    7
    Views
    1,029

    Re: Get the value of first column

    Can you post your code? That method I posted is working for me. Are you sure that you have the Value at the end?
  33. Replies
    4
    Views
    3,579

    Re: check if a folder exist

    That looks like vb6 code. I just ran some tests using IO.Directory.Exists and it finds directories with - or _

    Simple function that I used
    Private Function CheckPath(ByVal Path As String) As...
  34. Replies
    7
    Views
    1,029

    Re: Get the value of first column

    You can use the CellMouseClick event and get the rowindex

    something like this
    Private Sub DataGridView1_CellMouseClick(ByVal sender As System.Object, ByVal e As...
  35. Replies
    4
    Views
    3,579

    Re: check if a folder exist

    How are you Checking if it exists? IO.Directory.Exists?
  36. VS 2008 Re: Select and deselect all checkboxes in a datagridview?

    You can just use a for loop to loop through all the rows and set that value to True.
    Something like this
    For Each drv As DataRowView In Me.DataGridView1.Rows
    drv.Item("Cut") = True
    Next
  37. Replies
    11
    Views
    1,306

    VS 2008 Re: get window x,y ?? how

    Just a note on your method. You don't need that FindWindowByClass API because .net lets you retrieve the handle of a window very easily through the Process class.
  38. VS 2010 Re: How to make SQL connections work on other user

    Could be a firewall issue on your pc. Do you have the SQL Server port allowed through the database pc?
  39. Replies
    11
    Views
    1,306

    VS 2008 Re: get window x,y ?? how

    You can use Windows API to get the position of an external window. A great resource for looking up these api's is http://pinvoke.net

    That being said, here is an example of how to get and external...
  40. Re: Is my App compatible with 64 BIT editions of XP and Vista?

    If you set your app to compile as x86 it will work on both 32 and 64 bit versions of windows. I have found that if you compile in a 32 bit os as Any Cpu, it will not work on 64 bit versions of...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width