all groups > dotnet general > march 2004 > threads for tuesday march 30
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
How to Select Case base on type
Posted by Gwyn Carwardine at 3/30/2004 7:13:50 PM
Hi, often I want to do different things depending on the type of an
object...
I end up having to use:
Select Case myObj.Gettype.Name
Case Gettype(AClass).Name
.. process as AClass
Case Gettype(AnotherClass).Name
.. process as AnotherClass
End Select
Is there a better way to do... more >>
Sizing a listview's columns
Posted by Gwyn Carwardine at 3/30/2004 6:30:26 PM
I want to display a listview and I want to have it adjust the columns so
that the column width is the larger of:
* The width required to display the column heading
* The width required to display the largest value entry in the column
In other words the column is sized such that you can displ... more >>
About tracking mail-send failure
Posted by WEIWEIWEI at 3/30/2004 6:21:11 PM
Hi Al
I am using SmtpMail.Send in a .NET(C#) program to send out a email message. How can I (or can I?) track if the mail is not delievered to the recipient successfully in the same program immediately after sending?
If I send email to, say, xxxx@yyyy.com(assume a not-existing address), I would ... more >>
escaping double quotes in Regex
Posted by Martin Payne at 3/30/2004 5:56:06 PM
Hi All
How do you escape a double quote in a Regex? I am having problems with, what should be, a simple regular expression statement. I have a string like (including leading spaces (but thats not my problem))
web_url("ForEx"
and, using the regex
Dim RE_WebURLName As Regex = New Regex(" ... more >>
Whidbey Download, Bandwidth cap?
Posted by David Sworder at 3/30/2004 2:51:05 PM
Hi,
I'm trying to download the Whidbey preview from MSDN. It's around 2.6GB
in size. The computer that I'm using to perform the download is in a data
center with access to 10mbps of bandwidth, yet the download only seems to be
taking place at around 300kBps... Is this due to a bandwidth ca... more >>
Files getting corrupted in IDE
Posted by normd at 3/30/2004 2:26:06 PM
This is very strange. We have had several instances of the VB files on a workstation getting changed by ...something. Just today a project's file - not checked out (we use Source Safe), not even open for browsing - got changed. A "build" was done and when the compiler got to this file it found th... more >>
HELP .. TabControl
Posted by João Santa Bárbara at 3/30/2004 2:12:31 PM
Hi all
i have in my application a tab control, with several tabpages, i want to
hide a tabpage how cai i do this ???
i already try to use
Me.tabControl1.TabPages(2).Hide() but the tab continues visible is that a
Bug ??
thsk
JSB
... more >>
Getting type of inheriting class from static methods in base class
Posted by /kim/birkelund/aka/sekhmet at 3/30/2004 12:55:06 PM
Hi
I have an abstract base class from which I would be able to reflect on the
members declared by an inheriting type.
Fx. if I have a class CBase which is a an abstract class with a static
constructor and I have a class C that extends CBase.
If I do something like:
typeof(C).GetPrope... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
fsdfsdfsf
Posted by Kalpna at 3/30/2004 11:42:02 AM
Time zones
Posted by lou at 3/30/2004 10:56:38 AM
I'm not sure where to post this question. It's kind of strange.
We have software on client machines that takes info and sends it to our
server (to an SQL Server 2000 database) through a web service.
The client machines are all across the US, different time zones and such.
Our server is in the... more >>
Regsvcs issue
Posted by mccutjm1 NO[at]SPAM hotmail.com at 3/30/2004 10:09:49 AM
Hi all. I'm trying to install a .NET component into COM+ using
Regsvcs. I get the following error when attempting to do so: The
following installation error occurred:
1: Could not install type library XXX.tlb' into application YYY'.
XXX.tlb: The object is already registered
XXX: The ... more >>
Reflection GetType() problem.
Posted by Livingston George at 3/30/2004 9:41:58 AM
Hi,
I am using Reflection to load an assembly dynamically and calls methods on
one of its objects.
myassembly = Assembly.LoadFile("C:\MyAssembly.dll")
Dim myType as Type = myassembly.GetType("MyAssemblyNamespace.MyObject")
The above code was working fine until today.
Now, GetType r... more >>
Web Server Setup
Posted by Murphy at 3/30/2004 9:07:55 AM
We have a simple server:
NT Server 4.0 SP 6a
Option Pack (Includes IIS)
..NET Framework 1.1
The problem is that aspx scripts do not run correctly, HTML is displayed
however no code is executed.
We have a simple tutorial from asp.net that includes code that simply posts
to itself, the code i... more >>
Copying memory into byte array
Posted by Sam Johnson at 3/30/2004 7:11:07 AM
Hi
I want to copy an 32-bit integer into an array of type byte, so that 4 indices in the array contain the integer value
Dim test As Byte(
Dim i As Int3
How can I copy the second one into the first one in VB.NET(actually a memcpy equivalent)
Thanks a lo
Sam... more >>
Unknown error
Posted by Varun at 3/30/2004 3:46:07 AM
Hello
I have this error message when i try to open a form
My coding falls over on this line....
Me.Button2.Image = CType(resources.GetObject("Button2.Image"), System.Drawing.Bitmap
here is the error i am getting. does anyone know how to fix??....
An unhandled exception of type 'System.Reso... more >>
VS .NET Design features
Posted by A. Alqatan at 3/30/2004 2:49:26 AM
Hi,
Does any one have hints or experience on how to use VS .NET as a page
design tool. I have been using Dreamweaver MX 2003 for some and it has
many excellent features for designing pages. I could find any in VS .NET
2003
Is there a way to overcome this or we should wait for the next versi... more >>
Code change for chars
Posted by Why/ at 3/30/2004 2:36:06 AM
Hi
i have the following code to only allow integer values to be entered in a textbox
Can anyone tell me how i can modify this to only allow characters?
Private Sub txtBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtBox1.KeyPres
'e... more >>
|