all groups > vb.net > april 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
newbie help with dbGrid
Posted by spawnedengineering NO[at]SPAM yahoo.com at 4/30/2004 9:20:25 PM
Heres my prob.
using VS 6.0 sp6
acess 2000
I have a form that will list a customers info from a single table(the
customers table). I would like to use a dbGrid to list (work orders
from the work order table) all of the vehicles worked on for that
customer. Each customer has a Unique ID as ... more >>
BuiltinProperties DirectCast Fails
Posted by Mark Nethercott at 4/30/2004 7:48:26 PM
I get the following failure when trying to access the builtin properties;
An unhandled exception of type 'System.InvalidCastException' occurred in
resultsoutput.dll
Additional information: Specified cast is not valid.
In general terms the code is constructed as follows;
ModuleA
Public x... more >>
Timestamp
Posted by Richard at 4/30/2004 6:46:02 PM
How do you get the actual value of a timestamp from a SQL Server 2000 database table using VB.Net? I want to use it in the Where clause, but the value returned is "System.Byte[]". Here is my code
'Assume I've pulled these fields from table (TS is timestamp
Select EmpID, FirstName, LastName, TS Fr... more >>
Using Enum
Posted by Tiraman at 4/30/2004 6:22:09 PM
Hi ,
I have 2 Questions About Using Enum
1) i have the following Enum under my class but if i need to use it i must
use it like this
ConstantsFileSystem.CREATE_FILE
how can i use it just by the const name by doing like this CREATE_FILE
Public Enum ConstantsFileSystem
CREATE_FI... more >>
VB .NET - Help Me pls
Posted by Isilio Peluffo via .NET 247 at 4/30/2004 5:20:01 PM
(Type your message here)
Hi guys, im trying to load a swish movie in vb .net but i need to put a transparent background to the movie, some ideas????
thanks
--------------------------------
From: Isilio Peluffo
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/... more >>
Hide Start Menu
Posted by Stanley at 4/30/2004 5:04:13 PM
Is there any .NET class that provides a method to hide the Start Menu?
Or have to use Win32 API?
... more >>
How to reflect all variables for an object?
Posted by Norton at 4/30/2004 5:01:28 PM
Dear all,
I have created many objects
Currently i create a toString function, which is to list all variables value
inside this object
Somthing like
Public Class ABC
Dim sName as string = "Hello"
Dim iValue as integer = 10
Public Function ToString() as string
Dim t... more >>
Got a nagging listbox questions
Posted by bobby j at 4/30/2004 4:46:02 PM
I have tried everything I know, looked every where, and I still cannot figure out this
You see, I have a color stored in the registry and it shows up as say Color [red
and I cannot get that color out as Color.Red so that I can put it in a variable to be assigned to a label.backcolo
The registry g... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Creating a dockng toolbar for the Windows desktop
Posted by Derrick at 4/30/2004 4:33:30 PM
Hi,
I am considering the creation of a docking toolbar for the desktop (like the
Microsoft Office Toolbar that docks to the side of the desktop and hides
itself when not in use). Does anyone have any experience making one of
these using the .NET framework? I realize there is a toolbar contro... more >>
F1 Thru F12
Posted by Stephen at 4/30/2004 3:50:49 PM
Greetings All..
My boss want me to add code in a form that disables most, if not all
function keys on the keyboard.... Im at a lose on how to do it....
any help is appreciated
s
... more >>
How to create PDF files
Posted by David Schwartz at 4/30/2004 3:49:46 PM
Does anyone know how to dynamically create PDF files from a VB.NET Windows
Forms app? Are there any 3rd party tools available to do this?
Thanks!
... more >>
Invisible form appears in Alt-tab list
Posted by David Schwartz at 4/30/2004 3:43:56 PM
In my VB.Net Windows Forms app, I am loading a form, populating some
controls, and then hiding the form. Even though the form is invisible, it
still appears when you hit Alt-Tab. ShowInTaskbar is set to False for the
form. Is there any way to prevent the form from appearing in the Alt-Tab
lis... more >>
Copying files over network
Posted by jimmydean_12 NO[at]SPAM yahoo.com at 4/30/2004 3:29:23 PM
Hello,
I have a program that starts a new thread to backup files
from a computer over the network to our server. The
problem is when it is copying the files you can hardly
navigate around in windows explorer. I would like this
program to backup users files somewhat transparently. As
i... more >>
Header / Footer
Posted by ruca at 4/30/2004 3:07:30 PM
Can I add dinamicaly (in my code) a header and a footer for each time I want
to print a web page from my web application?
NOTE: The print command made for my is a click in a button that I have in my
web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's... more >>
MySQL & ByteFX (Invalid PInvoke metadata format)
Posted by Don Lopez at 4/30/2004 2:49:26 PM
I get this exception when I try to run open on the MySQLConnection
object. It goes like this:
System.TypeLoadException: Invalid PInvoke metadata format.
at System.Net.OSSOCK.gethostbyname(String host)
at System.Net.Dns.GetHostByName(String hostname)
at ByteFX.Data.Common.StreamCrea... more >>
Form_Closing + Shutting down Computer
Posted by Eddie at 4/30/2004 2:45:55 PM
Hi All,
In my application, every time the user "Close" the form, I cancel the close
and I put a NotifyIcon in the systray. Here is my code :
Private myForm_Closing(... ... ...) Handels MyBase.Closing
e.Cancel = True
End sub
My problem is : When the user try to shut Down his computer,... more >>
How to simplify .NET setup program.
Posted by cr113 NO[at]SPAM hotmail.com at 4/30/2004 2:20:15 PM
To prepare a PC for my .NET apps I have to run mdac_typ.exe,
dotnetfx.exe, and .NET setup programs for every application. Since I
have around 8 apps this adds up to 10 installs for every pc.
Is there an easier way to do this? In VB6 I was able to run 1 setup
program and that covered everything... more >>
Intellisense gone fubar again, this time also getting "Unknown Undo/Redo Error"!
Posted by Robin Tucker at 4/30/2004 2:07:39 PM
Ok now my intellisense has gone t's-up again - I also cannot use undo/redo
in the editor. I deleted the NCB file in case that was corrupt but no
poonanas, its still fubar (how many explitives can I use without actually
swearing!?).
My next "solution" is to reinstall Visual Studio 2003 ;)
... more >>
dde, ole?
Posted by Rob Teegarden at 4/30/2004 2:06:05 PM
My vb.net app opens images, when I double click on an image (associated with my app) it opens because I read the command line parameters and open it. That all works fine
Now if I double click another image in explorer, it opens a second instance of my application. I don't want that, I want it to... more >>
Thread Calls DLL, DLL Loops Infin, Application Stuck
Posted by groups NO[at]SPAM c-c.d2g.com at 4/30/2004 2:04:20 PM
I have a problem with threading in vb.net, it seems if a dll freezes
or falls into an infinite loop, my multithreaded program starts
allocating more threads because it cant use the frozen thread
for example:
declare function testit lib "test.dll" (somearg as integer) as integer
dim thdTest ... more >>
Replacement for StrReverse Function
Posted by John Cobb at 4/30/2004 1:41:32 PM
I've removed the Microsoft.VisualBasic import from my VB.Net project and am
in the process of replacing the vb6 compatible calls with native .Net i.e.
system.datetime.now instead of Now, variable Is Nothing instead of
IsNothing(variable) etc. I cannot find a native .Net replacement for the
Str... more >>
Use Interfaces to Hook up Event Handlers
Posted by Charles Law at 4/30/2004 1:37:18 PM
I have a class, which implements an interface. Let's say, that the interface
looks something like
Public Interface IEventSinks
Sub ValueChanged(sender As Object, e As ValueChangedEventArgs)
Sub StateUpdated(sender As Object, e As StateUpdatedEventArgs)
End Interface
In practice, th... more >>
About Threads in VB.NET
Posted by User at 4/30/2004 1:33:06 PM
Hi,
Why do I get this message :
"The thread '3201' (0x5e8) has exited with code 0 (0x0)." But my
application has not exited yet. This message appear after I created my
thread.
Thank you!
... more >>
VB.NET Code for creating a scheduled task (.job)
Posted by Max at 4/30/2004 1:16:58 PM
I'm writing a program that needs to be able to create custom .job files
and add them to the scheduled tasks folder. What I'd like to know is,
what is the format of a .job file and how do I go about adding in all
the data so that the task could run correctly?
If that is something not so easy... more >>
How to set datagrid's datasource as arrylist
Posted by ddt at 4/30/2004 1:06:06 PM
Hi
I have a arryList and want display it with datagrid, can anybody tell me how to set the datasource and datamember
Thanks in advance
... more >>
WNetGetUser - what is the syntax in vb.net?
Posted by nevh2001 NO[at]SPAM aol.com at 4/30/2004 12:25:42 PM
Hi all,
I'm trying to get the network user by calling the WNetGetUser in vb.net, what
is the syntax?
thanks
Nev ... more >>
Re: Copying Files/folders between two machines
Posted by Sasidhar at 4/30/2004 12:16:06 PM
Hi
I have a question
I have an application which shows me the folders in two treeview (One tree for each machine)
My problem is that when i Drag and drop from one tree to another. I get an error
"can not copy files between volumes using MOVE
Am using move command to do this
CAn you tell me... more >>
DoEvents not working
Posted by P. Prosper at 4/30/2004 12:08:32 PM
Hello,
Could someone give me a hint why my CancelPrint Logic won't work despite the
DoEvents ?
in form lvele declaration I have
Public Shared CancelPrint As Boolean
'Printing Logic
Do While rsAccount.EOF = False And CancelPrint = False
Application.DoEvents()
S... more >>
Sql connection opening two connections
Posted by Christopher at 4/30/2004 11:46:06 AM
I have a question about Sql. When I run a simple open statement for a SQL database, it opens up two connections sometimes, and other times it opens up one connection. Does anyone know why this happens. Below is my source code where this is occuring. You will have to change the connection string, esp... more >>
Arrow Keys Do Not Move controls
Posted by AndyG at 4/30/2004 11:21:03 AM
Hey everyone. I just reinstalled my VS.Net and now for some reason, when i am in design mode and i try to move a control, it does not move the control. It ends up moving the scrollbar up or down as if it were the internet and not the control
Is there something in the options for this? or is it a ... more >>
Disable all text boxes on form at once
Posted by Brian Henry at 4/30/2004 11:14:34 AM
how would you disable all text boxes on a form at once/
I thought
dim tx as textbox
for each tx in me.controls
tx.enabled = false
next
but that crashes, what do you guys suggest? thanks
... more >>
Vertical text
Posted by Ken Hunt at 4/30/2004 11:13:48 AM
I know how to draw text vertically. My problem is the
StringFormatFlags.DirectionVertical command rotates the text 90 degrees
clockwise. I want it rotated 90 degrees counter-clockwise (I'm making a
y-axis label for a chart). How do you do that? Can you do that??
Ken
... more >>
Got it !
Posted by raghu NO[at]SPAM detel.com at 4/30/2004 11:00:10 AM
Dim PC As New PerformanceCounter("Process", "% Processor Time", "buggyprocess")
Dim CPUUsage As Integer = CInt(PC.NextValue)
Thanks for reading..eh!... more >>
print without cristal reports
Posted by bafidi at 4/30/2004 10:51:05 AM
i want links to read where it teachs me to print without cristal reports
please help... more >>
Focus to somewhere from treeview1
Posted by bafidi at 4/30/2004 10:46:04 AM
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelec
txtName.Focu
end su
this code doesnt wor
i want to focus to txtname but i cant
is there any code for doing tha
... more >>
I have a DataRow, I need to get the RowIndex...
Posted by gary59 NO[at]SPAM chartermi.net at 4/30/2004 10:36:25 AM
Using FindRows I can get the array of DataRows that match my search
criteria. However I want to find out what rows these represent in the
overall DataTable. FindRows acts like a filter, but in my case, the
rows that are near the found rows (before or after) are significant to
the search. For exa... more >>
Start Application with Hidden Form
Posted by Eddie at 4/30/2004 10:30:57 AM
Hi All,
How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...
(Like MSN Messenger)
Thx for your help !
Eddie
... more >>
Sub Main
Posted by David Schwartz at 4/30/2004 10:17:52 AM
In my Windows Forms app, I tried using a Sub Main as my startup object. The
problem I found is that as soon as the End Sub is reached, the app
terminates (even if I showed a form during the sub). Has anyone else seen
this? How can this be avoided, other than by using a form as the startup
obj... more >>
screen resolution
Posted by Chen at 4/30/2004 10:06:03 AM
I want to know the screen resolution before launch my VB .NET windows form so the form can fit the screen nicely. Is that possible? Thanks.... more >>
Migration tool does not migrate FPSE user permissions on IIS 6.0with UNC share
Posted by Amol Shambharker at 4/30/2004 9:16:01 AM
Hello Everyone,
I have been working on setting up a windows 2003 machine with IIS 6.0.The web server has the web directory on a UNC share on a windows 2003 server.I want to migrate websites from a windows 2000 machine to this one using the migration tool.The problem with doing this is the migration... more >>
Process CPU Usage
Posted by raghu NO[at]SPAM detel.com at 4/30/2004 7:57:59 AM
I am able to find out the process names by the code below but am
clueless how to find out the CPU Usage levels of hte process at any
given time.
Any help??
Dim myProcesses() As Process = Process.GetProcesses
Dim myProcess As Process
For Each myProcess In myProcesses
If (myProcess.Process... more >>
MDAC 2.8 Issues
Posted by GG at 4/30/2004 7:55:41 AM
VB.Net Standard 2003, Win2k Pro w/all patches & updates.
My dumbass installed MDAC 2.8. Now I'm getting the following errors when I
try to build my solution....
Unable to find dependency 'INTEROP.ADODB' (Signature='(null)'
Version='2.8.0.0') of assembly 'Interop.JRO.dll'
Unable to find depe... more >>
dynamically select ComboBox Entry
Posted by Stefan Richter at 4/30/2004 7:23:59 AM
How can I dynamically select a ComboBox Entry?
Could you please provide some sample code?
Thanks in advance!!!
Stefan
... more >>
Possible to retrieve events by a control in webbrowsercontrol?
Posted by Tobias Winter at 4/30/2004 5:41:05 AM
Hi
I want to know how I can retrieve the 'onchange'-Event of an HTML-Input-Element in my vb.net-code? I have access to the documentproperty (DOM) of the Webbrowsercontrol
Thx
Tobias... more >>
How to get user's local date format
Posted by Li Pang at 4/30/2004 5:01:04 AM
User can changes his/her local date setting, i.e., "M/d/yyyy", "dd/MMM/yyyy", .... etc. which interprets the date (string type) in the different way. for example "02/05/2004" can be the second of May or the fifth of Februry. So, it's neccessary to get the local date setting before display this date.... more >>
How to programatically format Excel cells
Posted by Li Pang at 4/30/2004 4:36:01 AM
I want to get a quick way to format a column in an Excel sheet (as date in "M/d/yyyy"). Any body has sample codes
Thanks in advance... more >>
Help WebBrowser
Posted by cos75 at 4/30/2004 3:46:15 AM
I have a Module.vb with sub main e un Form1.vb with a
WebBrowser inside.
I would load a file in a webbrowser but if I write in sub
main:
Dim form As New Form1
Dim AxWebBrowser1 As New AxSHDocVw.AxWebBrowser
AxWebBrowser1.Navigate("C:\Report dei controlli.html")
there is an error
Why?... more >>
App.Path?
Posted by Doo-Dah Man at 4/30/2004 3:08:06 AM
What has replaced this method?... more >>
System namespace.
Posted by jeffo at 4/30/2004 1:11:06 AM
Hello everyone
I'm looking at an example in the MSDN library and it says that this code requires a reference to the system namesppace. What does this mean?
Thanks in advance.... more >>
Reboot the computer
Posted by Matt at 4/30/2004 12:46:03 AM
Hi
I have created a program to change the default gateway, however i have need to reboot the computer
i suspect it is something to do with API but i have no idea what to do
thank
Matt... more >>
|