Topics
-
-
- Moderators
- Leaders
- 17 replies
- 1.6k views
The previous post I made got me thinking about the Legacy code I use, so I'll post what I've been doing with the hopes of finding an easy workaround so I can avoid using the Legacy code as a crutch. I've continued to use Legacy code for string functions (Len, Mid, Left, Instr, etc.) simply because they work much better / easier than the .NET equivalents. Otherwise, you I keep getting errors, which are a pain to workaround. Example 1... Dim str as String Dim i as integer i = Len(str) i = str.Length In this example, the Legacy line works, but the last line bombs because no value as been assigned to "str" yet. Very annoying since I do not want to check a strin…
Last reply by JDYoder, -
-
- 4 replies
- 2k views
Hi, I am having some trouble with interrupt handling. I have a device which sends me an interrupt every 5 seconds, and I need my code (using either VB.NET or c++) to respond to the interrupt as soon as it is fired. Is there anyone who would know how to do that ? Thanks :-\
Last reply by nima1985, -
- 4 replies
- 786 views
Is there a way to search for any integer value in a string and remove it? Any help given is greatly appreciated.
Last reply by jmcilhinney, -
-
- Administrators
- 1 reply
- 1.2k views
I need to find a way to pause to allow time for the TelNet connection to take place and then answer the user name and password when it asks for it. Right now this runs so fast that it goes right through it before the TelNet is ready. Can somebody please show me an example of how I can do this with the code below. Thank you Private Sub TelnetGuiApp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load m_Socket = New ASOCKETLib.SocketClass m_Constants = New Constants m_Socket.Protocol = m_Constants.asPROTOCOL_TELNET 'Host For FTP Location Dim TXT_HOST As String TXT_HOST = "library.uah.edu" m_Socket.Connect(TXT_HOST, 23) TXT…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.1k views
I have a button on a form that links and starts up a web page in Internet Explorer. The web page has a user name and password login. Is there a way to have a VB.NET application fill in the information automaticlly and log in? Thanks!
Last reply by laroberts, -
- 2 replies
- 1k views
Dear friends, I am using table stlyes to display datagrid(windows forms). In that grid i am aligning some columns to right. Problem is that column headers are also aligning to right and last charecter in column header is not visible clearly, its covering under grid line. Is there any way to prevent column header from aligning to right, and only data to align right. or make the header clearly visible. Thanks.
Last reply by smriti, -
- 2 replies
- 1.3k views
I am writing a program that captures a minimized game's window and paste it onto my form. I need it to refresh about every 500ms. What would be best way to do this? Any help would be very apriceated. Thanks... :D
Last reply by eman, -
- 2 replies
- 1.2k views
Recently, I've started looking into sockets and tcp. I ended up downloading the server/client chat example that Microsoft offers in the 101 Examples package and been doing some modifications to it. I've come across a problem that has me stumped. I have a method that sends information to a client and inside that method is another method that sends data elsewhere. The problem is that the messages are not always being sent separately, sometimes the information is being concatanated and then sent. When I put a break point in my code and then slowly step through, everything works fine, but during regular execution, I guess it sends data so fast that it just concatanates it o…
Last reply by Simcoder, -
- 1 reply
- 3.6k views
I have a picturebox with an image property set to a standard jpg file and the properties set to stretch the image to fit the picturebox size.. Now, what I want to do is copy a section from that picture box (with the new stretched image) to a seperate picture box. So the second picturebox would have a copy of the stretched image, not the original image.. How do I copy, say a 100x100 chunk of the stretched picturebox image to another picturebox? I am so far only able to copy the image in its unstretched form.
Last reply by Diesel, -
- 2 replies
- 756 views
How do I parse out all the <a ref> a particuliar html file might have, save it, and then display it in the users browser with all <a ref> 's removed.
Last reply by Diesel, -
- 4 replies
- 828 views
1 -> I have an image : Image1.ImageUrl = "image.jpg" 2 -> my page does some operations and replaces that image.jpg with another image.jpg 3 -> the user clicks a "preview" button to see the new image but the page shows the old image, on page reload. I tried to disable cache, still it doesn't work. It works if I press F5 ( Refresh ) Any ideeas ? :(
Last reply by PROKA, -
-
- Administrators
- 5 replies
- 963 views
I have noticed with my VB.NET program that when I click on the X in the right corner of the window to close the program it is still running as a process in Windows. How do I stop this from taking place? When I push the X I want it to clear out of Windows completely. I know you can use application.exit to terminate everything but that does not help if somebody hits the X in the right corner. Thank you
Last reply by PlausiblyDamp, -
-
- 2 replies
- 980 views
hello, in a intranet at my work, i see that the error page are customized... and i dont know how, anyone can say me how can I make it? i post an example page of error, and i want it customized. PD: rename the file to .htm Login failed for user 'sa'.doc
Last reply by Rothariger, -
- 0 replies
- 640 views
Hi, We have a table with the following structure... |autogen_key|report_id|report_period|numeric_val|line_number| autogen_key == an autogenerated key -- also used to indicate the order that the numbers were inserted in. (same as the order received) report_id == the unique identifier of the number set (one set of values per report) report_period == the month that the report is for numeric_val == the numeric value for a column and row on a report line_number == the line number(row on the report) that the value is associated with EG. If the report associated with an input file contained two rows with 3 columns of data in each, then the table wou…
Last reply by sysdesigner, -
- 2 replies
- 1.2k views
Hi I am developing a network application that sends messages to different users. These messages ofcourse will be multiple line such as " Hi How are you? " What is the character or what to write when i want to have carrige return Thanks in advance
Last reply by Khaledinho, -
- 1 reply
- 677 views
I am fairly new to the VB.net side of the programming and have just converted an EXE and Outlook Addin from VB6 to .Net. I have both the Outlook Addin and Application running correctly from the development application Visual Studio, but the compiled EXE of the application needs to be run from across a network mapped drive and I get the following error An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. Can anyone help me with thi…
Last reply by Diesel, -
Split
by lothos12345-
- Administrators
- 3 replies
- 1.5k views
What is the correct syntax to split a string in VB.NET with option strict on? Any help given is greatly appreciated.
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.5k views
Is it possible to capture the mouse click position in asp.net page.Anyone pls help. Thanx in advance
Last reply by david7777, -
-
- Administrators
- 3 replies
- 2.3k views
Hey does anyone know how i can dynamically change an attribute of tag, in particular i want to change the href attribute in the link tag, any ideas anyone? thanks.
Last reply by hrabia, -
-
- 11 replies
- 3.8k views
THis is probably a really dumb question, but is there another way other than the code below to dynamically change a page title at run time? Protected Overrides Sub Render(ByVal writer As HtmlTextWriter) writer.RenderBeginTag(HtmlTextWriterTag.Title) writer.Write("ASFD") writer.RenderEndTag() writer.WriteLine() End Sub When I use the code above it overrides all the labels and text boxes on the form.
Last reply by hrabia,
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online