all groups > vb.net > february 2004 > threads for tuesday february 10
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
some attributes don't work for custom controls
Posted by Christian at 2/10/2004 9:34:13 PM
Hi,
I'm developing a customcontrol and try to add some design-time support for
my control by using attributes.
Unfortunately only the 'CategoryAttribute' works well when I drag my control
on a client-form and open the properties-window for the control
'DefaultProperty', 'ToolboxBitmap', 'De... more >>
force .Replace to act on itself
Posted by John A Grandy at 2/10/2004 8:12:20 PM
Dim s As String
s = ", ,, 1573 ,,"
s.Replace(",","").Replace(" ","")
doesn't give the desired result "1573" ... apparently because s.Replace()
returns a new String instance ...
so i figured this would work
s = s.Replace(",","").Replace(" ","")
but again, i don't get the desired re... more >>
web in windows ?
Posted by Mike Smith at 2/10/2004 7:54:28 PM
hi i was wondering if there was a HTML object in .net ?
I need to access a particular web page in my windows application and to be
able to parse it. How is this done ? Is there an Inet control or something
like in vb6 ?
... more >>
Determine Access Version
Posted by Dana King at 2/10/2004 7:36:08 PM
Hi, I was wondering if anyone knows how to programmatically determine what
version an Access Database is in?
Thanks in advance...
... more >>
new constraint in generics
Posted by Alex Shirshov at 2/10/2004 6:59:53 PM
Hi all!
How can i specify, that the generic class have the constructor?
With c# it's a new constraint.
For instance, i write
[code]
Class cls1(Of T)
Public Sub some()
Dim tt As New T() ' here is an error: 'New' cannot be used on a
type parameter not declared 'As N... more >>
32bit icons in image list with alpha channel
Posted by Brian Henry at 2/10/2004 6:27:07 PM
Does the alpha channel show up correctly or do you have to do anything to
get it to work right? thanks!
... more >>
Problems using "Add Web Reference"
Posted by Trevor Andrew at 2/10/2004 5:31:08 PM
Hi There
I am having some difficulty referencing Web Services. I am using Visual Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET Windows Application that consumes an external Web Service
When I endeavour to use the "Add Web Reference" and select a URL which I know ret... more >>
Extended ascii chars
Posted by James Pahiris at 2/10/2004 4:56:06 PM
Is there any way to store an extended ascii char in visual basic .net
In previous VB chr$(254) ' â–
I need to send ascii chars (8 bit) to a serial port
Thanks for any help.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Attention: Webforms setting the with of a textbox, depending of the len of the string and the font
Posted by ton at 2/10/2004 4:55:39 PM
How can I in VB.NET set the width of a label or textbox depending on the
length of the string and/or the font size.
In my control I'm showing a textbox in a tablecell, which is added to a
table row
after monitoring several textboxes takes two or even three lines, this is
not what i want.
So ... more >>
Adding a frame control to VB.NET windows application
Posted by damianm NO[at]SPAM webaware.com.au at 2/10/2004 4:51:05 PM
Hi !
I cant see the frame control in the toolbox in VS.NET. Can someone
tell me how I can add this to my Solution/Project ?
Thanks... more >>
Visul Studio Menu Style
Posted by Fabio at 2/10/2004 4:24:45 PM
Hi all,
Someone Know a component to build menus like the visual studio menu(with
icons) or the office menu.
It's better if the component is free, but not necessarily.
Thanks in Advance.
Fabio
... more >>
Form won't show
Posted by jy836 at 2/10/2004 4:22:19 PM
I'm trying to load a form from the Sub Main procedure in a module (I set Sub
Main as the startup object). I have this line in the declarations section:
Public MnFrm As New MainForm
In the Sub Main procedure, I have this line:
MnFrm.Show()
But when I run the program, the form displays it... more >>
.NET Framework 1.1 installed, but VS still sees 1.0
Posted by Sougato Das at 2/10/2004 4:19:50 PM
I recently downloaded and installed the .NET Framework 1.1. Previously, I
had 1.0. The installation was successful, but when I go to the About
Microsoft Development Environment menu item in the Help menu of Microsoft
Visual Studio .NET, it lists Microsoft .NET Framework 1.0 at the top (as it
did... more >>
Multithreading and Waiting without Blocking
Posted by Charles Law at 2/10/2004 4:03:28 PM
Consider the following scenario:
A data packet is sent out of a serial port and a return packet is expected a
short time later.
The application sending the packet needs to send another packet as soon as
the return packet has been received. It needs to wait for the return packet,
but time ou... more >>
ASCII code
Posted by Abubakar at 2/10/2004 3:46:24 PM
I want to get characters for given ascii codes. Dont wanna use the CHR or
ChrW functions. What r the .NET equivilents of the Chr & ChrW functions?
Regards,
Abubakar.
... more >>
How to create a type-safe, collection class that supports For Each...Next?
Posted by Andrew J. Marshall at 2/10/2004 3:11:06 PM
It was SO easy in VB6. Add a few methods, set a few funky properties and
*BAM*, type-safe collection class that supports the For Each...Next syntax.
I've been trying to do this in VB.NET with little success.
I started inherting DictionaryBase because of the Key retrieval ability, but
my code... more >>
last question
Posted by CJ Taylor at 2/10/2004 3:10:41 PM
Alright, last thing I need. Does anyone know of an object browser that can
read a DLL other than an ActiveX/COM or .NET library.
Again, C Library problem, need to see if the structs are defined.
Thanks,
CJ
... more >>
Beep() not making a sound-how to fix?
Posted by Rich at 2/10/2004 3:06:13 PM
Hello,
I want to use the Beep() to alert users about certain
messages but in my workstation I can't get a sound out of
it. But Beep works in VB6. What do I need to do?
Sub...
....
Beep()
For i = 0 to 100: Beep(): Next
MsgBox "testing"
....
No sound. Is it my workstation or do I ... more >>
Accessing Excel files - place data into SQL 2000 DB
Posted by Barbara Alderton at 2/10/2004 3:01:10 PM
I’m relatively new to .NET. I would like to write a VB.NET app (I read that using C# isn't as elegant when dealing with Office products) that reads in Excel files (forms) of both 2000 and 2003 versions, off a file system. I want to access the different cells, some fixed and some variable, and re... more >>
Building/Compiling Application in VB.Net
Posted by lumpierbritches NO[at]SPAM aol.com at 2/10/2004 2:46:34 PM
Thank you in advance. I'm trying to compile to an EXE a VB.net application I've
built, but I can't find a way to do it. HELP Please!!
Michael... more >>
How do I redraw a custom control?
Posted by M O J O at 2/10/2004 2:37:02 PM
(using VB.net)
Hi,
I've created my own component inheriting from the RichTextBox.
I override the WndProc's WM_NCPAINT so I can draw my own border (color).
When I set my BorderColor property, then I want to refresh my component
to draw the new bordercolor.
I've tried with invalidate ... more >>
Re-Installing VB.NET application
Posted by Parveen at 2/10/2004 2:36:07 PM
I made changes to my VB.NET application so I need to uninstall the existing version of my app and reinstall the
new changed version. I rebuilt my solution on my development computer and uninstalled the application on
the target pc by going to add/remove programs. This works fine
But now when... more >>
When Install .NET application
Posted by astroboy at 2/10/2004 2:03:10 PM
Hi, I'm creating an application that connect to the dabase (MsAccess)
I get this message on some computer.
Have Any Idea????
Thank you
-----------------------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instea... more >>
CR/Datasets parameters use please help.
Posted by Brian at 2/10/2004 1:31:06 PM
When useing a Crystal Report (CR) bound to a dataset.xsd, the paramenter do not show up in the CR Field Exploere.
Yes I can access them via my VB.Net code, but I am unable to access them and their values from within my CR document formula code
Is there a way to access these paramenters from wit... more >>
In too deep
Posted by CJ Taylor at 2/10/2004 1:26:01 PM
Recently, I was charged with developing an ODBC driver for a proprietary
database.
I have no experience in developing ODBC drivers. Looking to see if there
are any resources for this other than th 3,000 - 25,000 dollar SDK's.
-CJ
... more >>
Where can I put this string so it is visible to all programs?
Posted by Trint Smith at 2/10/2004 1:19:35 PM
I've looked for a 'module' and used the class viewer to put it in there,
but 'Public UserID As String' is still not a globally visible string.
How do I do this please?
Thanks,
Trint
.Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't j... more >>
StatusBar resize doesnt cause DataGrid vertical scrollbars
Posted by Dave Taylor at 2/10/2004 1:19:11 PM
I have a StatusBar control docked to the bottom of the screen, a horizontal
splitter control just above that, and then a DataGrid control that has its
docking property set to Fill above that. (I'm trying to create a
"Properties Window" similar to the Properties Window in Visual Studio). The
pr... more >>
embedded resource in dll
Posted by Brian Henry at 2/10/2004 12:16:46 PM
If you embedded an icon into a dll, how would you get access to it form
inside the dll and return it to the calling app?
I know how to return it, just I cant figure out how to access the embedded
resource in the dll from the dll (which is an icon) i can though figure out
how to get an embedded... more >>
XLS
Posted by Sueffel at 2/10/2004 11:56:45 AM
Hello all again, insearch of a new thingy that eludes me. I need a way to
export data into an .xls file without having Office of Excel installed on
the local machine. I am a strong believer that I can't dictate the coftware
that my clients use, and one needs excel, so I need to include this
ca... more >>
Process Run Time Error
Posted by Mark Vergara at 2/10/2004 11:50:50 AM
Hi Everybody
Anyone please help us on this we do not
know why we received an error like this
we notice this when we are using Windows 2000
but this Error does not show in Windows XP
we used to code like this:
Dim myproc as new ProcessStartInfo
myproc = "http.//www.mysite.com"
myproc.a... more >>
importing an old c library
Posted by CJ Taylor at 2/10/2004 11:10:51 AM
Hey how do I import an old C library that doesn't expose COM or anything
like that? Would I do it like an API declaration?
I have a function in a tbl.dll file such that...
tbl_get() no params.
Thanks,
CJ
... more >>
Faxing
Posted by Joan at 2/10/2004 11:01:10 AM
Hi all
I want to send a fax with WebService in vb.net; I use this code to send a fax with FaxService in Windows XP
Dim FXServ As New FAXCOMLib.FaxServe
Dim FXDoc As FAXCOMLib.FaxDo
Dim iFaxJob As Intege
FXServ.Connect("\\localhost"
FXDoc = CType(FXServ.CreateDocument("C:\fax.doc"), FAXCOMLi... more >>
How to get URLs from a HTML file
Posted by Mike L at 2/10/2004 10:58:47 AM
Hi all,
After I read a web page (HTML, ASP ...) into a string, how do I get all
links in this string into an array?
Thanks
... more >>
ASP Copy from Textbox
Posted by Michael SL at 2/10/2004 10:41:08 AM
I have been looking in the newsgroup but cannot find what I need. I am using Visual Studio to to build a VB.Net application using System.Web.UI.Page NOT windows.forms. The server fills a textbox and sends it to the client. Initially I wanted to print the textbox but after viewing the complexity i... more >>
#include equilvelant
Posted by Mike Fellows at 2/10/2004 10:33:27 AM
ok my code that im doing in .net is now starting to look fairly complicated,
what started out as a small project has grown and grown
and its time for some house keeping of my code
im trying to implement a .h (c++) file for use of a better word
all i want to do is have one file which has all ... more >>
Drag&Drop File to Explorer
Posted by Marco Zender at 2/10/2004 10:15:35 AM
Hello,
i'm in real trouble and don't know how to handle it! May someone can give me
a hint? Following problem: In my application you can drag&drop a file from
the explorer. In my application this file will be encrypted and then you
should be able to drag&drop the file from the application to t... more >>
Running VB.net applications at command line
Posted by Atley at 2/10/2004 10:07:48 AM
I want to pass parameters to my app in VB.net, but cannot find anything in
the help that would allow me to pas switches to my app and then read the
switches in code so i can affect results, I know that you must be able to do
this, but I can find nothing on it. Any ideas, suggestions?
Thanks
... more >>
opening a form from within another form
Posted by amber at 2/10/2004 10:01:05 AM
Hello
I'm trying to open a form from within another form
I do this several times, and it works okay, but it won't work for this specific form
There are 4 forms that show in the Solutions list, but only 2 of them show up automatically when typing the code to open them
I'm using the code
d... more >>
Storng path to document in SQL table.
Posted by Alex Stevens at 2/10/2004 10:00:33 AM
Hi All,
I'm asking for opinion for the best way forward with storing the path of a
network shared document in a SQL Server table.
Essentially, I want to store in a part record the path to it's actual word
document on my client's network.
Currently, I am storing the mapped drive path when th... more >>
Configuration Manager in .NET
Posted by astroboy at 2/10/2004 9:58:51 AM
Is there anyway to detect whether the .NET Application is Run in "Release"
or "Debug" mode of Configuration Manager(Active Solution Configuration) by
coding ???
... more >>
Can't get PInvoke to work
Posted by John Dann at 2/10/2004 9:49:08 AM
I'm trying unsuccessfully to access some functions within an external
DLL; sorry I don't know much about DLL classification, but AFAIK it's
not an ActiveX DLL, but a vanilla one written probably in C.
I've copied the DLL to my project folder (mydll.dll), but beyond that
haven't added any refe... more >>
ProgressBar question
Posted by Steve at 2/10/2004 9:32:53 AM
Hi,
I have a function that copys a file, and I would like to use a =
ProgressBar, but i can't find a good example anywhere. The one in the =
help files uses a copy function that returns a value. Maybe if I knew =
how to do that........Anyway, any help is appreciated.
Steve
Private Sub... more >>
script not running
Posted by tehilak99 NO[at]SPAM aol.com at 2/10/2004 8:58:05 AM
I am running on MS WinXP Pro. I have my virtual directories set up
properly. If i run just a simple "hello world" application it works
fine. i have the following code, which was downloaded from the
internet from the book that i am using, and it worked fine. but then i
transferred to a new comput... more >>
I can't get 'Public UserID As String' to work right.
Posted by Trint Smith at 2/10/2004 8:39:27 AM
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public
UserID As String', in the Public Area of one program and took out all
the 'local' declairations of it, even in the other programs that need to
see the same value of UserID, UserID was getting the 'UserID is not
declaired' m... more >>
Why is one Access query a View and the other a Stored Procedure?
Posted by Rob Richardson at 2/10/2004 8:04:26 AM
Greetings!
I am rewriting a VB6 application in VB .Net. The database (which was
converted from Access 97 into Access 2000) has two nearly identical queries.
One, called GetNewOrderNumber, is:
SELECT IIF ((SELECT COUNT(*) FROM Orders), Max(Order_number) + 1, 1) AS
NewOrderNumber
FROM Order... more >>
Active X dll, forms, and controls
Posted by Steven Anderson at 2/10/2004 7:37:40 AM
I am writing an active X dll and need to run a telnet session from it. I
setup a class module and a form. The internet tranfer control is on the
standard VB form. When I run the connect method, I do not get any of the
events to fire on the control. ie the winsock.state stays at 6 (attempting
... more >>
Components in VB.net standard
Posted by Art at 2/10/2004 5:26:06 AM
Hi everyone
Can I create a TextBox component and place it in my tool box with the standard edition of VB.net? What I'd like to do is to create a TextBox control, and then add some specific properties and methods to it. After this is done I would like to place 3 of them on a user control. (this ... more >>
FindString CheckListBox
Posted by Jorge at 2/10/2004 3:51:22 AM
Hello
I have a little problem i have a checkedlistbox with
several repeated items.
The code below only selects the first ocurrence
While reader.Read
For i = 0 To Me.CheckedListBox1.Items.Count - 1
Me.CheckedListBox1.SetItemChecked
(Me.CheckedListBox1.FindString(reader.GetStrin... more >>
Dragging a form
Posted by Tom at 2/10/2004 2:16:06 AM
Hi
I have a form with borderstyle set to None, so i don't have a title bar
I would like to drag my form by dragging a label on the form, instead of the title bar
can anyone give me a hint
than
... more >>
Finding multiple matches from a database
Posted by jy836 at 2/10/2004 2:15:04 AM
I'm using an OleDbConnection, OleDbDataAdapter, DataSet, and DataGrid to
display the filtered contents of a database. In this database, there are
thousands of names, and some of them are identical. Is there a way to search
for the next instance of a name in a database? Whenever I search for a nam... more >>
Format numeric values in strings
Posted by Vera at 2/10/2004 1:51:08 AM
I have a problem formatting a string
I have a decimal myDecimal which contains 0,3
What I want to display in a string is "€ 0,30"
So here's what I do
Dim myString As Strin
Dim prov As NumberFormatInfo = New NumberFormatInf
prov.CurrencySymbol = "€
prov.CurrencyPositivePattern =
prov.... more >>
Interference from Macromedia CDS-200
Posted by teddysnips NO[at]SPAM hotmail.com at 2/10/2004 1:08:57 AM
Windows XP
I am playing an encrypted audio CD on my PC which comes with its own
player - CDS-200 from Macromedia. This seriously interferes when I am
running my .NET app. in debug mode. Stepping through code becomes
virtually impossible. If I then pause the music, all is restored to
normal... more >>
problems with parameter of a function in a dll
Posted by Stijn at 2/10/2004 12:27:39 AM
I have a dll that I use to communicate with a device. I
try to use one off the functions but always get the same
erro: Object reference not set to an instance of an
object.
This is the declaration of my function
Private Declare Function SCN_Open_Device
Lib "scn_scsi.dll" Alias "SCN_Op... more >>
|