Topics
-
-
- *Experts*
- 1 reply
- 2.3k views
Hi. I have buold e chat with vb6 and winsock. That's was easy. But I have a problem. I must program a chat in vb.net, and i have read that winsock doesn't work in vb.net. I must use Sockets. But I have no idea from sockets. Have you some tutorials oder examples for e simple chat? Thx
Last reply by Bucky, -
-
-
- *Experts*
- 3 replies
- 1.5k views
Dear all, How do I do that? To prevent user from entering "abcd", the user may only enter "1234"..... Say if the user enter something that's not numeric, then the textbox won't response.... Thanks PlayKid
Last reply by Bucky, -
-
-
- Administrators
- 6 replies
- 1.8k views
Hi, I've noticed that I call object.Dispose and if I mouse over it, it tells me what it is. If I set it = Nothing, it now shows nothing. Which is the better for memory/performance? I ask because I have a huge query from 3 tables, 2 of which have over 1.8 million records. The query reduces to 183,000 records. I open the sqldatareader with the query and it opens within less than 10 seconds. It is now running through the logic in the read loop. Two issues: 1) Occasionally, I get a timeout after the loop has read 75%-80% of the records. I've increased the command timeout to 60 and that problem went away. I set the command timeout back to 30 and removed some unneed…
Last reply by rustyd, -
-
- 1 reply
- 707 views
Is there a way to disable tabs in a TabControl and make it appear dimmed just like in VB6? Please help. Thanks, Carl
Last reply by techmanbd, -
- 2 replies
- 1.4k views
Hi, i am trying to parameterize my query, but for some reason it seems things go smoothly at runtime (i get no exceptions), but then there is no update in my Access database. i must be missing something - any ideas? Here is my code: Me.OleDbDataAdapter2 = New OleDb.OleDbDataAdapter("select * from Nuclear_Extension", Me.OleDbConnection1) updateCommand2 = New OleDb.OleDbCommand("INSERT INTO Nuclear_Extension (SS_Event_Nuclear_ID, NYHA, MDReferring) VALUES (?, ?, ?)", Me.OleDbConnection1) 'add parameters updateCommand2.Parameters.Add(New OleDb.OleDbParameter("SS_Event_Nuclear_ID", OleDb.OleDbType.Integer)) updateCommand2.Parameters.Add(New OleDb.OleDbParameter("…
Last reply by jalo, -
- 0 replies
- 1.1k views
I have a file Templates.config that contains templates for my controls: <Template> <add Id="myTemplateDataGrid" Type="DataGridPreset" HeaderStyle-BackColor="#ffffff" BorderWidth="0" BackColor="#EEFBF0" GridLines="None" CellPadding="3" CellSpacing="0" Font-Name="Verdana" Font-Size="14pt" AlternatingItemStyle-BackColor="#DEF8E2" AutoGenerateColumns="false" /> </Template> I first put all these attributes in a list. This is Easy. After that, I want to merge these attributes to my current server control. Its goes like this: PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(myDataGrid); prope…
Last reply by utilitaire, -
-
- Administrators
- 2 replies
- 1.5k views
Hello, Is it possible to add a node to an XML file without having to get the entire contents of the xml file in to a string or XMLdocument in your code and then write everything back to the XML file? i ask this question because(read carefully :-p) when there are more then 1 users at the same time. then one user would get the contents of the XML file and put it in to his XMLdocument object in code.... and then the second user would to the same.... BUT the first user will edit the XML document and write back to the XML file. NOW the second user will do the same thing BUT the added node of the first user will no longer exist because the second user got the contents…
Last reply by inter, -
-
- 4 replies
- 1.4k views
Hello, I need to communicate with a webpage to authenticate a user via "Basic" authentication. If I do this via telnet servername.com 80 here is how the converstation would go.. me: GET /FooService/basiconly/Service1.asmx HTTP/1.1 Accept: */* Host: localhost:8100 Connection: Keep-Alive The server responds with a challenge: HTTP/1.1 401 Unauthorized WWW-Authenticate: Digest realm="Login_page", nonce="Ny8yLzIwMDIgMzoyNjoyNCBQTQ", opaque="0000000000000000", stale=false, algorithm=MD5, qop="auth" Then I reply GET /FooService/basiconly/Service1.asmx HTTP/1.1 Accept: */* Host: localhost:8100 Authorization: Digest username="test", realm="RassocDigestSamp…
Last reply by trend, -
- 4 replies
- 1.6k views
Dear all, I am trying to read something from a text file, and each line representing different thing, how do I do that? Thanks PlayKid
Last reply by FYRe, -
- 4 replies
- 1.2k views
I am trying to copy the contents on an entire directory to another directory. Its doesnt like file.copy("c:\blah\*.*", "c:\blah2\") I could do it by getting a list of every file on in the directory, then copying them one by one in a loop. Does anybody know a better way they could please tell me? Thanks.
Last reply by bri189a, -
- 1 reply
- 1.1k views
Hello, I am developing this website to have 2 ways to login. The first way is a normal Forms based login. And the 2nd way is Basic Authentication... I have a subdir and file that a user goes to.. lets say /subdir/login.html. And once the user enters in his credentials, I want him to be redirected to /mainpage.html I am using this code for both logins: FormsAuthentication.RedirectFromLoginPage("CookieMonster", False) httpApplication.Response.Redirect("/mainpage.html") But, after the user authenticates via basic authentication, he is redirected to the /mainpage.html and for some reason then redirected to the form…
Last reply by trend, -
-
- Administrators
- 3 replies
- 1.5k views
I need to allow users based on IP in the web.config. The reason for this is because ,if you have the auth set to forms.. then you cannot change the pages via frontpage extensions.. You have to manually ftp in, and upload the project that way :/ Any ideas? thanks Lee
Last reply by bri189a, -
-
- 6 replies
- 1.3k views
I am trying to create a TIMER that starts when you press a START button, pauses when you press the PAUSE button, and Stops when you press the STOP button. So .... I need a START/PAUSE/STOP button, so far the best way I am able to find is to try and draw one using MS-PAINT and adding them as "background images" with no text on typical command buttons. Problem is the background colors don't match... I can't seem to generate the same colors in MS-PAINT as in VS.NET (typical background color). Is there a better way to do this? Pre-built buttons hidden somewhere? etc... Thanks,
Last reply by Joe Mamma, -
-
- Administrators
- 1 reply
- 984 views
How do you minimize an application (the program I am writing) to the Systray? Also - how do you select the image/picture/icon displayed when minimized to Systray? Thanks,
Last reply by PlausiblyDamp, -
-
- 2 replies
- 887 views
I have a combobox on a form which contains 2 selections. What I have found is if the user select's from the combobox it hilights the text within the combobox, if the user then hits the deleted key on the keyboard it removes the text. But if the user select's the combobox again the text that was previously deleted is still avaliable in the dropdown. My question is how do I stop the text from being hilighted / deleted??? I have looked for a readonly attribute, but there does not seem to be one for the combobox. Thanks Simon
Last reply by lidds, -
-
- Administrators
- 6 replies
- 2.2k views
Dear all, I am trying to calculate the difference between 2 DateTimePickers' values, and I am unable to calculate the differences in numbers of days, it is fine if they both within the same month, but if the month is changed, the problem arise, it just calculated the differences in day and not the month part. Can anyone help me with this? Thank you very much PlayKid
Last reply by PlayKid, -
-
- 1 reply
- 975 views
Simply put - I am making a program that allows you to START, PAUSE, and STOP a timer (this timer is to calculate how much time I spend on a certain work project - but that shouldn't matter) I need to save the START Timestamp (date/time), STOP Timestamp (date/time), and ELASPED Time (time). Problem is I don't know the best way to determine the ELAPSED time?... (note that I use an EXCEL file to store my information - like a Database of somekind) Meaning, the user can start a task today, do it for 3 days, pause it for 2 weeks, start again for a few hours, then STOP it. How do I display the elapsed time? (getting the START and STOP timestamps are easy - they will be NOW…
Last reply by Diesel, -
- 3 replies
- 1.2k views
Dear all, Just wonder is it possible to hide any columns in the datagrid? I have read some books, but they didn't say anything about this issue, but is it possible. Thanks PlayKid
Last reply by PlayKid, -
- 1 reply
- 1.4k views
I am creating an Array like this: Dim UserPass As String() = s.Split(New Char() {":"}) And I know there is atleast 2 values in the array: Dim username As String = UserPass(0) Dim password As String = UserPass(1) But sometimes there will be 3 or 4 values.. Dim username As String = UserPass(0) Dim password As String = UserPass(1) Dim somethingelse As String = UserPass(2) Dim somethingelse3 As String = UserPass(3) I will not know if it will be 2,3, or 4 values.. How can I do the above (do I haveto use a try,catch?) thanks Lee
Last reply by IceAzul, -
- 2 replies
- 1.2k views
Hello, I need to convert (or figure out how to do this in vb.net): string encodedCredentials = authStr.Substring(6); byte[] decodedBytes = Convert.FromBase64String(encodedCredentials); string s = new ASCIIEncoding().GetString(decodedBytes); string[] userPass = s.Split(new char[] {':'}); string username = userPass[0]; string password = userPass[1]; I got this so far: Dim encodedcredentials As String = str1.Substring(6) Dim decodedbytes As Byte() = Convert.FromBase64String(encodedcredentials) but am stuck at this point: string s = new ASCIIEncoding().GetString(decodedBytes); Any ideas? thanks Lee
Last reply by trend,
-
Who's Online 0 Members, 0 Anonymous, 58 Guests (See full list)
- There are no registered users currently online