microsoft.public.dotnet.languages.vb Archive - August 2002
Post a message to this list
Messages
Page: 12345
Retrive the Default TEMP Path of a Enviroment? (4 replies)
microsoft.public.dotnet.languages.vb
How i can retrive the default temp path of the OS? like c:\Temp or c:\Documents & Settings\Profile\Temp and such? is there a way?
Windows Service (2 replies)
microsoft.public.dotnet.languages.vb
Building a Windows Service in VB.net... Is there a way to cancel the service start, e.g. when an exception is caught in the OnStart method? Several things should happen in OnStart, such as loading data and instanciating objects. If any of these go wrong, I want to keep the service from starting. Thnx, flip
combox beep when enter key pressed (4 replies)
microsoft.public.dotnet.languages.vb
There has been at least one message posted already on this subject, but I would like to hear from Microsoft. There seems to be no way to trap the enter key press from a combobox whose dropdowstyle is 'dropdown' without a beep being generated. Is this a known bug? Is it going to be fixed anytime soon? Is there any work around (a workaround on the list here simply eliminates the enter key and I can'...
sendKeys("{Tab}") to another form (2 replies)
microsoft.public.dotnet.languages.vb
I have a form "A" which include a Grid control and a button. The button will opens a another form "B" (Modal form). From form "B" I can insert values to Grid controls' cell, but if I want to Tab to next Cell in the Grid by using sendKeys("{Tab}"), it won't work and moves Tab to next control in form "B". What should I do to be able to move to next Cell in the Grid control on form "A"? Thanks
About Exception Handling (4 replies)
microsoft.public.dotnet.languages.vb
Hi, I'm new to VB.NET programming. I need to know about exception handling in .NET. How to pass exceptions between different application types(Say an exception raised by a form has to be dealt with in a different class object) within 1 project, as I need to handle all the exceptions raised by different modules, in 1 ErrorHandling class of the entire application. Any help would be very helpful........
Deleget.BeginInvoke.............missing? How do I make async delegate calls. Help! (2 replies)
microsoft.public.dotnet.languages.vb
I need to make an asynchronous delegate call in vb and I noticied there is no BeginInvoke. It appears only the C# compiler supports this. How do I make an async delegate calll??? By the way it appears that BeginInvoke for the Controls is not truly asynchronous either (at least when I process events via remoting)
MaskedEdit for .NET (4 replies)
microsoft.public.dotnet.languages.vb
Is there a .NET MaskedEdit Control available?
ComboBox Show distinct? (2 replies)
microsoft.public.dotnet.languages.vb
How can I get a combo Box to show only distinct values? my combobox is bound to a table and in the display member there may be the same value repeated, I want to only show it once, how can I do that? I appreciate any assistance. Delali
Bound ComboBox SelectedIndex Defaults to 0 (8 replies)
microsoft.public.dotnet.languages.vb
Hi all, I've run into an issue with a combobox bound to a datatable. No matter what I try, it will always select the first element (0). Directly after binding I set the SelectedIndex to 1 and this still doesn't work as it will reset itself. In this case, the list boxes are used to facilitate user queries. While I could ensure there was a null value to indicate no option selected as the first item ...
Numeric Edit Control - dot net version (3 replies)
microsoft.public.dotnet.languages.vb
Does Msoft include a numeric edit control that allows you to enter only numeric values similar to Creseant's? Dot Net doesn't have a masked edit box so you'd have to use the Active X control but it doesn't work as well as the Creseants. Thanks!!
System.IO.FileNotFoundException (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I have added a ActiveX dll reference to my project. I realized that if the dll is missing, renamed or deleted, my application will throw a System.IO.FileNotFoundException. Where do I find this code in my project so I can handle this exception. Thanks in advance, Randy
POST via HttpWebRequest not working. HELP! (4 replies)
microsoft.public.dotnet.languages.vb
Here's how I'm trying to POST a request via HttpWebRequest: If Request.Method "POST" Then Form zGetPostForm(ASPPack, Request) ' Don't worry about this ' returns a byte array ' of Form data (X Y&A B) If Not Form Is Nothing Then If Form.Length 0 Then Request.ContentLength Form.Length zPostForm(Form, Request) ' See method below End If End If End If Response CType(Request.GetResponse, HttpWebResponse)...
Invoking public events of a control.... (2 replies)
microsoft.public.dotnet.languages.vb
Hello, I'm having trouble in implementing this. How does one public event call other public event of the same control??? What or how do I need to write the statement. All I've done now is this: Call TreeView1 BeforeExpand(Nothing, New System.EventArgs()) from the TreeView1 Click event. But I get this error: An unhandled exception of type 'System.InvalidCastException' occurred in TreeLoad.exe Addit...
VB.net resource files (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I used to create a resource file to store my ions and images. I didn't use the resource file for multi cultural purposes. Now, I'm starting to learn VB.net and I would like to do the same thing. I just both the standard VB.net software. In the view menu there is the resource view option. In the help file, when I try to find helpful information on how to use the resource view, it says to open a...
How to Point variable to NetworkStream1 or NetworkStream2? (2 replies)
microsoft.public.dotnet.languages.vb
I am working with tcpClients with 2 connections and have the following NetworkStream1 tcpClient1.GetStream NetworkStream2 tcpClient2.Getstream How do I assign NS to point to NetworkStream1 or NetworkStream2 depending on the parameters passed to the sub routine. For example Public Sub ReadCameraData(ByVal CamNum) Dim NS as NetworkStream If CamNum 1 then If CamNum 2 then End Sub I just want to make ...
2 Questions... (4 replies)
microsoft.public.dotnet.languages.vb
1. How do you create controls at runtime? ie. Textboxes 2. Is there a way to find the top left position of a ListViewItem? Thanks. Matt MacLean
StreamWriter 4096 byte limit (3 replies)
microsoft.public.dotnet.languages.vb
I'm building a string of 4800 bytes and then passing it to StreamWriter to write to file. The file is being truncated at 4096 bytes. Is there a way around this? Dim strOutput As String Dim swOutput As StreamWriter strOutput BuildString() swOutput New StreamWriter(File.Create(FileOut)) swOutput.Write(strOutput) Chris
Can I sort a structured array using Array.Sort? (3 replies)
microsoft.public.dotnet.languages.vb
Hi, Can I sort the array (arr) below according to the field 'int' by using Array.Sort. Private Structure strArr Public int As Int16 Public str As String End Structure Dim arr(3) As strArr Thanks,
"" or String.Empty (3 replies)
microsoft.public.dotnet.languages.vb
Hello all, Which is better coding: String.Empty or ""? Is there any difference? If so, what is the distinction, and what is the preferred usage of each? Thanks, Joanna
Help with IndexOf(), parsing HTML (5 replies)
microsoft.public.dotnet.languages.vb
I'm getting strange results while trying to parse through a html file from a Console App. Having trouble identifying anchor end tags " /A " with IndexOf(). strSearch "href" 124 strSearch " /A " 0, It should be 124 Any ideas? Sub Main Dim strSearch As String Dim iCount As Integer ' strSearch " /A " strSearch "href" iCount WordCount(strSearch, FileText) Console.WriteLine("Occurances of " & strSearch...
Console applications and databases? (4 replies)
microsoft.public.dotnet.languages.vb
I am writing a console application that reads log files and provides output to html pages. Currently I use a few fairly large (4096X4096) arrays to handle the mass acumulation of data. This has been too cpu intensive and doesn't scale well for larger logfiles. I would like to change the application so that it would dump the array data into a SQL database on the fly. I would be doing all INSERT and...
Right aligning Labels (7 replies)
microsoft.public.dotnet.languages.vb
I have a just created 6 labels all the same width, and the right alignment doesn't seem to work correctly. The labels are Labeled Surname, Initials, Title, Salutation, Department, Company. As you can see in the attached picture I have right aligned them. The blue picture box next to them clearly shows some of the text to further over than others. Is the a bug? Many thanks Chris
VB6 SizeOf Method (3 replies)
microsoft.public.dotnet.languages.vb
What is the equivalent operation in VB.NET for the VB6 method SizeOf?
constants question (2 replies)
microsoft.public.dotnet.languages.vb
Can someone help me understand the differences between #const and const statement? I want to know if this is correct: const: has file scope only Const statement can have access modifiers so can be used globally. But otherwise both are evaluated at compile time and are found and replaced in the code before IL is generated... is that correct? Why does VB.NET not allow #region within subs and functio...
Random Number.. (2 replies)
microsoft.public.dotnet.languages.vb
How do I create a random number between 0 80? Thanks Matt MacLean
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com