Hi all
(Using vb 2008 express.)
I am trying to create a server to send clients text on request.
I am using a tcp listener to accept clients then send each client to a thread in a threadpool which deals with each client's request then closes the client connection.
It seems to work fine but I would like to know how it works.
Using the lis...
I want to display a link to help in a message box. By default the text is displayed as a non-selectable string.
...
Hi
I have a code to send XML via POST. But this code is in PHP and I need it in VB.NET.
Any help to convert this code?
$XMLFile= (here i have created the xml file. XML is encoded ISO-8859)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"URL WHERE I SEND XML");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER...
I am attempting to keep user inputs into our application as clean as possible. One way I am attempting to do this is not allowing incorrect data type in fields (not allowing alpha characters when expecting numeric values)
I found and implemented the following code:
Private Sub txtSocial_KeyPress(ByVal sender As Object, ByVal e As Syste...
I am trying to sort a LINQ to SQL query based on two fields. The first field is occasionally null which automatically sorts to the top of an ascending query. Is there any way to make the null entries sort to the bottom?
Here is an example:
From x in SampleDataContext.Event _
Order By x.Date, x.Sequence_Number _
Select x.Date, x.Seq...
I'm trying to simply prove here that this simple function isn't good enough to prevent every sql injection in the world:
Function CleanForSQL(ByVal input As String) As String
Return input.Replace("'", "''")
End Function
Here is a typical insert statement from one of our apps:
Database.DBUpdate("UPDATE tblFilledForms SET Text1 = '...
I need to allow the user to rotate a control (the control inherits from a TextBox) in 90 degree increments so the text can be read from either side, or even upside down.
I'm guessing I could override the control's paint event and just paint it in the orientation that I want, but I'm just wondering if there's a quicker/built-in way?
Thi...
I have a WinForms app and am trying to add the ability to start up multiple operations based on data entered in a datagridview. The operations must be run synchronously to monitor that they complete succesfully before inserting a row into the DB to indicate that the operation was succesfull. I also have a status event handler on the ope...
Having successfully tried out nHibernate, I would now like to try using Fluent for mapping. My main project is in vb.net but I would really like to use c# for the mappings since the lambda expression capability makes it much cleaner. Can you have a separate project/assembly for your mapping files without creating a circular dependency ...
I am using the DateTimePicker control in a Vb.Net Windows project.
I would like the date to reflect the Regional Settings on the user's computer, but also to show the month name, rather than the month number.
For example, if my computer is set to English(US), I would like to see Nov 26 2009, and if my computer is set to English (NZ), I...
I have been tasked to convert out VB6 program to VB.NET. In my research online everyone seems to say I need to go through my code and get rid of any Variants I have. I have had pretty good luck so far, but I am having an issue in replacing this one.
Private Sub lvThumbView_OLEDragDrop(Data As MSComctlLib.DataObject)
Dim File As Vari...
I need to Base64 encode a string, but the encoded string cannot contain "+". Wikipedia mentions a modified Base64 for URL, but I can't find a .NET class which uses this.
For my application, I can't even URL encode "+" into "%2B". This is because I pass the encoded string to a service which I have no control over, and that service mang...
Dear sir
I have create a Grid Control at runtime at multiple child form
then how can i find the current gridControl of current active child form..
...
Hello. I have a function
Public MyObj as Object
Public Function Test(t as Type) as Boolean
Return TypeOf MyObj is t ' does not work
End Function
Thanks.
* EDIT
====================================================================
For clarity I will use a complete example, a little modified that initially was thought.
I use an int...
In Visual Studio, are there any real differences between a "Release" build of an application, and a published version of the same application?
I have an ugly memory leak that's creeping up only in the published version installed via ClickOnce. The same leak does not occur in the "Release" build if I run the executable from the project/b...
I'm looking for a way to pass some sort of credentials or Authorization token from a VB.Net Client to an ASP.Net web application that allows the Client to auto-login to our Forms-Authenticated website. If a user is logged into a local application, I want them to be able to view some web pages without having to login to the website as we...
I want to scrape string data from some binary text files that contain embedded SQL statements. I don't need any fancy cleanup--just some way to extract the readable text. I'm using vb.net, but a call to an external utility would work too.
...
I have a problem when updating the source of an ASP ListBox in an AJAX update panel. When I set the source of the ListBox to a large dataset, I would assume it would take a small amount of time to render due to the number of items. However, when the DataSource is switched at run-time to a smaller set of items, it takes just as long to ...
I'm working with Crystal Reports in VB.NET in Visual Studio 2005.
I have a List(Of Stuff) that I've sorted according to one of the object's members.
I've verified in the debugger that the list is sorted correctly.
When I define my list as the data source, as in
rptDetails.Subreports.Item("rptSubReport").SetDataSource(theListOfStuff)
...
I'm pushing the bounds of what one should ask of others with this one, but I'm totally stuck, so here goes...
This is my first web service. Not only that, it's my companies first web service - nobody I work with has ever written or consumed anything like this one. I know these things are not complicated, but for a first kick at the can,...