Search results

  1. Paszt

    Show users ip on textbox1

    The code below will find the local IP address and not the public IP if you are behind a router. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load TextBox1.Text = GetIpAddressLinq.ToString() 'TextBox1.Text = GetIpAddress.ToString() End Sub 'Use linq Public...
  2. Paszt

    batch copy or move files at scheduled time intervals

    What parts are you having trouble with? Can you move a single file? Can you instantiate a Timer and handle its elapsed event?
  3. Paszt

    hotkey with highlighted text

    I suggest staying away from the registry, but there's no reason to use stream reader/writers as the .NET framework has a very nice Settings feature built-in. Here's a short article about the Settings: Easily Save and Retrieve Application and User Settings in VB.NET or C# Apps |
  4. Paszt

    Update a database from the internet ?

    One possible solution is to use a WebService. Here's a CodeProject article regarding a WCF Service: Create, Host (Self Hosting, IIS hosting) and Consume WCF Service - CodeProject
  5. Paszt

    Question Error blocking me from entry into my Dataset designer. Can't find it.

    I find sometimes deleting the auto-generated code files and forcing Visual Studio to regenerate the code sometimes fixes the problem.
  6. Paszt

    message box to show up?

    Create a form. Toss a DateTimePicker control on it and name that LastMenstrualDatePicker. Toss a Label control on the form and name it DueDateLabel. Double click the DateTimePicker, the IDE will create an event handler for the ValueChanged event. Change the code to this: Private Sub...
  7. Paszt

    What is Wrong With This VERY Simple Code Please?

    First, we don't know the value of TextBox1.Text; but that doesn't really matter here. You are comparing a string (the Text property of a TextBox is of type String) to an integer (the value 1 or 2, without quotes surrounding it), they will never be equal. I always suggest turning Option Strict...
  8. Paszt

    Question Is it possible to show the contents of the OpenFileDialog in an existing form?

    The Windows® API Code Pack for Microsoft® .NET Framework contains an Explorer Browser Control. I'm not sure if there's something newer though.
  9. Paszt

    Touchscreen System button help.

    Please post your ini extract, that should give some clue as to what you are doing.
  10. Paszt

    Touchscreen System button help.

    I believe the reason JohnH suggested XML is not because it would result in a smaller file but because it will be much simpler to work with (once you learn how, of course). There are features built in to the .NET Framework that make dealing with XML very simple. There are no built in features...
  11. Paszt

    Question Curious behavior when drawing. is a great site for learning GDI+. The problem you are having is explained and solved in this article: The accursed PictureBox From the documentation of the Control.CreateGraphics Method (System.Windows.Forms) :
  12. Paszt

    DataAdapter/DataSet/CommandBuilder and how to Add/Delete/Insert Table Records?

    Check out his signature. Here's one of the pertinent links: Data Walkthroughs
  13. Paszt

    WebBrowser1.Navigate using IE9

    Registry Class (Microsoft.Win32)
  14. Paszt

    Question How do I detect a broken link / missing image in a PictureBox?

    This may be a good place to start: PictureBox.LoadCompleted Event (System.Windows.Forms) Did you mean PictureBox1.ImageLocation?
  15. Paszt

    Question Draw a connection !!!

    I downloaded the project and here is the only really relevant code: #Region "IMPORTS" Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Drawing Imports System.Text Imports System.Windows.Forms Imports System.Drawing.Drawing2D Imports...
  16. Paszt

    Excel vba and VB.Net

    Henry Ford said "Nothing is particularly hard if you divide it into small jobs". I suggest you do that here. It appears your first task would be to read a file from disk. Here are a couple of links that will help: FileSystem Class (Microsoft.VisualBasic.FileIO) System.IO Namespace () Let...
  17. Paszt

    converting powershell

    Have a look at these: DirectoryInfo Class (System.IO) My.Computer.FileSystem Object Alternately, since deleting empty folders most likely has been done by someone before, you could search Google for the term " remove empty folders".
  18. Paszt

    Question How to play a dvd with a Windows Media Player plugin?

    So you've surely found this link: Play dvd on form What didn't work for you? Did you receive any errors? If so, what were those errors?
  19. Paszt

    creating word documents through VB

    For reading and writing the template as a string have a look at the My.Computer.FileSystem object. My.Computer.FileSystem Object
  20. Paszt

    creating word documents through VB

    There are many ways to accomplish this; what are you doing so far? (perhaps show some code or explain what you have done thus far.) Personally, I have used the simple method of creating a template (like the Word source file of your attached PDF) and putting placeholders where the information...
Top Bottom