all groups > vb.net > january 2004 > threads for friday january 23
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
Enum Oddity
Posted by Charles Law at 1/23/2004 11:35:33 PM
Hi Guys
I'm sure there is a plausible explanation for this, but ...
<code>
Public Enum Test
Abra = 5
Cadabra = 76
End Enum
Dim t as Test
t = Test.Cadabra
</code>
At the end of this I expect t to contain 76, but it doesn't. It contains
Cadabra.
In the command window, I... more >>
Looking for 3 classic vb controls!
Posted by Derek Ramos at 1/23/2004 10:51:04 PM
I'm working through a VB .NET book and in one of the lessons I must customize/add three controls to the toolbox: DirListBox, DriveListBox and FileListBox. I realize that these 3 are gone in .NET and that the OpenFileDialog control is the only .NET solution. However, how do I find/ download these 3/ ... more >>
Book for bookkeeping with vb.net source code
Posted by andysyy NO[at]SPAM yahoo.com at 1/23/2004 10:27:16 PM
Hi,
Where can I buy a book how to design a simple bookkeeping system with
vb.net source code ?
Thanks !... more >>
debug.writeline() output
Posted by John A Grandy at 1/23/2004 9:02:40 PM
while stepping through code i'd like to dynamically see the output of my
debug.writeline() statements as they are executed ...
but the debug > windows > immediate doesn't show it
... more >>
confused about assigning nothing..
Posted by Adrian Parker at 1/23/2004 9:01:26 PM
'function to convert null to nothing
Function CheckDate(ByVal DRow As DataRow, ByVal strCol As String) As Date
If DRow.Item(strCol) Is System.DBNull.Value Then
Return Nothing
Else
Return DRow.Item(strCol)
End If
End Function
Dim DRow as DataRow
Dim myDate as Date
' do s... more >>
Extra row in DataGrid?!?
Posted by jy836 at 1/23/2004 8:33:14 PM
Whenever I display data from a dataset in my DataGrid (whoa, that's a lot of
"datas" :-D), there's always an extra blank row at the bottom, which when
clicked on, puts "(null)" in every single cell of the bottom row. Is there a
way to fix that? Thanks.
... more >>
Winsock in VB
Posted by Donald at 1/23/2004 6:56:40 PM
Hey,
I want to start using winsock in VB.NET, but cannot find anygood books on
it. No one has any. Did winsock get renamed, or does .NET now use something
else for internet stuff? Thanks.
... more >>
Showing animation on a form
Posted by Noor at 1/23/2004 6:48:22 PM
Hi All
How some application shows animation to show if some progress/processing is
going on.
like especially in the end of some wizard, the application shows animation
on a form, animation like we see when copying of files is being done.
is that done by showing some animated gif? If an a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
If statement
Posted by Jon Cosby at 1/23/2004 4:22:58 PM
Someone see why this is? If GaussPrime returns true, the debugger doesn't
reach the next line in Factor. It goes directly the next line in the Click
event. If false, it goes to the next block until it finds a prime.
Private Function Factor(ByVal g As CNum) As CNum
...
If GaussPr... more >>
Converting Color.Black to Brushes.Black
Posted by JJ at 1/23/2004 3:59:18 PM
Hi all,
I am using the color dialog box to select a colour
to print with. However, the
e.Graphics.DrawString
method uses Brushes.Black, not Color.Black.
How do I convert from Brushes to Colors and back
again so that my program will run correctly?
Any help much appreciated,
Jaso... more >>
Using PRINTER_DEFAULTS with OpenPrinter fails
Posted by active at 1/23/2004 3:36:10 PM
Any idea why this fails with an
OpenPrinter exited with code : 5
Message is: Access is denied.
I have Adminstrative rights
Public Structure PRINTER_DEFAULTS
Dim pDatatype As Integer 'String I"VE TRIED BOTH
Dim pDevMode As Integer
Dim DesiredAccess As Integer
End Structure
.... more >>
read/write data in excel using a visual basic program
Posted by carlos at 1/23/2004 3:31:05 PM
How can we read / write numbers in a excel data sheet.... more >>
Write data on the screen
Posted by carlos at 1/23/2004 3:21:07 PM
I wonder how to write data in same parts of the screen. Can you give me some advise in Visual basic 6 code
for example in a rectangle in the right bottom side .... more >>
Context menu extension
Posted by yxq at 1/23/2004 3:13:34 PM
Hi
I am build vb6 Context menu extension, but how to determine which popup
menu item(popupItem1 and popupItem2) was clicked?
Thanks
The code
'
' IContextMenu::QueryContextMenu
'
' In this function you must add your items
' to the context menu
'
Friend Function QueryContextMenu(ByVal... more >>
? key and stream reader
Posted by Daryl Davis at 1/23/2004 2:48:00 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anyone know why the IO.StreamReader ignore ? ? I would like to use
it but it refuses to acknowledge it.
Daryl Davis
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
iQA/AwUBQBGknkHxCdI8f75rEQItzgCggJJ69aoJ5UVP5uhdNxI+ElQ/DtUAn3mx
QOc7o... more >>
Collection Error
Posted by James Proctor at 1/23/2004 2:46:07 PM
HI ive just created my first collection. For arguments sake lets say it is a box with many items in it. I fill the box with items. But then when i come to look in the box, i.e. Box.Item(0).ToString it always returns the last item i put in the box, no matter which index i ask it to look in. I realise... more >>
Call a method from an external DLL
Posted by Tom at 1/23/2004 2:03:30 PM
I am dynamically loading a DLL that I wrote that contains forms, a module,
and classes. I am doing this via:
Dim asm As [Assembly] = [Assembly].LoadFrom(MyDLLPath)
Dim TypeToLoad As Type = asm.GetType(MyDLLName & "." & MyFormClassName)
GenericObj = Activator.CreateInstance(TypeToLoad)
I ha... more >>
ListBox with multiple columns
Posted by Brandon Potter at 1/23/2004 2:01:38 PM
I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I w... more >>
RichTextBox line count?
Posted by M O J O at 1/23/2004 1:52:28 PM
Hi,
I'm using a RichTextBox with WordWrap=True and MultiLine=False.
When the text is to long, it fills more lines.
How do I get the number of lines the text uses?
Thanks!
M O J O
... more >>
File tree view?
Posted by Robin Tucker at 1/23/2004 1:33:33 PM
As I haven't had any lucking finding a FREE control to provide an
explorer-style tree view, I have to create my own. I need therefore to
generate a tree, starting at Desktop, containing My Documents, My Computer,
My Network Places, etc. How do I get this information? Building a tree
structure... more >>
Call legacy program for vb.net application
Posted by Caslan at 1/23/2004 1:21:07 PM
Hello all!!!
I am writing a program that accepts data from an asp.net page and then need to send some of the collected information to an RPGIV program on an as400 to perform some calculations and then update a file.(Business Logic). I have tried using the ADODB.command to execute a call to the pr... more >>
Exception error thrown when trying to read a file
Posted by kymjay at 1/23/2004 12:31:04 PM
I am trying to read a file in with the following code and I am getting a system.nullreferenceexception error. The error is “object reference not set to an instance of an objectâ€. This is my code below and I can’t figure out what I am doing wrong. I have used this before and know it works…... more >>
Array
Posted by Gareth Howe at 1/23/2004 11:59:54 AM
In VB6, it was possible to create an array of controls (ie. command buttons)
and create them dynamically at runtime. Is there a function that does the
same in .NET or am I missing something blatently obvious?
Thanks,
Gareth
... more >>
newbie imports namespace ?
Posted by Buz Waitz at 1/23/2004 11:59:47 AM
Beginners question: I am wanting to import a namespace from another folder
within my solution, but it is not being seen. Specifically, I am trying to
import my data access layer namespace into my business layer components.
What do I need to do? Thanks
... more >>
Deployment Problem
Posted by John Wildes at 1/23/2004 11:53:37 AM
Hello All
i've come to the point where i need to deploy my application. I have
created the setup routine, and all appears to be well with that. I have to
distribute 1 executable file and 1 .net DLL which is a custom control that
provides the menus and toolbars for my application.
When the... more >>
How to WRITE to and read from a config/ini type file?
Posted by feng at 1/23/2004 11:52:52 AM
Hi,
I need to be able to WRITE into and read from a config or
ini type of files. I wonder if VB.Net has a API to access
the .ini file format easyly? Please note here that to be
able to Write into it is critcle, not just read from it.
Thanks... more >>
Drawing graphics
Posted by Juan Romero at 1/23/2004 11:32:55 AM
Hey guys,
Can someone point me in the right direction for some tutorials about drawing
with GDI+?
I understand the concepts, but I need to see some tutorials that apply these
concepts.
Thank you.
... more >>
Clock !
Posted by Carmen at 1/23/2004 11:06:05 AM
Hello,
I had to made a form that displays the hour all the time, I mean like a clock. But, I don't know if there is a component for that or may be it has to be done with an API call, if so, how to do it?, Does anyone has an idea
Thanks a lot
Carmen... more >>
String Is Nothing versus String = Nothing
Posted by John A Grandy at 1/23/2004 10:47:06 AM
do these mean the same thing ?
Dim s As String
.....
If s Is Nothing Then
.....
If s = Nothing Then
.....
... more >>
IEnumerator Performance Issue
Posted by Glenn Leifheit at 1/23/2004 10:29:56 AM
I have as app that goes out and enumerates all of the directories and files
on a disk and brings back information on these. The application works fine
with the exception of when I enumerate the directories. The issue at hand
is that there are over 1,000,000 directories with about 100+ million f... more >>
How to access .ini files use VB.Net?
Posted by feng at 1/23/2004 10:24:44 AM
I need to read and write .ini file from my vb.net windows
appliation. Is there API for that available from VB.Net?
Thanks... more >>
replacements for IsNumeric() and IsDate()
Posted by John A Grandy at 1/23/2004 10:01:03 AM
IsNumeric() and IsDate() are "leftovers" from the VB6 days ...
looking forward, perhaps it would be better not to use them ....
does anyone have suggestions on replacements ?
... more >>
WinForms and Command Line Args
Posted by rbrinson NO[at]SPAM cox-internet.com at 1/23/2004 9:53:22 AM
I'm writing one of my first WinForm apps; everything else has been
WebForms up to this point. However, having come from a background of
Java, C++, and Perl, I'm having trouble understanding how VB.NET works
as far as WinForms are concerned. So, please bear with me. I'm used to
applications havin... more >>
Global Exception Handler
Posted by Claudio Di Flumeri at 1/23/2004 9:39:16 AM
Hello all,
I've added a global exception handler to my application in this way:
Sub Main()
AddHandler Application.ThreadException, AddressOf ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
UnhandledException
Application.Run(Main)
End Sub
A... more >>
Newsgroup creation
Posted by Crirus at 1/23/2004 9:36:25 AM
Who can propose and/or creade a group under msnews?
Thanks
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
... more >>
Dataview
Posted by Fadoyo at 1/23/2004 9:01:35 AM
Hi all, please, I would like to ask something:
I do have a dataview(dv1) with several Identifiers, then I want to creat a
new dataview(dv2) which row filter is any Identifier contained into the
other dataview ( dv1).
Thank you very much
Fadoyo Orithsuma.
... more >>
Voice Recognition
Posted by MrMind_15 NO[at]SPAM Hotmail.com at 1/23/2004 8:38:37 AM
Is there any api in .NET which let the programmer to match the voice
and set the boolean to true if it matches to some extend.
Any reply will hghly appreciated.
Thanx.... more >>
Images in Listview
Posted by luis at 1/23/2004 8:01:10 AM
Hi
I would like to use a listview to show the tumbnails of images, the problem is the the images are shown too small, Is there any way to change the image size
If it is not possible, is there another control suitable to do this?
Thanks... more >>
Design time properites in user control
Posted by Eric Fleet at 1/23/2004 6:36:05 AM
I am creating a user control that inherits the standard listview. I want to add a couple properties that should be available in the designer, but haven't the fogiest idea how. Please help
Thanks
Eric Fleet... more >>
VB and Access
Posted by Phil at 1/23/2004 6:11:06 AM
I am extremely new to VB so please excuse me in advance. I want to use VB (within Visual Studio.NET) to access a MS Access 2000 dbase. I want to be able to manipulate the Dbase inside VB. Would someone be willing to help walk me through this process. Once I am able to access just one of my tables, ... more >>
GetActiveWindow and GetWindowText
Posted by Larry Dodd at 1/23/2004 6:10:30 AM
I am trying to write an application that sits in the system tray and just
monitors for a certain Window to be opened. Once this window is opened all
keystrokes will be captured. I have the key capture working correctly but
cant seem to get the Window thing working.
I think I need to use GetAct... more >>
Combobox
Posted by John Marshall at 1/23/2004 3:03:48 AM
I am trying to figure out how to test if something has been typed into
the editable portion of combobox. I can't seem to get it to do these
steps:
Upon entry to the program
the user can type something in the editable part of the combobox or drop
the box down for the list and the user's new ent... more >>
Another database question <g>
Posted by jy836 at 1/23/2004 2:15:13 AM
Hey again. Thank you to everyone who responded to my question in the "Newbie
database question" thread. I've got a new problem, though. ;-)
I linked to an Access 2000 database. This database has a master table and
several other tables. For the sake of simplicity, I'll just call the Master
tabl... more >>
execute public sub on other form
Posted by Sven at 1/23/2004 12:44:58 AM
i have 2 forms:
form1 with 1 button
Dim f As New Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
f.Show()
End Sub
Public Sub sven()
MsgBox("dd")
End Sub
form2 with 1 button
Dim f As Form1
Private ... more >>
How to shut down computer using VB .NET
Posted by Won at 1/23/2004 12:36:06 AM
I want to know how to shut down computer using VB .NET. Thank you... more >>
|