all groups > vb.net > june 2006 > threads for wednesday june 14
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
How to force upper case in a DataGridView column?
Posted by bob NO[at]SPAM datasync.com at 6/14/2006 11:42:41 PM
Now this ought to be a simple matter. But nothing's simple in the Net
world, I'm finding.
In vb6 you could use "!" to force text to upper case in the format
function. I've searched the vb.net help system and can't find any help
on formatting text. There's plenty of help formatting numbers, dat... more >>
Deployment of Framework from setup project
Posted by sudhaoncyberworld NO[at]SPAM gmail.com at 6/14/2006 10:42:49 PM
Hi all
I am using VS2005, How can I deploy the .Net Framework from my setup
project?
In the bootstrapper setup program we have below 3 options
1.Download prerequisites from the component vendor's web site
2.Download prerequisites from the same location as my application
3.Download prereq... more >>
Dealing with NULL values in Integer fields
Posted by BobRoyAce at 6/14/2006 10:08:17 PM
Let's say I have a table called Users which has a field DeptID which is
an int. I also have a User class which has a method for getting the
data for a particular user (i.e. User with specified ID) and which has
a field that corresponds to the DeptID field and it is called _DeptID
and is an Integ... more >>
changing the date format in vb.net
Posted by andreas at 6/14/2006 8:22:06 PM
When I copy a vb.net project using date formats from one PC with a windows
date format f.e. dd/mm/yyyy to another PC having a format yy/mm/dd then I
get errors.
How can I change for a while in the project the date format in vb.code (
not in Windows) and how can I find out which date format the ... more >>
From Delphi to VB
Posted by Henry at 6/14/2006 7:52:29 PM
Can anybody assist to translate this for me, just moving over from delphi
function IntToIp(Address: LongWord): string;
begin
Result := Format('%d.%d.%d.%d', [
Address shr 24 and $ff,
Address shr 16 and $ff,
Address shr 8 and $ff,
Address shr 0 and $ff]);
end;
cheers
... more >>
Mulples threads and impersonation
Posted by David Cablalero at 6/14/2006 7:46:36 PM
I have a windows service which every night checks a SQL Server database for
some data and business rules. The application can access different DBs with
the same structure, to tell the service which database to check I created
local users and assigned each of them a different default DB in SQL ... more >>
identity /autonumber drives me nuts
Posted by Stefan at 6/14/2006 6:06:14 PM
Hello,
vb.net /MSDE question
I have a form to add a new record.When Save buttton is pushed,the
record is saved to the database,but i don't know how to
get the new id back in my dataset (instead of -1)
the rowupdated event more specific :
e.row(... more >>
What's the Best Startup Scenario for Unattended Server Execution?
Posted by steveeisen NO[at]SPAM yahoo.com at 6/14/2006 4:44:35 PM
I'm a long-time VB6 programmer in a shop that is mostly moving to VB
..NET 2005. And I'm confused about coding the start of solutions for
unattended operations.
Much of what I write is old-time batch. Such programs are started from
a scheduler and run on a server, cycling through a mass of d... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Complementary colors?
Posted by R. MacDonald at 6/14/2006 4:40:53 PM
Hello, Group,
If drawing on a control, it would be desirable to select a colour that
significantly differs from the control's background colour. Is there a
standard (or preferred) way to programmatically select a complementary
color at run time?
Thanks in advance for any suggestions.
... more >>
How to create a PDF file from CrystalReport in .NET 2.0
Posted by pareptrc at 6/14/2006 3:46:14 PM
Dear all,
I want to write a pdf file from crystal report in my web application.
Here is my proc:
Private Sub CreatePDFReport(ByVal KeyReference As String)
Dim objReport As New ReportDocument()
Dim diskOpts As New DiskFileDestinationOptions()
Dim mReportParamete... more >>
Calling a batch file from vb.net with parameters
Posted by eric.goforth NO[at]SPAM gmail.com at 6/14/2006 3:19:01 PM
Hello,
I have a simple batch file that I'm trying to call from a VB.NET
application:
@ECHO OFF
IF (%1)==() GOTO END
DIR %1 > MYDIR.TXT
:END
@ECHO ON
In VB.NET I can call the batch file without the sMYDir parameter:
System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirecto... more >>
Dll fails to register
Posted by Chubbly Geezer at 6/14/2006 2:49:46 PM
Hi
I've created a couple of new dll's and bundled them up into an *.msi file.
When I run the install I get the message that 'c:\program files\common
files\crystal decisions\2.0\bin\sacommoncontrols.dll fails to register'.
I've tried adding this to my setup project and it prompts me to add... more >>
Datasets - use 1 or many?
Posted by Ryan at 6/14/2006 2:42:11 PM
I'm learning when it comes to Datasets. Should I just have a single dataset
to handle my entire application data or should I use multiple - a dataset
for each function or form within my application? Is the data actually
written from and queried to the dataset only when needed per a table
a... more >>
mdi childform wont resize - stretch when res is 800x600 ?? vb2005
Posted by Rich at 6/14/2006 2:41:02 PM
Hello,
I have a child form in a parent MDI form. The childform is being shrunk and
cannot be resized when screen resolution is 800x600. The end user who uses
my app cannot see stuff on the screen too well if the resolution is smaller
than 800x600 (why did it have to be my app?) Yes, I k... more >>
Multi colored listbox
Posted by Domac at 6/14/2006 2:37:57 PM
Hi,
Can I change color for each row in listbox???
Thanx!
... more >>
Referencing Function Arguments
Posted by Brian Tkatch at 6/14/2006 1:50:41 PM
Is there a way to reference an argument to a function without using its
name?
Something like:
Public Function MyFunc(ByVal Arg1 As String, ByVal Arg2 As String) As
String
MsgBox(MyFunc.Arguments(1).Value)
MsgBox(MyFunc.Arguments(2).Value)
End Function
B.
... more >>
How to override only Get or only Set?
Posted by R. MacDonald at 6/14/2006 1:44:42 PM
Hello, Group,
I have been curious about a statement I see occasionally in the VB
(v2003) help. Sometimes the information about a property will indicate
that it is overridable, and I have been making use of this. Sometimes
there is also a statement such as:
"You are not required to over... more >>
Problem with Insert data in sql
Posted by Serafin Caballero at 6/14/2006 12:44:02 PM
I need, to introduce data to SQL, but a field has one comile simple in the
middle, since I make to send that chain to ejecutarce
... more >>
Convert Access data to XML
Posted by Parasyke at 6/14/2006 12:25:24 PM
Thanks in advance. I'm new to XML. I need to convert an existing Access
table into XML which will allow me on a form to read the table into
XML, edit, then reconvert it back to the Access table. I have
successfully added the Northwind database to my data sources in Visual
Studio 2003 (Standard E... more >>
error in the update
Posted by Jose at 6/14/2006 12:03:56 PM
Hello. I have this error when i was an update in a table. It's occurs when
modify but when is a new record update withouts problems.
"La generación SQL dinámica para UpdateCommand no es compatible con
SelectCommand, que no devuelve ninguna información sobre columnas clave."
Please how resol... more >>
Assigning the result of a '/' division to an integer type causes rounding
Posted by Mike S at 6/14/2006 11:33:52 AM
Does anyone know the logic behind why in VB.NET the result of a
floating-point division ('/') is -rounded- on being converted to an
integer type, such as with statements like
Dim x As Integer = 2/3 'after assignment, x is 1, whereas a sane person
would say it should be 0
Does Microsoft have... more >>
Window message a com object dialog
Posted by nt8jbwu02 NO[at]SPAM sneakemail.com at 6/14/2006 10:52:54 AM
I have some vb code which calls a com object. The com object displays
a dialog for the user
and the user then presses the OK button to dismiss the dialog and the
code continues and
returns control to me. I now have to change the code so that it work
autonomous.
The only way I can think of... more >>
last ditch attempt to try and get this working
Posted by Peter Newman at 6/14/2006 10:44:02 AM
Im still struggling to get this executing a stored proc working .. im
running vb.net (2003) and SQL 2005.. the story thus far is with a lot of
help and a prevailing wind i have come up with the following
( CON_BOSSCONNECTION is already connected )
Dim InputString() As String
... more >>
Streamreader doesn't read the line properly
Posted by sweetpotatop NO[at]SPAM yahoo.com at 6/14/2006 8:55:26 AM
SGVsbG8sCgpJIGhhdmUgYSB0eHQgZmlsZSB3aGljaCBoYXMgYSBmZXcgbGluZXMgb2Ygc3BlY2lh
bCBjaGFyYWN0ZXJzOgoKVGhpcyBpcyBBIGxpbmUgZnJvbSB0aGUgdGV4dCBmaWxlOgoKpNmms4ct
4cWn0P6uztmPoanMxPCJ5Pvxt+jj+/PCyo2NrIeKnIaBo9zG3NGljsb+htPWwYDApMPemObCstDF
r+rBv/Yn97fbo6iZ/Ii+qfexkOuq0LGtJ7HksdGBrIj1zyDw/I6l/IrZJywsmbGPr9... more >>
PrintToPrinter command does not work on the web server?
Posted by Derek at 6/14/2006 8:51:02 AM
I am having problems with the PrintToPrinter command. It works fine in the
development environment but when I try using this on the web server it does
not work.
I am having problems debuging this because I get an error when my code hits
the msgbox command as well "Showing a modal dialog box... more >>
click event not firing
Posted by guy at 6/14/2006 8:18:02 AM
ASP.NET 2
i have 3 virtually identical pages, each of which has a button.
on one page only the click event for the button no longer fires.
i have added another button, and also an image button, but their click
events do not fire either. the properties of the working and non-working
buttons ... more >>
WithEvents code in module cannot change textbox on main form
Posted by JoelH NO[at]SPAM GlobalF.com at 6/14/2006 7:57:56 AM
This is really weird...
I'm using Visual Basic 2005 Express
I have a form - Form1 - with a control called txtStatusBox
I have a module attached to the solution for storing some other code.
This links to an Outlook MAPI folder (variable ContItems), that waits
for new items to arrive.
When a n... more >>
Reading XML file getting error
Posted by Eroc at 6/14/2006 7:23:42 AM
I'm new to XML files so I'm kinda lost here. I found some example code
on reading an XML file.
My objective is simple. Read the whole XML file into memory.
Here is part of my code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Clic... more >>
where shoule store the questions and answers
Posted by Sukh at 6/14/2006 5:39:04 AM
I have to design a "Online Test Application" and application is going
to display question and answers.All the questons are objective type so
there is four answer for each question.
My Question is where I shuld store the questions and answers. and how
application can pick randomly question. right... more >>
Undefined function 'InStrRev' in expression.
Posted by alanwo NO[at]SPAM gmail.com at 6/14/2006 5:09:22 AM
Hi Experts,
Connected to Access MDB file using ADO.net OLEDB, I have a SQL to get
file extension from file name which is stored as field.
SELECT Right(FileName, Len(FileName) - InStrRev(FileName, '.')) FROM
Files
This query work in MS ACCESS enivronment but not VB.net program
connecting to... more >>
Click and Double click events are not fired in listview component in VB.NET
Posted by sethuganesh NO[at]SPAM gmail.com at 6/14/2006 5:02:10 AM
hi,
i have created a sample window aplication in VB.NET.placed a
listview component in the form ,written click and double click event
for list view.But the events are not fired.is there any property to be
set for click event.
Thanks,
Ganesh
... more >>
Is this Possible ?
Posted by Peter Newman at 6/14/2006 3:53:02 AM
I would like to attempt to create a dynamic form. The scenerio is when a user
logs onto the system, it will get a list of 'Areas' in the application that
the user has permission to enter. I want to dynamicly add buttons on the
form ( in two coloums 8 to a coloum ) and have an 'click' event.... more >>
Still Having SQL Stored Proc probs
Posted by Peter Newman at 6/14/2006 3:36:02 AM
ok this is getting far to technical for me now .. lol
thank you all for the help yesterday, however im still stumbling on one bit
... heres my code so far
Dim InputString() As String
Dim ReturnValue As Integer
InputString = Split(InputParm, ";")
' set... more >>
Transparent Form And Visible Line Drawn.
Posted by Lucile at 6/14/2006 1:56:53 AM
Hi All,
I am trying to obtain some sort of a "Model" based on horizontal &
vertical lines (like a frame) drawn on a form or on a PictureBox. For
frames configuration purposes, I created a white background image; and
that works fine. But the "Model" will be used to cut off pieces of a
given im... more >>
The big Debate on DoEvents
Posted by Dave at 6/14/2006 1:21:14 AM
Ok All,
I have a program that receives information from the serial port.
Occasionally this information requires me to raise an event and update
a progressbar telling me how much of the information I have received.
My problem lies there. When i update the progressbar, I need to update
the dis... more >>
Changing datagridview cell borders at runtime
Posted by steve at 6/14/2006 12:00:00 AM
Hi All
I would like to be able to change the cell borders on certain cells to none
at runtime to make a group of cells appear to be merged
I have tried the following in the cellformatting event..., to no avail
Any ideas
Regards
Steve
If dgv1.Rows(e.RowIndex).Cells(e.ColumnIndex).Valu... more >>
How can I get Windows user, password and domain?
Posted by Marc Solé at 6/14/2006 12:00:00 AM
Hello all,
I have a web application that runs in a server and makes a Windows user
validation to loggin. My question is, how can I get that loggin user,
password and domanin to use it in my application?
Thanks
Marc
... more >>
|