all groups > vb.net > february 2004 > threads for monday february 9
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
For each ... Next Question
Posted by PS at 2/9/2004 11:58:19 PM
Hi,
In Excel VBA, I can read Excel add-in member name through this code ...
--------------
Dim e As Excel.AddIn
For Each e In Application.AddIns
Debug.Print e.Name
Next
--------------
But in VB.Net, It results in Error.
--------------
Imports Excel = Microsoft.O... more >>
VB.NET Unit Testing Tool
Posted by Mark Jerde at 2/9/2004 11:56:17 PM
I've been searching & reading for a couple hours re: unit testing tools for
VB.NET. Any comments on the below, and are there others / betters I missed?
(I didn't list betas.) Thanks.
-- Mark
HarnessIt http://www.unittesting.com
Nunit http://nunit.org/default.htm
TestComplete htt... more >>
Drag and Drop Formats in WebBrowser Control/MSHTML
Posted by Charles Law at 2/9/2004 11:47:13 PM
I'm asking this here as I have already asked in the dedicated newsgroups but
with no answer. I wonder if there is an answer that is more generally
applicable to VB.NET.
I want to be able to drag an HTML element onto the WebBrowser control and
drop it where the mouse is. I have looked at two op... more >>
comment many lines
Posted by Julia Sats at 2/9/2004 9:55:32 PM
/*
Does exis such possibility?
... more >>
enum question
Posted by Julia Sats at 2/9/2004 9:36:10 PM
Hi,
I have such enum at module modMain:
Public Enum enmProcesses As Integer
DBPart = 0
FilePart = 1
Backout = 2
End Enum
when I use enum at code I need do like it :
dim intProcess as enmProcesses
.....................
Select Case intPro... more >>
How to write a component in VB .NET?
Posted by Dr. Zharkov at 2/9/2004 8:42:19 PM
We have program Visual Basic .NET 2003 for construction of 3D-Graphics as a
surface z=f (x, y). From VB .NET 2003 we want to transfer coordinates of
this surface as myArrayVB (2000, 1) in myArrayVó [2000, 1] of VC++ .NET
2003 on scheme of "component - client". But there are error 1 and error ... more >>
Combobox question
Posted by meh at 2/9/2004 8:40:57 PM
I cant seem to figure out how to ...with a mouse highlight and select text
in a combobox. Seems to be built into the text box. I noticed the combobox
(URL box) in IE will let you select either the whole string or just a
portion of it. I would like to learn how to implement something like
this... more >>
Querying a DataSet
Posted by Rob Venable at 2/9/2004 7:44:27 PM
Hi all,
Am I on the right track here or am I going about this the wrong way. I'm
new at VB.Net and I've written a little App that displays all contacts
in a Listbox.That part I've got but what I want to do is display all
contact information in the textboxes when I click on a Selected Item in
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Disabling toolbar buttons
Posted by markeboy at 2/9/2004 7:36:07 PM
What is the workaround to prevent toolbar buttons from displaying a grey square where the image should be once the toolbar button is disabled
I have transparent color of the image list set to transparent (after trying every other color)
Toolbar images are set at design time - bound to an imageli... more >>
dotnet dll
Posted by Andry at 2/9/2004 7:09:13 PM
Hi all
I have made a com dll .
Details are
OS : win 2000
Env: DotNet
I now want to execute this in the following env:
Win 98 and VB 6
This gives error.Page fault in VBA6.dll, and says that the it has performed
an illegal operation.
Please help.
... more >>
.NET dll
Posted by Andry at 2/9/2004 6:20:55 PM
Hi all
I have made a com dll .
Details are
OS : win 2000
Env: DotNet
I now want to execute this in the following env:
Win 98 and VB 6
This gives error.Page fault in VBA6.dll, and says that the it has performed
an illegal operation.
Please help.
... more >>
<cannot view indexed property>
Posted by Mike at 2/9/2004 5:47:33 PM
Hi,
I have created a collection of a custom class. Everything works fine =
(can add these items in a combo from within a VB.NET application, for =
instance), but when looking at the collection from a VB.NET application =
in the Watch window, I cannot see the items of the collection. The =
m... more >>
Web Mail Attachments
Posted by Richard Grene at 2/9/2004 5:33:55 PM
I am using webmail with asp.net with vb. I need a method for Web users to
attach
files from their local drives. How can this be done since the file to be
attached is not on the Web Server?
Thanks,
Richard
... more >>
Package up VB.net application
Posted by A-PK at 2/9/2004 5:04:00 PM
could someone guide me how to package my vb.net application and restribute
to my clients.
i want to make something like a "installation wizard"
to let my clients to install themselves
... more >>
IShellFolder - last time - no hair left. Is this interface definition correct?
Posted by Robin Tucker at 2/9/2004 4:46:47 PM
Can someone tell me if my IShellFolder interface is correct please? I've
been having problems with BindToObject. Do I need to marshal the interface
"ppv" out somehow? I can't for the life of me see what the problem is but I
keep getting Null Reference Exceptions when I attempt to use it, altho... more >>
File I/O tutorials/book
Posted by Rick Mogstad at 2/9/2004 4:07:53 PM
Is there somewhere I can find a good tutorial for VB.NET file I/O. I have googled, but I cant
tell which hits are any good, or not. I would also be interested in a good book that covers file
I/O if someone has one to recommend.
--
-Rick
________________________________
Hardware, ... more >>
redim in a web service with arrayed structors/"Redim statement requires Array"
Posted by Daryl Davis at 2/9/2004 3:36:28 PM
I am having trouble with ReDim (see code below)
SaleTable2's structure includes an array for SaleDetailTable2
Dim newsale As New hallsales.SaleTable2
Dim detail As New hallsales.SaleDetailTable2
Try
redim newsale.SaleDetails(0) ********* This line comes out with an error
"Redim statemen... more >>
Spurious "Not Defined" error messages
Posted by Eric G. Harrison at 2/9/2004 3:31:11 PM
We have a project with many other projects referenced (all of which are referenced at the project level and are included in the solution). Frequenly, if we make a change in project A (such as adding a property, or even simply changing a line of code), a form in project B will then show 10 or more "... more >>
How do i affect a Network share in VB.net
Posted by Atley at 2/9/2004 2:58:45 PM
Trying to add or remove a share in a VB.net app, any clues?
... more >>
property/method annotation
Posted by Craig Buchanan at 2/9/2004 2:53:00 PM
Is there a way to annotate a property or method so that this description is
displayed in the object browser?
Thanks,
Craig Buchanan
... more >>
General DLL question
Posted by Mike at 2/9/2004 2:31:04 PM
I have created a dll based off some preexisting functions. When I used to
call one function it would set some variables that would be used by
subsequent functions. However, ever since I created the DLL it seems to set
the variables at first, but then it resets the values when I call a
subseque... more >>
run Insert/Delete DataAdapter commands?
Posted by Rich at 2/9/2004 2:21:12 PM
Hello,
I have an oleDBDataAdapter (da1) which gets data from an
Access mdb and fills a dataset (ds1) with integer data
from "tbl1" in Access. Data displays in textboxes on a
form. The textboxes are bound to columns in the dataset.
This works correctly. I have been struggling with
in... more >>
Peter Huang (an open letter since e-mail bounced)
Posted by Ot at 2/9/2004 2:18:40 PM
I tried an e-mail, but it bounced. Hence this post. Please don't take
this as a flame. I am truly trying to be helpful.
I know you are trying to participate in the group and be helpful. However,
your responses have a few flaws.
Your repeated use of "Thank you for posting in the community... more >>
how to set the topmost row item in a datagrid control
Posted by Willie wjb at 2/9/2004 2:08:36 PM
Hi,
i want to set the topmost row displayed in a datagrid control but can't find
the command for it.
Before there was the .setfirstrow property,
but in this datagrid (framework 1.1) control i can't find it?
thanks.
... more >>
text boxes
Posted by jerry at 2/9/2004 2:02:56 PM
I am using Visula Basic .Net to create a Web Form with
text boxes. I have not found a way to do the
following: set the focus on a text box, use the enter
key to move from one text box to another. Does anyone know
how to accomplish this with VB .NET code or HTML?... more >>
setting focus on an text box
Posted by jerry at 2/9/2004 2:00:00 PM
I am using Visual Basic .NET to create a Web Form with
text boxes. I have not found a way to do the following:
1.... more >>
Something wrong with my Piddle? (IShellFolder madness!)
Posted by Robin Tucker at 2/9/2004 1:58:30 PM
I've got this nice pidl, enumerated via. IEnumIDList on an IShellFolder (the
desktop). I know the pidl is ok, because I can list its display name and
its looking good. Now I want to go a level down using this piddle and the
BindToObject method on the IShellFolder interface. Here's what I'm doi... more >>
Using CreateProcess...Help!!
Posted by cranker at 2/9/2004 1:26:08 PM
No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my code executes
It's driving me nuts!
Can anyone help?... more >>
Deployment question
Posted by Steve at 2/9/2004 12:43:09 PM
I have a few questions I hope you can help me with.
1.) I would like, when the app install to check if a previous installation
exist, if so, just installs the new version over the old. I don't need any
feedback from customer. For now.
As of now I have to go into add/remove programs, and unin... more >>
Running Command Line statements
Posted by Atley at 2/9/2004 12:27:46 PM
I am looking for a way to run DOS-type commands from within a VB.net 2003
application.
I also need to be able to answer questions (ie 'Are You Sure') that the
command line may require.
Thanks,
Atley
... more >>
Application Name
Posted by David Schwartz at 2/9/2004 11:24:45 AM
How do you programmatically set the name (AssemblyName?) for a Windows forms
application?
Thanks!
... more >>
Version number display in About screen
Posted by thorung NO[at]SPAM mailcity.com at 2/9/2004 11:15:55 AM
Hello
I would like to display the Version number of my application in the
About screen. I manually set this value in the Properties of my
deployment project. How can this value be accessed at runtime?
Thanks for any help!... more >>
Deployment Questions
Posted by thorung NO[at]SPAM mailcity.com at 2/9/2004 10:32:02 AM
I have two questions regarding a VB.NET deployment project.
1) During an install, I would like any previous versions of the
application to be uninstalled automatically. Currently, I have to
goto Control Panel - Add/Remove Programs and manually uninstall
previous versions. In the Properties ... more >>
Random Access files - slow
Posted by Stuart at 2/9/2004 10:15:25 AM
I have converted a VB6 app to VB.NET. It's function is to generate
reports from a Random Access file but the .NET version is pathetically
slow compared to the VB6 version.
I think I need to to get the FileStream class to work with Random Access
Files, but it requires the data Structures to... more >>
Determine if assembly is part of framework
Posted by Scott at 2/9/2004 10:10:16 AM
Is there any way to determine through code if a given assembly is part of
the .NET Framework? Any special attributes, etc? I saw one suggestion about
checking the key the assembly was signed with, but this appears to differ
between assemblies.
Thanks,
Scott
... more >>
assemblies & references
Posted by A-PK at 2/9/2004 9:51:44 AM
Anyone know how to breakdown every modules into different assemblies
and refernces. Hence, to repair problematic module, only that
particular module needed to be recompiled.
or any place can get more information about assemblies & references
... more >>
Creating Fonts
Posted by Zyrthofar Blackcloak at 2/9/2004 9:50:57 AM
Hello everyone!
I just wanted to know how I can create a font from bitmaps in memory
(currently in an array), or from GDI+. I want to be able to use that
font in a textbox, for example.
I have searched a bit on msdn and google, but didn't find anything
useful. A hint or a link would be apprec... more >>
Mute volume in vb.net program
Posted by Bob Day at 2/9/2004 9:47:45 AM
Using VS 2003, VB. Net, MSDE...
Usining task sheduler, I wish to mute the volume in the .bat file that task
scheduler runs (windows XP Pro). I don't see anyway to do this via a .bat
line command (if there is, please let me know).
So the next option would be to write a small .net program tha... more >>
DataGrid cell question
Posted by Steve at 2/9/2004 9:35:09 AM
I created a custom DataGrid. When the user clicks in any of the cells, the
text is highlighted, even so the text is not editable (read only).
How can I avoid that? I want nothing to happen when the user clicks on a
cell.
Here is some sample code from my grid.
Dim tb3 As DataGridTextBoxColum... more >>
Unhandled Exception
Posted by mike at 2/9/2004 9:21:09 AM
My program is crashing, but it doesn't crash on a single line of code. Below is what the output tab displays. I have no idea where to start inorder to debug this problem. Is there any suggesstions on how to start debuging the problem
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v... more >>
Help: Application exception could not be handled
Posted by VB Programmer at 2/9/2004 9:18:58 AM
When I run my VB.NET app locally it runs fine.
When I copy it up to the server (all supporting files, etc... there) I get
this error:
MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Process id=0x8e4 (2276), Thread id=0... more >>
Setting the length of datagrid columns
Posted by bob NO[at]SPAM metaprosystems.com at 2/9/2004 9:09:01 AM
I am binding a datatable to a datagrid in VB.NET I then want to change
the width of the first column. I am unable to get the right syntax.
Here is the code I tried
Dim mydataset As DataSet
gclodatabase.GetDataSetJobs("Select * from qryJobs",
mydataset)
Dim Myda... more >>
Exchange Public Folders
Posted by theukjock NO[at]SPAM aol-dot-com.no-spam.invalid at 2/9/2004 8:38:10 AM
Does anybody have any advice or any good websites that will help me
display the contents of an exchange public folder in a Form.
This is the first time I have ever done anything like this, hence why
I am looking for an idiots guide.
Thanks for your help.
Chris
Posted Via Usenet.com ... more >>
General printing help required
Posted by jdr NO[at]SPAM dsl.pipex-dot-com.no-spam.invalid at 2/9/2004 8:38:10 AM
Hi all!
Printing in VB6 used to be a doddle, however, as with many other
things, this task has been made much harder in VB.Net!
Can anyone point me in the direction of sample code, tutorials, etc on
printing in VB.Net.
I need to print values from text boxes, datagrids, format text
accord... more >>
Playing multiple sounds
Posted by bob NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/9/2004 8:38:09 AM
I have an application that has a music backgroung and also requires
sound effects, however when I play the sound effect the music stops.
How do i play two wavs at once?
(I am using the sndPlaySound function and would like to continue to do
so if possible.)
Posted Via Usenet.com Premium ... more >>
OleDbDataAdapter-Error on "SELECT * FROM Position"
Posted by saxman NO[at]SPAM markus-tschoep-dot-de.no-spam.invalid at 2/9/2004 8:38:07 AM
Hi there,
if I try to access a table named Position in an Access-Database via
OleDbDataAdapter I get an error. If I rename the table to e.g.
Positions it works.
Any idea how to solve this problem?
(There are about 5.000 databases out there at our customers with a
table in it named Position... more >>
'Proper' way to databind?
Posted by hra242 NO[at]SPAM hra.co.santa-cruz.ca-dot-us.no-spam.invalid at 2/9/2004 8:38:04 AM
Hi I'm using a variety of sources to learn to databind my db to my
forms.
Does it make any difference if I 'drag' out an sqlDataAdapter and
Dataset?
Or
Should I put it within the VB code?
The books and videos I'm watching show the 'drag' method, while the
Microsoft samples all use the... more >>
How do I retrieve values from a datagrid?
Posted by jdr NO[at]SPAM dsl.pipex-dot-com.no-spam.invalid at 2/9/2004 8:38:04 AM
Hi peeps,
Here's a screenshot of a particular form in my program.
http://www.jdr.dsl.pipex.com/dg1.JPG
Basically, when I click on 'Refresh Totals', I want it to retrieve all
values from the ItemPrice column, add 'em together and output the
result to the sub total text box (I've manually e... more >>
How do I read a text file that's in use by another process ?
Posted by vb NO[at]SPAM simmo.f9.co-dot-uk.no-spam.invalid at 2/9/2004 8:38:03 AM
Hi i'm creating a program that reads various log files from another
program (Find-a-Drug DC project).
The problem is, when I read some of the logs I get the error
This process cannot access the file"C:\...." because it
is being used by another process
Well I know that :) as it's the log files... more >>
re:How do I read a text file that's in use by another process ?
Posted by vb NO[at]SPAM simmo.f9.co-dot-uk.no-spam.invalid at 2/9/2004 8:38:03 AM
anyone ?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com... more >>
DBNull to String
Posted by nielswouters NO[at]SPAM pandora-dot-be.no-spam.invalid at 2/9/2004 8:38:02 AM
Hello all !
I'm working on a project which needs to connect quite frequently to a
database. When I'm tryin to retrieve data and some columns contain a
null value, my program crashes and I get the error : 'conversion from
DBNull to String is invalid'...
How can I solve this?
Thanks in adv... more >>
StreamReader reads, but StreamWriter doesn't write...
Posted by cagey_cretin NO[at]SPAM netzero-dot-com.no-spam.invalid at 2/9/2004 8:38:00 AM
I have set up a catch/try deal to find an error, but there are none
reported nor when I clean the build/rebuild. Simple filecalled
text_file.txt. I cannot write to it, but I can write into it with
notepad and read it with StreamReader.
Can anyone show me the error of my ways?
//AppendText()... more >>
re:StreamReader reads, but StreamWriter doesn't write...
Posted by cagey_cretin NO[at]SPAM netzero-dot-com.no-spam.invalid at 2/9/2004 8:38:00 AM
Yeah, well. Take the try &
[b:4bc870c5c9]catch[/b:4bc870c5c9] out and it works fine. :evil:
Tickle me Elmo. :twisted: What a treat.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION... more >>
Protecting VB.NET application...
Posted by Bobby C. at 2/9/2004 8:32:34 AM
My company is in the process of getting ready (well actually QTR 2 2004) to
roll out a rewritten version of a vertical market application for the
municipal market (small and medium sized cities). Software protection
(keeping the honest people honest) hasn't ever been a problem but in this
roll ... more >>
DataAdapter not updating
Posted by Rich at 2/9/2004 8:27:26 AM
Hello,
On a form I have 3 textboxes, txt0, txt1, txt2 which
contain all integers. I have also placed a connection
component (conn), dataadapter component (da1) and dataset
component (ds1) from the toolbox on to the form. I
established a connection to an Access mdb file and can
display... more >>
Higher BaudRate than 115200
Posted by Amjad at 2/9/2004 8:06:10 AM
I was looking at the MSCOMM32.OCX help when I found that it supports only up to 256000 bps baud rate. Is there another .NET COM that supports higher baud rates (e.g. 460800 and 921600 bps)
Thanks
Amjad... more >>
Popup Menus in Text Boxes
Posted by Goldsworth_Systems at 2/9/2004 7:46:11 AM
Using VB.Net, I open a form by using the "MouseDown" event of a textbox control (I test to ensure that the right button has been clicked). However, when I do so, the standard popup menu bar (Undo, Cut, Copy, Paste etc) also sometimes appears. I don't know why it appears sometimes and not others (p... more >>
selectionlist tied to column of datagrid?
Posted by Engineerik at 2/9/2004 7:31:07 AM
The vb6 datagrid had a "button" property which I used to display a dropdown icon in a cell. I created a popup menu that would display the list of valid choices for that cell when the user clicked the dropdown icon. In vb.net I havn't been able to figure out how to display that little dropdown icon... more >>
Word tables and DataSets - FINALLY!!!!!!!!!
Posted by scorpion53061 at 2/9/2004 7:31:01 AM
I figured it out.........
I felt I owed it to the groups I harassed with this quesiton :) to tell the
solution....
special thanks to Ken and William Ryan who kept at it with me!!
Originally used a string. But all of you in the information "business" know
sometimes we have to work with lar... more >>
Iterate thru menuitems of a contextmenu
Posted by Jorge Cavalheiro at 2/9/2004 2:30:43 AM
Hello
I am trying to browse thru all menuitens of contextmenus.
The form has 3 contextmenus.
mi and mi2 as menuitems, f is a form
For Each mi In f.ContextMenu.MenuItems
For Each mi2 In mi.MenuItems
Next
Next
I get an Object reference not set to an instance of an
obje... more >>
Field size in ADO.NET?
Posted by Wael Soliman at 2/9/2004 2:05:57 AM
Hi all
In vb6 using ADO I can get the field size from recordset
for example: Size = Recordset.Fields(index).DefinedSize
How can I do it in vb.net using ADO.NET
Best regards
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
header files for a device
Posted by Stijn at 2/9/2004 1:43:20 AM
Can I use header files in vb.net?
I tried
#include <prototype.h>
but it is not working.
I have to include some header files and I have to link
the executable file with import libraries so I can
communicate with a counting device.
Does anyone knows how I have to do this?
Thank... more >>
Datagrid events
Posted by Robert Batt at 2/9/2004 1:21:05 AM
I wish to know which datagrid event is called when I save data the data on my datagrid by clicking the little pen. The
Mydatagrid_currentcellchanged event seems to be called just by clicking on the grid without changing anything. The grid is bound to a dataset called mydataset. The reason I wish to... more >>
string concatenation
Posted by Dominique Vandensteen at 2/9/2004 12:07:30 AM
after the very small & vs string.format discussion I did some speed tests...
loop of 1.000.000 concatenations of 5 public string variables in a class
gave following results:
result = a & b & c & d & e
+/- 420ms
result = a
result &= b
result &= c
result &= d
result &= e
+/- 370ms
... more >>
|