Click here to Skip to main content
15,886,873 members
Home / Discussions / Mobile
   

Mobile

 
QuestionBlackBery java Developement Building error........ Pin
shaina223126-Mar-09 21:57
shaina223126-Mar-09 21:57 
Questionhow to retreive Pocket Outlook birthday Information? Pin
Aghosh Babu25-Mar-09 23:05
Aghosh Babu25-Mar-09 23:05 
QuestionSending SMS from PPC 2003 emulator through a built-in GSM modem Pin
aarti1425-Mar-09 19:26
aarti1425-Mar-09 19:26 
QuestionIOException when writing a string to a bluetooth comm port Pin
greggardner24-Mar-09 11:32
greggardner24-Mar-09 11:32 
AnswerRe: IOException when writing a string to a bluetooth comm port Pin
greggardner25-Mar-09 9:34
greggardner25-Mar-09 9:34 
QuestionHow to get caret position Pin
herman man23-Mar-09 23:05
herman man23-Mar-09 23:05 
AnswerRe: How to get caret position [modified] Pin
sivaddrahcir24-Mar-09 12:40
sivaddrahcir24-Mar-09 12:40 
QuestionHttpWebRequest & streamwriter NOT defined Pin
msnss23-Mar-09 9:55
msnss23-Mar-09 9:55 
Hello.

I need your help.

I am creating a simple vb.net (cf.net 2.0) twitter client.

IDE: VS.NET 2008. cf.net 2.0

I have 1 Form and 1 button onto it.

Codes behind event clicking button:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
     Dim lsParams As String = "status=" & Uri.EscapeDataString("message to post")

     Dim loRequest As HttpWebRequest = CType(HttpWebRequest.Create("http://twitter.com/statuses/update.xml"), HttpWebRequest)
     With loRequest
         .Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy()

         .Timeout = 10000
         .AllowAutoRedirect = True
         .AllowWriteStreamBuffering = True

         .Method = "POST"

         .ContentType = "application/x-www-form-urlencoded"
         .ContentLength = Len(lsParams)

         Dim loCred As New System.Net.NetworkCredential("USERNAME", "PASSWORD")
         .Credentials = loCred

         ' Write the request paramater
         Dim stOut As New StreamWriter(.GetRequestStream(), System.Text.Encoding.ASCII)
         stOut.Write(lsParams)
         stOut.Flush()
         stOut.Close()

         Dim loResp = .GetResponse
         With loResp

             .Close()
         End With

     End With
 End Sub


For the line [Dim loRequest As HttpWebRequest = ] the HttpWebRequest is said to be NOT DEFINED.

Streamwriter is NOT defined as well.

.Close - it says that targeted framework does not support late binding.

What should I do? Do I need to Add a Reference? If yes, what should I add? Can you please help me?

Thank you.
AnswerRe: HttpWebRequest & streamwriter NOT defined [modified] Pin
sivaddrahcir24-Mar-09 12:07
sivaddrahcir24-Mar-09 12:07 
GeneralRe: HttpWebRequest & streamwriter NOT defined Pin
msnss24-Mar-09 22:09
msnss24-Mar-09 22:09 
GeneralRe: HttpWebRequest & streamwriter NOT defined Pin
sivaddrahcir26-Mar-09 7:45
sivaddrahcir26-Mar-09 7:45 
GeneralRe: HttpWebRequest & streamwriter NOT defined Pin
msnss26-Mar-09 8:24
msnss26-Mar-09 8:24 
GeneralRe: HttpWebRequest & streamwriter NOT defined Pin
sivaddrahcir26-Mar-09 11:52
sivaddrahcir26-Mar-09 11:52 
Questionwindows mobile Pin
trioum23-Mar-09 1:43
trioum23-Mar-09 1:43 
AnswerRe: windows mobile Pin
Cedric Moonen23-Mar-09 5:35
Cedric Moonen23-Mar-09 5:35 
AnswerRe: windows mobile Pin
Joel Ivory Johnson23-Mar-09 12:23
professionalJoel Ivory Johnson23-Mar-09 12:23 
AnswerRe: windows mobile [modified] Pin
sivaddrahcir24-Mar-09 12:01
sivaddrahcir24-Mar-09 12:01 
AnswerRe: windows mobile Pin
Aghosh Babu25-Mar-09 23:30
Aghosh Babu25-Mar-09 23:30 
AnswerRe: windows mobile Pin
idieh26-Mar-09 6:58
idieh26-Mar-09 6:58 
QuestionGet the name of Serial Port to which a Device is Connected Pin
Subrahmanya Narayana23-Mar-09 0:40
Subrahmanya Narayana23-Mar-09 0:40 
QuestionDetecting the connection of a device into PC Pin
ntsc2822-Mar-09 18:56
ntsc2822-Mar-09 18:56 
AnswerRe: Detecting the connection of a device into PC Pin
Joel Ivory Johnson23-Mar-09 12:25
professionalJoel Ivory Johnson23-Mar-09 12:25 
GeneralRe: Detecting the connection of a device into PC Pin
ntsc2831-Mar-09 12:22
ntsc2831-Mar-09 12:22 
GeneralRe: Detecting the connection of a device into PC Pin
Joel Ivory Johnson31-Mar-09 12:28
professionalJoel Ivory Johnson31-Mar-09 12:28 
Questionhow to change ipaddress at activesync connected Pin
osemia22-Mar-09 16:38
osemia22-Mar-09 16:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.