all groups > vb.net > may 2004
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
What does this do?Option Explicit?
Posted by ken at 5/31/2004 11:36:01 PM
hi All
What does this command dot
Option Explicit... more >>
rounding decimal place..
Posted by Ken at 5/31/2004 9:26:02 PM
HI all
I would like to round up a double number, for example, 100.689 and round up to 100.6
i know i can do it with Round function. However, it doesn't show the any decimal place if the number is 100. I would like to show the decimal places even though they are 100.00.
Thanks... more >>
SQL Database column has 2 decimals - Textbox displays 4????
Posted by Mike at 5/31/2004 7:13:04 PM
Hi All;
I have created a MSDE SQL table with a column set to money, format is
standard with 2 decimal places. Into the field I put 12345.67. When
you view the data it shows 12,345.67. When I run the form, fill the
dataset the Textbox shows 12,345.6700.
Do I need to reformat the Textbox aft... more >>
Share CDO Session Among Threads
Posted by Gary Lee at 5/31/2004 6:43:43 PM
In VB.NET using CDO, I'd like to allow multiple threads to share a single
MAPI.Session object. If I declare and instantiate sessions within each
thread, I'm OK (although this negates the efficiency I'm looking to add).
But when I declare, e.g.,
Public objSession As MAPI.Session
I can'... more >>
HttpChannel
Posted by David at 5/31/2004 6:25:19 PM
What is the namespace of HttpChannel type in VS.NET 2003?
I'm using System.Runtime.Remoting.Channels.Http, but there is error while
compiling.
Error Message:
"The type or namespace name 'http' does not exist in the class or namespace"
... more >>
XML Tables?
Posted by Able at 5/31/2004 6:25:12 PM
Dear friends
The XML format for reading from .Net is as this:
<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
</Table1>
</dataroots>
Is it possible to impment one more table, ex. Table2 in the same XML file
and if so how is the format?
Regards... more >>
RowFilter Help, Please ...
Posted by Jeff at 5/31/2004 5:19:30 PM
Hi -
For my VB.NET app, I have a SQL2K database that I use to create a dataset
with multiple data tables. I've created a dataview (dvReportsTo) of one of
the tables, SCPMaster, and I've bound a combobox control to that dataview.
I'm trying to filter the dataview based on values in a second ta... more >>
Newbie question: Windows Forms
Posted by Adriano at 5/31/2004 5:11:52 PM
hello,
i want to create a frame in a windows form and call other pages inside that
frame using main menu or buttons,
can anyone help me how to do that?
it would be great if you could send me sample project files,
thanks in advance,
Adriano
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
[ Need Info ] Complied VB.NET in Windows 98 ??
Posted by Martin at 5/31/2004 5:11:17 PM
Hi All,
Im looking forward for info whether VB.NET complied application would =
run in Windows 98 or not ? Does any one have tried to do so ??
Regards,
Martin... more >>
DirectDraw Tutorial
Posted by Tyson Ackland at 5/31/2004 4:39:13 PM
Is there a good site folks know of that leads a beginner through DirectDraw
using VB.NET?
TyBreaker
... more >>
DeleteCommand.executenonquery with ADO.NET - How do I know if a record was deleted?
Posted by Rodger Dusatko at 5/31/2004 4:32:31 PM
After entering the sql statement da.deletecommand.commandtext = "Delete from
Users where username = @username" I set the parameter to the username I wish
to delete.
This successfully deletes the user. However, even if I enter an non-existant
user, I cannot discern whether a user was deleted or... more >>
System.Activator.CreateComInstanceFrom
Posted by scorpion53061 at 5/31/2004 3:13:37 PM
Hello to all and hope everyone on holiday is enjoying themselves!!
I am studying this namespace and method. In the docs it says:
"Creates an instance of the COM object whose name is specified, using the
named assembly file and the constructor that best matches the specified
parameters."
T... more >>
Sockets Server / Sockets Client - unable to read data from the transport connection
Posted by m_doolio NO[at]SPAM hotmail.com at 5/31/2004 2:37:04 PM
I'm working on a client - server application based on the 'How to
Sockets Server and How to Sockets Client' code from the Visual Basic
..NET Resource Kit.
Since I want to be able to send 'big strings' instead of 'one liners'
I check the streams for terminators.
I'm having problems with the co... more >>
Handling Enumerations
Posted by Joe H at 5/31/2004 2:18:48 PM
Enumerations are pretty useful. But the one recurring problem I have had
with using them is the inevitably, the list of options being enumerated
grows. Then the program has to be recompiled to account for the new
options.
For cases like this where the list of options can change over time, is... more >>
Reading a form control from a text file
Posted by GeneJoe at 5/31/2004 1:46:05 PM
Shown below is code for a very simple form. It has a single button that shows a "Hello World" message. I have this code in a file named: MyForm.tx
================================
Public Class Form
Inherits System.Windows.Forms.For
Private components As System.ComponentModel.IContaine
... more >>
Problem with IndexOf
Posted by Richard L Rosenheim at 5/31/2004 1:38:43 PM
I'm having a problem with IndexOf on a large string. The string contains an
ASCII file which is about 45K. IndexOf is not finding substrings that I
know are in the string. Yes, I double-checked my typing. I'm also able to
locate the strings using a text editor. One substring is about 38K
ch... more >>
COM 1
Posted by André Almeida Maldonado at 5/31/2004 11:36:58 AM
Hey guys, I'm trying to send some data to a printer trough COM 1 but I'm not
having success. How can I do it?
Thank's...
... more >>
Making a Decision BEFORE Form Load
Posted by jcrouse at 5/31/2004 11:11:03 AM
I have a post about two below this that describes a logical decision. I would like to perform this when the app launches and before a form loads then load a form based on the returned criteria. What is the best way to do this?
Thank you,
John... more >>
Set a icon to a web application
Posted by ruca at 5/31/2004 10:57:57 AM
Hi,
I would like to set an different icon, than explorer icon, to my web
application. When we visit a web page, usually in address bar appears IE
icon before the address. What I want is to substitute that icon to another,
like happens when we visit, for example, http://www.codeproject.com .
H... more >>
String Search Woes Continue
Posted by jcouse at 5/31/2004 10:26:06 AM
I am trying to find if a string exists in a file. If it doesn’t, it should return a “-1†and I’ll make my decision based on that
Here is a sniplet of the text file
game
name mapp
description "Mappy (US)
year 198
manufacturer "Namco
history "\nMappy (c) 03/1983 Namco. \n\n- TRI... more >>
Ask about the resource file
Posted by Ray at 5/31/2004 10:23:11 AM
Hi,
I would like to ask while a resource file is added to a form. Can the
resource file be shared by other forms?
Thanks a lot,
Ray
... more >>
Message in toolbar
Posted by Sammy at 5/31/2004 9:51:03 AM
H
Using vb.net 2003 standard version how can I display basically the tooltip messages for any (and all ) controls in a status bar
What I want is to have the text displayed for a control's tooltip, show up in the status bar instead
I do not believe that vb.net 2003 standard version has the extende... more >>
deploying crystal dlls with a vb.net project
Posted by neilnewton001 NO[at]SPAM yahoo.com at 5/31/2004 9:20:16 AM
Hi everyone,
I recently wrote a vb.net app which includes some crystal reports.
The user has very little money in their budget and have been without a
working application for quite a while. This being the case I worked
with what was available: I used vb.net and crystal 8.5. The crystal
rep... more >>
Game port
Posted by jscholz NO[at]SPAM mail.com at 5/31/2004 7:42:01 AM
Hi all,
How do you read data from the game port? Specifically, I want to read
the analog values from the port. Does VB.NET have a function to do
this? Thanks for any help.
J... more >>
Show records
Posted by Joachim at 5/31/2004 5:46:01 AM
Hi,
Als a beginner, I am looking for a way to show records
My code is
Private sub Connection(
Dim odbconn_Pro As OleDbConnectio
Dim odbcomm_Pro As OleDbComman
Dim odbdare_Pro As OleDbDataReade
Dim DataFile as Strin
DataFile = "H:\Production\Prod.mdb
... more >>
Setting Special Folders
Posted by Quemasda at 5/31/2004 5:43:39 AM
Hi,
The application I'm working on should set the Special Folders (Favorites,
My Documents, ...) but I can't find the way to do it. So far, I've been able
to get the path of those Special Folders but not set them. Does anybody know
how?
Thanks in advance, Que_Mas_Da.
... more >>
Problem setting a group of radio buttons from a dataset
Posted by greg at 5/31/2004 4:46:28 AM
I'm trying to set a group of radio buttons based on the
value of a text field in a dataset. This is my code:
Dim ds As DataSet
ds = dtsVideo
Dim dt As DataTable = ds.Tables
("tblPeramItems")
Dim dr As DataRow = dt.Rows(0) 'first row in
data... more >>
Losing patience with .NET... one thing after another... .Update Method..
Posted by graham at 5/31/2004 3:33:41 AM
Hi all,
<bitching and moaning section>
I am asking for any help I can get here... I am at the end of my tether... I
don;t consider myself a genius in any way whatsoever, but I do believe I
have a logical way of thinking that has served me well during my years of
application development with v... more >>
Empty field in Access
Posted by Joachim at 5/31/2004 2:51:06 AM
Hi
I am a beginner in VB.NET, and have a problem with empty field in Access
I have transfered a worksheet in Excel to Access table. Some of the cels are empty
I use VB.NET program to acces this Access table (product.mdb)
One of the statements is to validate whether the field empty or not
My ... more >>
How to display VB.NET ActiveX Control including more than one dll in IE
Posted by mpiu NO[at]SPAM hotmail.com at 5/31/2004 2:45:26 AM
Hi,
For developing ActiveX Control hosted in IE, "classid" setting is like
that:
"<component-name>.dll#<namespace>.<usercontrol-name>".
However, if my main control includes other ActiveX Control libraries
(*.dll), nothing can be displayed with such settings. Are there any
solutions?
Rega... more >>
Hi all i am facing kproblem withe netscape
Posted by suresh chowdary at 5/31/2004 2:42:02 AM
In internet explored my Asp.Net proect is working properly. but the same
is not working in Netscape. Tell me any solution please
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
any function is equal to "Switch" in Java with VB?
Posted by ken at 5/30/2004 11:31:04 PM
any function is equal to "Switch" in Java with VB
thank heaps... more >>
DES.CreateEncryptor() Question
Posted by Tiraman at 5/30/2004 10:31:38 PM
Hi ,
can some one explain me what does it mean those 2 params that i need
to pass the des.CreateEncryptor(rgbKey as byte,rgbIV as byte)
Best Regards ,
Tiraman :-)
... more >>
Hide property in PropertyGrid
Posted by Lance at 5/30/2004 9:26:02 PM
I have a situation where I want to show a property when one object is selected in a PropertyGrid, but I want to hide that property when more than one object is selected. For example, lets say I have an object with a Name property that must be unique. If one of these objects is selected by a Proper... more >>
An interesting problem...
Posted by Michael Sutherland at 5/30/2004 9:13:54 PM
Here's an interesting problem I've come across.
I'm writing a program that essentially generates random strings (its a
simulator of the game Boggle) and sends them to a function that does a
binary search on a word list to see if that string is listed. However, at
seemingly random intervals (I'... more >>
Arrays in VB6
Posted by Bob at 5/30/2004 7:36:46 PM
Unlike VBScript, the arrays in Javascript are objects that
have methods and properties. The following example defines
an array in Javascript. How can I achieve the same in
VBScript? Can someone convert the following function
(arrayTest ()) defined in Javasctipt to its equivalent in
VBScrip... more >>
delaring and initializing "Dim a As Integer"
Posted by Peter Ignarson at 5/30/2004 1:34:13 PM
Hi, simple question
Is there a syntax (other than the one below that is invalid) that will let
me declare and initialize two variables at the same time (using VS 2003,
1.1) ?
Thank you
Pete
Dim a,b As Integer = 6 'Syntax error, invalid
... more >>
How to check if a BackgroundImage property has any image?
Posted by kjon at 5/30/2004 1:32:38 PM
Hi, I'm trying to get the BackgroundImage of a form/control and draw it
again in runtime. But if the Backgroundimage is "None", the DrawImage
command will give an error.
Is it possible to programmaticaly check the Backgroundimage property of the
form/control in runtime whether it is "None" or ha... more >>
Embedded resources and the res protocol
Posted by dan NO[at]SPAM iregren.com at 5/30/2004 1:01:44 PM
Hi,
How do I embed a picture (gif for instance) in a dll using VB.NET so
that the picture can be used in a html page with the res protocol?
I have tried adding pictures (as Embedded resources) to my class
library and then accessing them from html with
<IMG SRC="res://ResLib.dll/GIF/ResLib.t... more >>
Oracle test version
Posted by Rodger Dusatko at 5/30/2004 11:34:49 AM
Is there any way I could have a test version of Oracle to prepare myself for
a job later without having to buy Oracle?
yours truly
Rodger Dusatko
... more >>
Setting a break when a value changes
Posted by Rodger Dusatko at 5/30/2004 11:33:16 AM
In VB .NET I am having problems setting breaks. I want the break to be
independant of any single function:
for example:
err.number
or global variables
When I try to set a break with the 'Data' tab, It doesn' allow me and says
that Basic doesn't support data breakpoints.
How can I set t... more >>
Module or Code file ?
Posted by Agnes at 5/30/2004 11:24:52 AM
I want to write a program with many sub-method.
for example,
1)method :company_search(code) which return name,addresss...etc
2)method:currency(code) which return the current exchange rate....etc
..... manys
Should I write it use module ??? or in code file ??
What is the difference about it ?... more >>
Structure Assignment
Posted by Vadim Rapp at 5/30/2004 10:20:02 AM
Hello:
Is there a way to assign a structure from the result of <structure>.ToString
in one statement?
For instance, if such function existed, it might look like this:
Me.Size = OurFunction(Me.Size.Tostring)
thanks,
Vadim
... more >>
DLL Project in .Net
Posted by Grumpy Aero Guy at 5/30/2004 10:06:46 AM
The college I teach VB for just upgraded to .net from VB6 (without ANY
warning to the professors--- at least we know where we stand)
Therefore, I'm kinda scrambling to get a few rough edges ironed out.
VB6 allowed for the creation of an ActiveX DLL project.
I have been able to scrounge a V... more >>
Graphics from a "console" program
Posted by Gary at 5/30/2004 8:31:09 AM
Hi,
I would like to display a form and draw some line graphics on the form,
and do all of this from a "console" program. I would like control to
remain with the console program before, during, and after the form is
displayed (i.e. I don't want to switch to an event driven model).
Is the... more >>
How to create a dockable controlbar for Winforms in VB.Net?
Posted by Hal at 5/30/2004 8:26:03 AM
Anyone know of any reference articles to creating a dockable controlbar for WinForms using VB.Net? I am interested in building a floating window that can be docked within the main form of the application if the user chooses. I have seen an article written in C++, but I can't seem to find anything fo... more >>
How to replace unicode characters with their HTML codes.
Posted by Atara at 5/30/2004 7:23:20 AM
I have a file path that contains unicode characters.
e.g: "C:\vs2003\OutputDir???\mc_data\"
I want to translate this string to HTML with unicode characters:
e.g: "C:\vs2003\OutputDirאבג\data\"
I tried
strPath = System.Web.HttpUtility.HtmlEncode(strPath)
but it ... more >>
converting from header files to Win32API declare
Posted by Majed at 5/30/2004 4:04:19 AM
hi,
I'm trying to convert some .h files to API Declaration to use the function
and structs.
one of it is this:
NTMS_GUID CurrentLibrary; // the current library
NTMS_GUID MediaPool; // media pool that the media belongs to
NTMS_GUID Location; // actual location of the media
DWORD Location... more >>
VB.NET known bug?
Posted by graham at 5/30/2004 1:29:39 AM
Hi there,
Anyone know if this is known bug...
In the IDE I generate a dataset from a dataadaptor. with two tables in the
dataset.
The IDE shows the dataset in the project at the bottom and also shows the
..xsd file in the project explorer.
Now, I want to add a relationship between th... more >>
Do I Have to Open a Connection 3 Times?
Posted by jimb at 5/30/2004 12:41:32 AM
I'm just starting to learn asp.net. What I have is a registration form
for a message board system. Basically, the user enters in their info
and it's validated. So I have a custom validator check to make sure the
username is unique, I have another custom validator that makes sure the
email... more >>
|