all groups > vb.net > march 2005 > threads for tuesday march 29
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
CSV Separator
Posted by Tocnet at 3/29/2005 11:44:46 PM
Hello,
I would like to know which CSV separator is set on the machine and I would
like to change it.
Do you have an ideas ?
Thanks
Sébastien
... more >>
Two D array ??
Posted by Agnes at 3/29/2005 11:35:20 PM
I know how to use arraylist but it seems IT is one-D array.
How can I declare Two-D array ??
Please be kind to give me a little sample. thanks a lot
... more >>
RowFilter and DataColumn Named as Number
Posted by rawCoder at 3/29/2005 10:41:48 PM
Hi All,
I have a column in my datatable that is named like a number i.e. 45
I know its not good to have a column named as number, but...
Anyways, so when i set the DataView's RowFilter to some thing like
"45='blah'"
System.Data.EvaluateException is raised with message "Cannot perform '=... more >>
typeof
Posted by Michael C# at 3/29/2005 10:38:33 PM
What's the VB equivalent of the C# typeof() operator (it doesn't appear to
be the VB "TypeOf" operator). Thanks.
... more >>
SQL Question
Posted by Terry Olsen at 3/29/2005 8:48:24 PM
I've read in this group that it is much better to open and close the SQL
Connection each time you need to access the database. I need to do a SET
ANSI_WARNINGS OFF in order to insert records, otherwise I get a "string may
be truncated" message (haven't figured this out. I've checked the data ... more >>
Process.Start("Winword.exe") problem
Posted by Dean Slindee at 3/29/2005 8:26:01 PM
The code below is being used to launch WinWord.exe from a VB.NET program.
Word launches, but displays this error message:
"Word has experienced an error trying to open the file. Try these
suggestions. 1) Check the file permissions for the document or drive. 2)
Make sure there is sufficient fr... more >>
Please: Sign the Petition in order to Save VB6 code...
Posted by Massimo Conti at 3/29/2005 7:11:56 PM
Please,
Sign the Petition in order to Save VB6 code
http://classicvb.org/petition/index.asp
Thnks a lot.
Best Regards.
Massimo
... more >>
Accessing SSL email server?
Posted by André Nogueira at 3/29/2005 6:33:52 PM
Hi there guys.
I have made a small program that tells me how many new email messages I
have - kind of like Gmail Notifier, but for any email server.
But I have a question... how can I make it work with email servers that
require a SSL connection?
I looked all over the internet, but could only... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
security and VB
Posted by F C at 3/29/2005 6:18:44 PM
What VB /dotnet API or object can I use to transalte "S-1-1-0" ans
"S-1-5-11" sid well known object to their *LOCALIZED* *LOCALIZED*
*LOCALIZED* *LOCALIZED* *LOCALIZED* text.
It is "Tout le monde" et "Utilisateurs du domaine" on my computer.
I have tried ADSsid from SetAS ADS_SID_SDDL, "... more >>
How to defrag Registry In XP?
Posted by yxq at 3/29/2005 6:15:57 PM
Hi,
I dont know how to defrag and compress Registry to decrease its size, is
there the component for selling?
Thank you
... more >>
Calling a Forms.UserControl On IE
Posted by Programmer at 3/29/2005 5:41:50 PM
Hi all
Well I want to replace my Previous ActiveX Controls on an Intraner
Application With new Controls That i have Created On .NET (VB)
I have found a sample that is supported only on IE6 byt it doesn't work
the Call Of the control is like this
<object id=MyControl
classid="http:MyDLLNa... more >>
I'd like to get an event each time the cursor stops moving.
Posted by Just Me at 3/29/2005 5:14:59 PM
If I move the mouse cursor over a control and stop moving I get a MouseHover
event.
If I then move the cursor while staying within the control and then stop
moving I do not get another MouseHover event.
To get a Mousehover I must leave and reenter the control.
I'd like to get an event e... more >>
Why have a DBNull?
Posted by Bob at 3/29/2005 5:01:40 PM
I'm sure there's a good reason, I just haven't been able to think of it -
why didn't MS allow "DBNull" values to simply be a null (Nothing)?
Bob
... more >>
Databindings Question
Posted by Martin Horn at 3/29/2005 4:31:18 PM
Hi,
I want to use databinding on a property for a class that I have created, but
I can't make it work. Below is a contrived example to illustrate the
problem.
It seems that I can't databind properties that I have created, is there a
way to do this?
Thanks,
Martin.
Public Class F... more >>
How to use UML to make VB.NET classes (free)
Posted by DraguVaso at 3/29/2005 3:55:17 PM
Hi,
I know there are some tools to use UML and let it create automaticly the
classesi n Visual Studio .NET.
Are there any free software tools like this? Or can I somewhere download
good working trial-versions? What do you consider to use?
Thanks,
Pieter
... more >>
OutOfMemory exception loading ZIP or JPEG compressed TIFs from file
Posted by Tim Frawley at 3/29/2005 3:51:19 PM
I am using a method that was described as the best for avoiding memory
leaks when using MS Picture boxes. The main idea was to use a variable
to load the image from file and then assign the picture box image to
that variable like so:
Dim img as BitMap ' (have tried BitMap and Image)
img = I... more >>
Listbox Columns
Posted by aaj at 3/29/2005 3:39:15 PM
Hi all
I'm having a really stupid problem with listboxes
I have dropped a listbox on a form and I want to configure the columns
I just want a single column, but it seems that another blank one is created
by default to the right hand side
If I set the list box as width 150 and add a col... more >>
StackTraceException on program start
Posted by NetRacer at 3/29/2005 2:14:39 PM
hi all,
i'm currently building an order management software based on a mysql
database (using mysql.net-connector 1.0.4) for our company. since i'm still
at the beginning with the application, it has 4 forms and is linked to a own
custom usercontrol (a combobox like control, but without drop... more >>
VB.net Datagrid - allow updates but not additions
Posted by bhooper at 3/29/2005 2:09:03 PM
Does anyone know how I can allow updates to a datagrid while hiding the
insert row that appears as the last row in the datgrid control?
I want users to be able to update select columns for existing records, while
preventing them from inserting new records from the datagrid itself.... more >>
Outlook.Application is not defined. PIA installed and setup correctly.
Posted by tony_pez NO[at]SPAM yahoo.com at 3/29/2005 2:07:25 PM
First timer be gentle. I have this code I am trying to put into a
vb.net addin for ol2003. I get the error Outlook.Application and
Outlook.Selection is not declared. I have installed the PIA's and made
sure they are pointing to the GAC. Any ideas would be apreciated.
Imports Extensibility
... more >>
SQL-question
Posted by RTT at 3/29/2005 2:02:57 PM
i have a script that insert a variable amount of rows in a table. each row
is identified by an autonumber by SQL
how can i find out the number of the newly added rows without having to much
troubles?
... more >>
Error in implementing interface Property
Posted by larzeb at 3/29/2005 1:38:54 PM
I receive the following error from the compiler:
ScheduledInfo' must implement 'Property AddrLine1() As String' for
interface 'ICASSBatch'. Implementing property must have matching
'ReadOnly'/'WriteOnly' specifiers.
The interface:
Public Interface ICASSBatch
Property AddrLine1() A... more >>
Filtering Records
Posted by brix_zx2 at 3/29/2005 1:19:06 PM
I'm working on a program in VB.NET 2003. It will bring up a form linked to
an Access 2002 database. This form will have a dialog box open first asking
for them to input a CheckList Name. It should only show records matching
that criteria. Any ideas how I do this?... more >>
Using a variable to specify the name of a control
Posted by lgbjr at 3/29/2005 12:26:13 PM
Hi All,
I need to specify a control's name using a variable and I can't seem to get
it right.
I have several labels on a form and depending on a user's actions, a label's
text is changed. Rather than writing code for each label and each event that
can change the labels, I'm trying to do ... more >>
Datagrid cell change event? Where to find event.
Posted by Roger at 3/29/2005 11:35:51 AM
I have a datagrid and would like to know what even fires when a cell is
changed?
I want to know when the user changes a cell and moves to the next. I have
some code that needs to be done to make sure entry is valid?
Thanks,
Rog
... more >>
Cannot Get MenuItem's name[Notsolved]
Posted by Agnes at 3/29/2005 11:22:04 AM
I understand that Name is not the property of Menuitem.
I try the following web site provide by Mick
There's a MenuExtender example on my site that adds a Tag and RadioGroup
property to menuitems.
You will find source in both VB and C#
http://dotnetrix.co.uk/menus.html
I know how to fill t... more >>
VB.NET (ASP) Can't convert Dates...help!
Posted by Scott H at 3/29/2005 11:17:32 AM
I've converted string representations of Dates into DATE types alot
before in Windows Apps, I'm just doing the same now in a Web App, I'm
fairly new to ASP.NET, but the error does not make sense at all:
System.InvalidCastException: Cast from string "14:13:00 21/03/2005" to
type 'Date' is not... more >>
what in vb.net....
Posted by Supra at 3/29/2005 11:14:00 AM
in vc# :
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <==== error
occured in bold
regards... more >>
Formatting timespan objects
Posted by John Dann at 3/29/2005 11:06:15 AM
I want to report a timespan value in a textbox on a form and thought I
might be able to do eg:
txtbox.text=format(timespan,"hh:mm:ss")
but this gives an invalid cast. Is there is any short way of achieving
this or do I need to extract and assemble each time element
separately?
Thanks
JG... more >>
ComboBox needs help
Posted by shoa at 3/29/2005 11:04:27 AM
Hello all
I created a combo box with some values: "First name" and "Last name". I add
those values by using Data/Databinding/Items in the form. However, when I
run the application, the "First name" is not appeared in the form. I have to
click on the Combobox to get that value. What I want is tha... more >>
change screen resolution
Posted by Zoltan Nemenyi at 3/29/2005 10:47:05 AM
Dear NG
I have an application which is able to change the screen resolution on the
primary monitor.
But I want also to change the resolution on the secondary monitor (tv). Can
somebody give
me a tip how I can do this?
Thanks
zoltan
... more >>
Loop Interrupt
Posted by Jeremy Wood at 3/29/2005 10:46:21 AM
Hello everyone;
I'm kind of new to VB and I am currently reading "Microsoft Visual Basic
..NET Step by Step" by Michael Halvorson. It's a great book and has been
very easy to read. The last time I did anything in VB was back in 1996 when
I was in college. (Wow has it been that long...)
... more >>
Saving stream message in Save As dialog
Posted by Joseph at 3/29/2005 10:31:03 AM
I am trying to open up Save As dialog to save dynamically generated message
on the fly. Clients will specify path and type file name. Thanks.... more >>
memory stream XML and unicode problem
Posted by Richard Wilde at 3/29/2005 10:29:15 AM
Hi
I have found on the internet a way to write out an xml file direct to the
browser so as the save as box is displayed on a click of a button. All works
well apart with non unicode data. However as soon as I have unicode data I
only get an empty file (well a file with blanks or I assume spac... more >>
Use 'ME.' or not?
Posted by Bruce D at 3/29/2005 10:01:22 AM
I've just begun to write my third VB.NET program and I thought I should ask
the simple question...
Should I be using me.txtname.text or txtname.text? Most of my programs are
using the ME. prefix when referring to the objects on a form. I know it's
the same thing. I find it easier to read us... more >>
Format {0:c} yields ($1,000), but I want -$1,000
Posted by Dave at 3/29/2005 9:59:05 AM
Is there any preexisting format that has negative currency values shown with
a hyphen instead of parenthesis? Thanks,
-Dave
... more >>
how to used ADDRESSOF in vb.net
Posted by Supra at 3/29/2005 9:48:31 AM
in VC#:
private void NewForm(Form f)
{
if(ChildFormsActivate==null)
ChildFormsActivate=new EventHandler(ChildForms_Activate)
//
//
in vb.net
Private Sub NewForm(ByVal f As Form)
If (ChildFormsActivate Is Nothing) Then
... more >>
vb.net windows deployment
Posted by RustyLI via .NET 247 at 3/29/2005 9:39:54 AM
when creating a setup project how can you control what is the default folder name and path that the deployment should place the executable.
Then how do you make it create a link to that exe from either the windows start menu or windows desktop.
I have created deployment .msi files but I have no ... more >>
Inheritance Question in VB.NET
Posted by Saumitra at 3/29/2005 9:25:04 AM
Hi
I am new to VB.NET and I am trying to figure out how to exchange data
between 2 forms based on parent-child relationship between 2 forms. Form2 is
child of form1. In form1.vb, I am doing
Dim t As New Form2
t.Show()
This is really strange to me because by OOPS, a base class has no knowl... more >>
Excel ADO question
Posted by Nikolay Petrov at 3/29/2005 8:56:12 AM
I use Excel file as a data source for my Web Service.
I want to know a few things.
1. When reading from the Excel file, does it remain locked for the time of
reading the data? Must I implement some logic, to check if the file is
locked?
2. May I use SQL statements to Insert, Update and De... more >>
A way to get "Like" to use "Option Compare Text" without changing the setting for all my code?
Posted by Linda at 3/29/2005 8:51:45 AM
Hi,
Is there a way to do a "text" (rather than "binary") compareison with
the "like" operator, without changing the global "Option Compare"
setting? I don't want to risk breaking many, many lines of functional
code just to get one "like" operation to behave as I wish.
I want to check whethe... more >>
Running command/removing file
Posted by Mark at 3/29/2005 8:46:02 AM
I have a command that needs to be run on a file and then once done the file
needs to be removed. Doing this, some of the time I receive an error that
it is already being accessed. I have tried putting a sleep after the
command, and that works - not always guaranteed to work though, but I wou... more >>
Assign deployment version number to a variable
Posted by Cary at 3/29/2005 8:45:03 AM
In my project, I want to display the version number on the splash screen and
in the help section of my application. I have a variable I created called
appVersion. When I go to my deployment project properties, the Version number
is there. Is there a line of code that I can use where I can assi... more >>
customised datagrid
Posted by Sam at 3/29/2005 8:36:43 AM
Hi,
I was wondering if it's possible to replace the ugly grey box of the
datagrid's rowheaders by some kind of icons or pics. I'm talking about
datagrid in a windows form context (not webforms)
Thx
... more >>
Problems with the Masked Edit Control
Posted by Panos at 3/29/2005 8:31:03 AM
Hi all,
I can't clear a Masked edit control. I use it to input dates, so I have
defined the mask as "##/##/####". I use the the well known
meb.mask=""
meb.text="" ,
but nothing happens.
Does anybody have a clue, why these lines don' t work? I use vb.net 2002
Thank u... more >>
VB.NET http spying
Posted by skOOb33 at 3/29/2005 8:19:09 AM
I am suspicious of the websites that the people I live with are using
my computer for. Instead of buying software or downloading something
visible to other users, I am wanting to create a vb program that
"watches" what websites are visited. Since I have a background in vb,
I see this to be ea... more >>
what in vb.net....
Posted by Supra at 3/29/2005 8:09:48 AM
how od i convert into vb.net.......i can't recalled it.
in vc#:
this.MdiChildActivate+=new EventHandler(ChildForms_Activate);
how will i do in vb.net?
regards
... more >>
vb.net create button question
Posted by BrianDH at 3/29/2005 7:03:06 AM
Hi
I would ask this questiopn on the NG ASP but it would be days before anyone
might respond.
I am using vb.net code behind to create buttons to add to a web form.
After the buttons are created I get this error:
((Control '_ctl0' of type 'Button' must be placed inside a form tag with
runa... more >>
testing null value in vb
Posted by Sam at 3/29/2005 6:11:55 AM
Hi,
How can I test if one of the cells in my datagrid has a null value ? I
know how to access the content of a cell but dunno how to determine if
its null or not...
thx
... more >>
"Type" in parameter list
Posted by Art at 3/29/2005 5:47:02 AM
Hi,
Is there a way for me to vary the Type of a parameter in a method in a
class? Ideally I'd like to have a variable that I can use, such as:
Public Sub MyMethod (ByVal mParm as mType)
where mType can vary.
Art... more >>
Delete or add project to start page
Posted by Art at 3/29/2005 5:45:07 AM
Hi,
Can anyone tell me how to add or delete a project to (or from) the start page?
I already looked through messages here, and found one answer that directed
me to a Google Groups area -- I couldn't find a message there that helped.
Art... more >>
Writing E-Mail Notfications
Posted by Pete Smith at 3/29/2005 5:29:47 AM
Hi,
are there any tools, best practices how to integrate E-Mail Notfications in
software. I'm thinking about a component that creates well formated hmtl
e-mails and can be used by my app to notify the user for special events.
Thanks in advance for any hint
Pete
--
Pete Smith
... more >>
Everything Under .Net
Posted by koorb at 3/29/2005 3:03:20 AM
I am imagining a system in five years time where all the software
running on it has been built on the .Net framework.
Is that likely?... more >>
how to use CurrentRowIndex for datagrid control ?
Posted by Sam at 3/29/2005 2:01:53 AM
Hi,
I'm trying to get the value of an item in my datagrid. When I click on
a button I call the following code :
Dim selectedRow As Integer = dgEquivalents.CurrentRowIndex()
Dim test As Integer = dgEquivalents.Item(selectedRow, 0)
It works, the only issue is that dgEquivalents.CurrentRowInde... more >>
Number Formating
Posted by koumides NO[at]SPAM gmail.com at 3/29/2005 12:30:01 AM
I have to do a lot of formating on numbers, like padding with zeros,
cut some digits etc. Anybody knows of available methods in VB.NET ?
Thanks a lot,
Marios Koumides... more >>
How do I run one project?
Posted by Brett at 3/29/2005 12:08:10 AM
In a VS.NET 2003 solution, how do I run only one project rather than all?
Thanks,
Brett
... more >>
|