|
242
|
Programación / .NET (C#, VB.NET, ASP) / DevExpress ?
|
en: 2 Marzo 2013, 17:21 pm
|
Amigos quisiera saber si alguien tiene documentacion o videos en español donde pueda adquirir una base sobre este excelente componente..
Por ejemplo como emplear los skins..
Se que hay videos ya los estoy bajando y viendo pero ese del uso del skin se me hace complicado...
Gracias.
|
|
|
244
|
Programación / .NET (C#, VB.NET, ASP) / Enviar un Form usando Httprequest !!
|
en: 12 Febrero 2013, 00:55 am
|
Amigos tengo un code con el que envio un FORM usando HTTPrequest con el metodo POST sin problemas, lo que sucede es que ese FORM tiene para mandar 3 fotos y ahi es donde se me traba el paraguas el CODE que tengo hasta ahora es este.. Imports System Imports System.IO Imports System.Net Imports System.Text Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim precio As String, categoria As String, titulo As String, cuerpo As String, _ filesize As String, email As String, phone As String 'Dim boundary As String = "---------------------------" + DateTime.Now.Ticks.ToString("x") ' Create the data we want to send precio = "25" categoria = "105" titulo = "titulo del form" cuerpo = "aki va el cuerpo del mensaje" email = "user@gnome.com" phone = "1234567" filesize = "307200" ' Create a request using a URL that can receive a post. Dim request As HttpWebRequest = HttpWebRequest.Create("URL") ' Set the Method property of the request to POST. request.Method = "POST" request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" Dim postdata As String = "ad_price=" & precio & "&category=" & categoria & "&ad_headline=" & _ titulo & "&ad_text=" & cuerpo & "&email=" & email & "&phone=" & phone & "&MAX_FILE_SIZE=" & filesize Dim byteArray As Byte() = Encoding.UTF8.GetBytes(postdata) ' Set the ContentType property of the WebRequest. request.ContentType = "application/x-www-form-urlencoded" ' Set the ContentLength property of the WebRequest. request.ContentLength = byteArray.Length ' Get the request stream. Dim dataStream As Stream = request.GetRequestStream() ' Write the data to the request stream. dataStream.Write(byteArray, 0, byteArray.Length) ' Close the Stream object. dataStream.Close() ' Get the response. Dim response As WebResponse = request.GetResponse() ' Display the status. Console.WriteLine(CType(response, HttpWebResponse).StatusDescription) ' Get the stream containing content returned by the server. dataStream = response.GetResponseStream() ' Open the stream using a StreamReader for easy access. Dim reader As New StreamReader(dataStream) ' Read the content. Dim responseFromServer As String = reader.ReadToEnd() ' Display the content. txtoutput.Text = responseFromServer ' Clean up the streams. reader.Close() dataStream.Close() response.Close() End Sub End Class
Muchas gracias por cualquier ayuda
|
|
|
245
|
Programación / .NET (C#, VB.NET, ASP) / Necesito anclar mi APP ?
|
en: 3 Febrero 2013, 02:19 am
|
Hola pues eso ando buscando algun dato en el Pc que nunca varie aunque formateen el Pc y reinstalen tambien que no se pueda simular en otra Pc, para que mi app lo verifique siempre antes de iniciar y nada mas corra en al Pc que yo quiera...
Tambien si es posible diganme algun metodo seguro para cifrar mi App, conozco el programa Armadillo pero no se si es necesario llegar hasta alla...
Salu2
|
|
|
246
|
Programación / .NET (C#, VB.NET, ASP) / SerialPort y Modem ?
|
en: 27 Enero 2013, 23:43 pm
|
Lo que espero es un Ok del Modem mas recibo un 65 alguna idea, quizas sea por el tipo de lectura que estoy haciendo....Salu2 Disculpen por repetir el Topic si pudieran borrar el otro estaria agradecido...gracias Imports System.IO.Ports Public Class Form1 Private mySerialPort As New SerialPort Private comBuffer As Byte() Private Delegate Sub UpdateFormDelegate() Private UpdateFormDelegate1 As UpdateFormDelegate Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try AddHandler mySerialPort.DataReceived, AddressOf mySerialPort_DataReceived CommPortSetup() Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub Private Sub mySerialPort_DataReceived(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) 'Handles serial port data received events UpdateFormDelegate1 = New UpdateFormDelegate(AddressOf UpdateDisplay) Dim n As Integer = mySerialPort.BytesToRead 'find number of bytes in buf comBuffer = New Byte(n - 1) {} 're dimension storage buffer mySerialPort.Read(comBuffer, 0, n) 'read data from the buffer Me.Invoke(UpdateFormDelegate1) 'call the delegate End Sub Private Sub UpdateDisplay() Label2.Text = CStr(comBuffer(0)) End Sub Private Sub CommPortSetup() With mySerialPort .PortName = "COM3" .BaudRate = 9600 .DataBits = 8 .Parity = Parity.None .StopBits = StopBits.One .Handshake = Handshake.None End With Try mySerialPort.Open() Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click mySerialPort.WriteLine("AT+VCID") End Sub End Class
|
|
|
247
|
Programación / .NET (C#, VB.NET, ASP) / Trabajando con Puerto COM - SerialPort !! Dudita !
|
en: 24 Enero 2013, 01:18 am
|
holas estoy tratando de leer la respuesta del Modem al comando que le paso y me devuelve un numero, no entiendo porque quizas sea en el tipo de lectura que se hace que es con un buffer.... Alguna idea...Lo que espero es un OK Imports System.IO.Ports Public Class Form1 Private mySerialPort As New SerialPort Private comBuffer As Byte() Private Delegate Sub UpdateFormDelegate() Private UpdateFormDelegate1 As UpdateFormDelegate Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try AddHandler mySerialPort.DataReceived, AddressOf mySerialPort_DataReceived CommPortSetup() Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub Private Sub mySerialPort_DataReceived(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) 'Handles serial port data received events UpdateFormDelegate1 = New UpdateFormDelegate(AddressOf UpdateDisplay) Dim n As Integer = mySerialPort.BytesToRead 'find number of bytes in buf comBuffer = New Byte(n - 1) {} 're dimension storage buffer mySerialPort.Read(comBuffer, 0, n) 'read data from the buffer Me.Invoke(UpdateFormDelegate1) 'call the delegate End Sub Private Sub UpdateDisplay() Label2.Text = CStr(comBuffer(0)) End Sub Private Sub CommPortSetup() With mySerialPort .PortName = "COM3" .BaudRate = 9600 .DataBits = 8 .Parity = Parity.None .StopBits = StopBits.One .Handshake = Handshake.None End With Try mySerialPort.Open() Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click mySerialPort.WriteLine("AT+VCID") End Sub End Class
|
|
|
248
|
Programación / .NET (C#, VB.NET, ASP) / Necesito consultar la fecha en Internet ??
|
en: 14 Enero 2013, 03:53 am
|
Holas chikos quizas alguno tenga algun codigo sobre consultar con algun server la fecha, es que el que tengo no me gusta...
Lo que hago es consultar una web y buscar en ella la fecha...
Se que hay un protocolo que atiende eso el NTP pero no encuentro un proyecto que me funcione sin problemas...
Salu2 y gracias cualquier idea...
|
|
|
|
|
|
|