Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

king gamo

@king gamo
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Webrequest and Querystring in VB.net
    K king gamo

    Thanks guys i get u but is there a different way i can use to achieve what i want to do please. Ok a remote server will be posting data to the url for me to read. I have setup the url like http://www.myownserver.com/noticeboard They will be pushing the data here for me to use. I dont know when the data will be available but i know the variables. 2 variables will be available for me, one for the sender and the other the text named "from","text". Is there a way out. If its impossible then i think i have to go crazy now cos i really need to do this. Is there any other way in vb that i can use or it is not possible in vb.net?

    It is not who i am underneath but what i do that defines me!

    Visual Basic question csharp help

  • Webrequest and Querystring in VB.net
    K king gamo

    You got my question right. Now my problem is how do i get the data from the url? the winforms app has to read from the url whenever data is pushed there by a sender.

    It is not who i am underneath but what i do that defines me!

    Visual Basic question csharp help

  • Webrequest and Querystring in VB.net
    K king gamo

    please so how do i go about retrieving the data from the url then from my winforms app?

    It is not who i am underneath but what i do that defines me!

    Visual Basic question csharp help

  • Webrequest and Querystring in VB.net
    K king gamo

    Christian, I am really lost in what i am doing. Please if u can help me out with retrieving from the url where i can access the query string, i will be able to continue from there. thanks

    It is not who i am underneath but what i do that defines me!

    Visual Basic question csharp help

  • Webrequest and Querystring in VB.net
    K king gamo

    i use the following to get it but i don think its right. < Public Sub GetNewMsg() Dim sOutput As String Dim sURL As String = "http://www.something.com/noticeboard" Try Dim objNewRequest As WebRequest = HttpWebRequest.Create(sURL) Dim objResponse As WebResponse = objNewRequest.GetResponse Dim objStream As New StreamReader(objResponse.GetResponseStream()) sOutput = objStream.ReadToEnd() Dim message_originator As String = context.request.querystring("from") Dim message As String = context.request.querystring("text") 'place code to read specific string token you need here 'for example code to insert into database etc. just see what you have in the 'string if fetch was successful and then you'll know how to readi specific string Catch eUFE As UriFormatException sOutput = "Error in URL Format: [" & sURL & "]" & NewLine() & eUFE.Message Catch eWEB As WebException sOutput = "Error With Web Request: " & NewLine() & eWEB.Message Catch e As Exception sOutput = e.ToString Finally MessageBox.Show(sOutput) End Try End Sub > Is it possible for you to write a small function that accepts data from a url into a winforms app the right way cos mine is just not working!

    It is not who i am underneath but what i do that defines me!

    modified on Friday, June 26, 2009 1:09 AM

    Visual Basic question csharp help

  • Webrequest and Querystring in VB.net
    K king gamo

    I am very new to web development and i am finding difficulty with webrequest and querystring in vb.net. I am working on an application which will pull data from a URL. The data will come with 2 variables. "from" and "text" that is the sender of the data and the text of the data. I have a desktop apllication which is supposed to read this data from the url and i am pretty lost here. how do i use webrequest and/or querystring to read the data from the url and pick the two variables. for instance i want to read them like this Dim message_originator As String = context.request.querystring("from") Dim message As String = context.request.querystring("text") I don really know what to do to read them as above into the variables. Any help please guys? :confused:

    It is not who i am underneath but what i do that defines me!

    modified on Friday, June 26, 2009 12:22 AM

    Visual Basic question csharp help

  • [Message Deleted]
    K king gamo

    [Message Deleted]

    Visual Basic

  • i need one example keypress event Program in VB.Net
    K king gamo

    ///6.0 If KeyAscii = 8 Then Exit Sub End If If KeyAscii = 46 Then If InStr(txtRate.Text, Chr(46)) = 0 Then Exit Sub Else KeyAscii = 0 End If End If If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End If ///.Net 2005 If Asc(e.KeyChar) = 8 Then Exit Sub End If If Asc(e.KeyChar) = 46 Then If InStr(txtRate.Text, Chr(46)) = 0 Then Exit Sub Else e.Handled = True End If End If If Not IsNumeric(e.KeyChar) Then e.Handled = True End If End Sub //// this is for trapping only numbersand 1 decimal point in a textbox on the keypress event. hope it helps Love makes the world go round

    Visual Basic csharp tutorial

  • Help me tune up this class, pls
    K king gamo

    i have this class below which i'm using to uniquely generate a set of numbers. What it does is if i want 10 numbers randomly selected out of 11 i will pass it as a parameter to it and it'll return me the unique numbers. i dont want repetitions of the same number and it does what i want exactly... the problem is that atimes it gets into an infinite loop especially when i want 4 out of 5 or 3 out of 4. the class Public Class UniqueNumbers Dim randCtr As New Random Public Function genNumbers(ByVal totalNeeded As Integer, ByVal AvailableRange As Integer) As Integer() Dim var1, var3 As Integer Dim generatedNumbers(totalNeeded - 1) As Integer Dim returnedNumbers(totalNeeded - 1) As Integer For var1 = 0 To (totalNeeded - 1) generatedNumbers(var1) = randCtr.Next(1, (AvailableRange + 1)) returnedNumbers(var1) = generatedNumbers(var1) naa: For var3 = 0 To var1 If returnedNumbers(var3) = generatedNumbers(var1) Then generatedNumbers(var1) = randCtr.Next(1, (AvailableRange + 1)) If var1 <> 0 Then 'varar(var1) = vararr(var1) GoTo naa End If End If Next returnedNumbers(var1) = generatedNumbers(var1) Next genNumbers = returnedNumbers Return genNumbers End Function End Class all that i mean is if i want 3 out of 4 it can return 123 or 321 or 231 anything other than repeating one number twice like 112 or 122 or 332. My main problem is i want it to be faster and atimes it gets into a hang or infinite loop. Help me out guys. Love makes the world go round

    Visual Basic help lounge

  • Retriving,Converting and Embedding Images
    K king gamo

    How do you retrive an embedded image in a sql database, convert it to 600dpi and embede it back into the database. How can this also be automated so that as soon as the application runs it'll automaticall check the fields whose images are less than 600dpi and convert them to 600dpi. Help me guys... Help ME PLEASE CODE PROJECT GURUS. I'm learning VB on my own so i need real help guys... Help Me Become good like you...

    Visual Basic database css hardware help learning

  • Embedding Images in SQL Database
    K king gamo

    Hi I need help on how to embed or save an image and not the path of the image in a SQL2000 at 600dpi and retrieve it at the same 600dpi to display.

    Visual Basic database help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups