Search results for query: *

  • Users: garcon
  • Content: Threads
  • Order by date
  1. G

    Getting VB.NET to email you

    Getting VB.NET to text message you Folks, Can you get VB.NET to test message you - to your phone like? There is a part in my code that if it occurs I would like the s/w to email me with a notification. I have the application on my box which has the IIS server on it and Microsoft Outlook...
  2. G

    Yesterday's datestamp

    Folks, I'm generating today's timestamp (in format: YYYYMMDD) using the following code: Dim dateString As String = Date.Now.ToString("yyyyMMdd") Thing is though - I want to generate yesterday's datestring in the above format and the day before and the daye before etc... Trick one...
  3. G

    XmlTextReader and file detection...

    Folks, I'm bulletproofing. I'm using "XmlTextReader" to open and parse an XML file. This is working fine and dandy as show below: Dim fxRatesFile As System.Xml.XmlTextReader 'Create the XML Reader fxRatesFile = New System.Xml.XmlTextReader("C:\a.xml") I'm now bullet...
  4. G

    Detecting clicking on the "X" closedown

    Folks, How do you detect the clicking of the little black "X" in the top right-hand corner of a pop-up window of a VB.NET form? Thanking you, G.
  5. G

    Opening a file and removing previous 2 lines

    Folks, I want to open a file and remove the previous 2 lines and then write a new line. I know how to do the last bit i.e. adding the last line: Dim fileName AsString fileName = "C:\afile.txt" Microsoft.VisualBasic.FileSystem.FileOpen(1, fileName, OpenMode.Append) WriteLine(1, String1...
  6. G

    "While"-ing through an XML file

    Folks, I'm using a while statement and EOF attribute to scroll through and XML file that I have opened. Problem is though I don't think it scrolling through the XML file? For the life of me I don't know why - can anyone help please? Thanks G. Dim fxRatesFile As System.Xml.XmlTextReader...
  7. G

    Simulating a user clicking on a link...

    Folks, I want to write a little application that will simulate a user clicking on a link. The link opens up a pop-up box and the user selects an option from a drop-down and then click on a button. I'm trying to simulate all this using VB.NET code in another program if you take my...
  8. G

    GUID conversion

    Folks, I have generated a GUID. I want to convert it form it's hex output to just a number. Can anyone help please? Here is the code so far: ' Generate a GUID for the logging file Dim NewGuid As Guid = Guid.NewGuid Dim myGuid As String = NewGuid.ToString("N") 'N means no dashes...
  9. G

    Access an FTP Site - Receipe problem

    Folks, This is a recipe for accessing an FTP site. I having problems with the "Send" method and th "IPAddress" method - my compiler says: "Name Send is not declared" and "Name IPAddress is not declared" Can anyone make any intelligent suggestions please? **** CODE AS FOLLOWS ****...
  10. G

    Extracting info from an XML file

    Folks, I need to extract some information from an XML file - specifically a number between the tags: <fx-rate>1.23456789</fx-rate> Does anyone know how to do this exactly? Cheers, G.
  11. G

    Getting a file from an FTP server

    Folks, I'm kind of new to VB.NET and nned to get a file from an FTP server. Problem is though - I don;t know how to do this... I have the following details: IP address of server Command TCP port Data TCP port PASV mode should be used - what ever that means! Applicable User name...
  12. G

    Unique transaction ID

    Folks, I need to generate a unique 16 digit transaction ID for each user that visits a particular Web Form page of mine. Would you have any suggestions as to how to do this exactly? Any hints/suggestions/code-samples to start me off would be most appreciated. I'm mainly looking for...
  13. G

    Localised DateStamp

    Hi, I'm using the following VB.NET code in the code-behind file to generate a date stamp in the general format like: 29 December 2004 Dim dateString As String = Date.Now.ToLongDateString Thing is though I want to localised the month to German (and other languages) for example...
  14. G

    How do you make the same page reload?

    Folks, How do you make the same page reload itself? G.
  15. G

    Detecting a change in a drop-down

    Hi everyone, I'm trying to detect when a user selects an option in a drop-down menu list. I'm using the following code in the code-behind file: Sub dllFxCurrency_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlFxCurrency.Init currencyChoice =...
  16. G

    Rounding up & Down to 2 decimal places

    I have a double with about 8 number after the decimal place. How do you display just 2 after the decimal place? Thanks, G.
  17. G

    Dynamically generating content in a dropdown

    Folks, I'm attempting to dynamcially generate content in a dropdown. I'm having problems thopugh trying to figure it all out. Can you help me please? --------------.aspx file------------------ <asp:DropDownList id="DropDownList1" runat="server"> <asp:ListItem Value="NS">Select...
  18. G

    Dynamically generating contant in a drop-down

    Folks, I have an interesting wee problem. it's with a list box that with variable amounts of elements. I have to buid a drop-down list box with 8 to 9 elements in it. I say 8 to 9 deliberately as depending on the input to the system it can change. For example say a list box contain 4...
  19. G

    Loading the correct localised file

    Folks, In my code-behind file "a.aspx.vb" I can detect the language a user is using using the following: If baseCulture.Equals("EN") Then ' Load English file ElseIf baseCulture.Equals("FR") Then ' Load French file Problem is though how do you load up the applicable localised file...
  20. G

    Webform to webform transfer when loading

    Folks, Is it possible for one webform to automatically request some variables from another webform with it loads up. For example let say that when "b.aspx.vb" loads up it get some variables from "a.aspx.vb" Is this possible and how do you do it? thanks, g
Back
Top