all groups > vb.net > february 2007
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
How can I capture input from another program
Posted by erickwan88 NO[at]SPAM yahoo.com.hk at 2/28/2007 11:54:38 PM
I want to capture the input from a writing pad and apply in vb2005 but
I don't know any programming codes about it.
The writing pad is connected by a USB port.
Before I run the writing pad program, it can be a mouse and move
around
double click = normal one click
click twice = normal doubl... more >>
Counting the lines of text, but upwards...
Posted by peraklo NO[at]SPAM gmail.com at 2/28/2007 11:42:43 PM
Hello,
there is another problem i am facing. i have a text file which is
about 15000 lines big. i have to cut the last 27 lines from that file
and create a new text file that contans those 27 lines. and after that
save both of those files... since that is a big block of text (15000
lines) i t... more >>
How to set value of SecureString?
Posted by Dean Slindee at 2/28/2007 9:26:09 PM
How do you set the value of a Security.SecureString?
Dim strSecure As New Security.SecureString
strSecure = CType("Friday", Security.SecureString)
... more >>
datetime picker problems
Posted by Michel Posseth [MCP] at 2/28/2007 7:13:03 PM
Hello we have encountered the following problems with the date time picker
control
A : datetime picker control gives focus to last entered field when moving
back and forward with focus how do we reset this to the first field ?
B : datetime picker in DD-MM-YYYY default format ( europe... more >>
Calling C# DLL from VB.NET
Posted by tim8w via DotNetMonster.com at 2/28/2007 6:06:19 PM
I'm trying to setup a SelectionChangeHandler for a call to a DLL written in
C#. In the C# DLL, the public declaration is as follows:
public event SelectionChangedHandler SelectionChanged;
To call this from C# I do the following:
ofdPicture.SelectionChanged += new ... more >>
Dumb Question
Posted by Robert Dufour at 2/28/2007 5:58:57 PM
How do you read all the data from an enhanced metafile and put it in a
memory stream?
Myfile.emf is part of my solution but I can't get the trick to read all of
it in a stream.
Thanks for any help,
Bob
... more >>
problem with changing color when logged
Posted by Bjorn at 2/28/2007 5:45:12 PM
Hi,.
i try to change the color of the main menu when the visitor of the site is
logged.
When not logged, it must be red, when logged, it must be green.
I start in the Master¨Page with putting the link to the red CSS file to
Visible and to the green CSS file to False..
In code-behind, i tes... more >>
Where is Sub New
Posted by active at 2/28/2007 3:57:20 PM
I have a couple of projects in the VS2005 format using Partial Class.
I can't find where the code for sub New is stored.
Can you tell me where it is?
thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Serialize global variables
Posted by Monty at 2/28/2007 3:21:36 PM
Hello,
I have a settings class that looks like this:
Imports System.Xml.Serialization
<Serializable()> _
Public Class MySettings
<XmlAttributeAttribute("ItemCategory")> _
Public Shared ItemCategory As Integer
<XmlAttributeAttribute("DefaultItemCategoryID")> _
Public Shared DefaultIt... more >>
Simple password protect help
Posted by backwards15 NO[at]SPAM gmail.com at 2/28/2007 2:03:14 PM
Hi all,
I'm just creating a simple compact dot net 1.1 app to execute warm/
cold boot commands. Very simple app that just calls Win32API to run
the device reset.
However like all applications this is open for abuse and missuse from
end users. I was wondering if there was an easy way to have... more >>
Creating and writing to a TIF file, how?
Posted by Robert Dufour at 2/28/2007 12:43:14 PM
I need to create a tif file and write some simple text to it, about 4 or 5
lines, Just some thing like
"Hello this is mycompany"
"We will make a delivery between tomorrow 10 AM and tomorrow 10 PM"
I just want this to be in a fairly large font and centered, say in 14 point
Arial.
I've been ... more >>
resourses release problem
Posted by touf at 2/28/2007 12:09:44 PM
Hi,
I've an application (VB.NET version 2002, ms-access 2002) composed of an MDI
parent (menus) and some MDI childs.
When the DB start to be important (100 MB) i've started having some memory
problems.
I noticed (in task manager) that when I open an MDI child form, and I close
it the memo... more >>
Parameters of a printer
Posted by Patrick at 2/28/2007 11:03:33 AM
Hi,
Is it possible to change the parameters of a printer with VB ?
My printer can print on both sides and I would like to change the parameters
to print on both sides according to criteria but all automatically.
Thank you for your assistance.
--
Patrick... more >>
If statment and between range in the form text control
Posted by vsteshenko NO[at]SPAM dentsply.com at 2/28/2007 10:50:25 AM
Hello,
This is my first post so I hope I'm doing this correctly. I am
currently working on creating an order form for sales associates at my
work to be used at conventions. I have a form with a subform. On the
main form, there is a text box that displays the sum of total orders
entered in t... more >>
VB 2005 w/ 2.0 framework
Posted by Darin at 2/28/2007 10:40:04 AM
I have upgraded our application from .NET 1.1 to .NET 2.0, all works
fine from my local machine.
But, when I put the program on the server and try to run it from the
server (via a mapped drive), I receive:
Menu.exe has encountered a problem and neds to close. We are sorry for
the inconvenie... more >>
Need Help On Restarting Threads
Posted by pbd22 at 2/28/2007 9:58:03 AM
Hi.
I am getting the error: "Thread is running or terminated. It cannot
restart." It is happening inside a file upload loop where
a thread is created for each file (reporting bytes). After the first
file is uploaded, the error is thrown at workThread.Start().
I am new to threading and would... more >>
Trying to create a range dynamically
Posted by Tom O'Brien at 2/28/2007 8:55:02 AM
hello,
This is a basic questions... i have just started using vb....
I want to figure out how to create a range dynamically.
Say I have some data in a variable number of columns, in this example
3 - A, B, & C
Eg.
A B C
1
2
3 2 2 2
4 3 3 3
5 ... more >>
SecurityException was Unhandled
Posted by jtnpham NO[at]SPAM gmail.com at 2/28/2007 7:08:32 AM
This is code I created to add a record where the user inputs the new
text in textboxes:
Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnAdd.Click
City = txtCity.Text
Country = txtCountry.Text
p2005 = txt2005.Text
p2... more >>
Use vb2005 to detect the pen driver
Posted by erickwan88 NO[at]SPAM yahoo.com.hk at 2/28/2007 6:45:29 AM
I am doing a final year project for my school and is going to provide
for an organization, so I am asking for some help on here.
Indeed, I have no idea on how to get the input from my pen driver and
use on vb2005 as when I activate the pen driver, it will run its own
program itself and when I ... more >>
VB.NET app on Vista w/ 1.1 Framework
Posted by Darin at 2/28/2007 6:44:09 AM
We have an application at over 100 different sites that work great on
XP, 2000, Me, all w/ the 1.1 framework. The application is installed on
the server and the clients map to the server's drive and run the
programs from there. We do have to change the .NET framework security
settings so local i... more >>
Closing a window opened in a frame
Posted by Garg at 2/28/2007 6:31:03 AM
Hi,
I am facing a problem while trying to close a window that I've opened
in a frame.
I am using javascript to close my current popup window. I have written
the following line of code on click of OK button event.
Response.Write("<script> window.close();</script>")
Now the problem is sin... more >>
Synclock in IIS Hosted Remoting - Single Threading Function Call?
Posted by Spam Catcher at 2/28/2007 4:03:43 AM
Hi all,
I'm hosting a remoting service in IIS. I have a function which I only want
one concurrent access at a time. Will this prevent multiple users from
accessing the function at a paritcular time?
'Empty object used for sync locking purposes
Private Shared MySyncLockObject as new Object... more >>
Visual basic express, read and update Xml file
Posted by fenouillet.et NO[at]SPAM laposte.net at 2/28/2007 12:00:00 AM
Hi,
I'm steel trying to read and update my XML file with Visual Basic
Express but i am unable to find the right way to read my xml file and
update it if neccessary...
Here is my problem : evry day, i store the number of children in my
classroom in my XML file. For exemple, on monday, my app... more >>
Q: Parent Child Update Problem
Posted by G .Net at 2/28/2007 12:00:00 AM
Hi Everybody
I was wondering if anybody could help me with something that has been
bothering me for some time. Basically, it is a problem I encountered some
time ago with DataSets. I found a solution (which I will refer to later) but
I have a gut feeling that there must be an easier way to ... more >>
VB.net courses material
Posted by touf at 2/27/2007 11:16:13 PM
Hi,
I'm looking for courses about VB.NET et C#, I need a structured course
defined by hours and containing all materiel (presentations, labs)
Do you know a web site or a person who sell this kind of courses (or give
them for free !! why not!!)
I like to give courses, but I don't have time to ... more >>
can one stop/start and drive particular events in the printer spooler?
Posted by Joe at 2/27/2007 9:03:38 PM
I am printing bunch of stuff on a printer through my print vb8 app,
but i would like to stop (pause) one in order to print the others
before (just we print lots of stuff and want to keep them on the
printer in the order).
Does anyone ever tried and is there any way to control particular
event... more >>
Problem with "Publish"
Posted by Rajesh Soni at 2/27/2007 7:22:01 PM
Hello!
I'm trying to publish my application, but when i try to install it at the
end-user's computer, i don't know where it places the EXE, it appears in the
start --> programs (executed perfectly!)... But i want to define a folder
where the EXE should be placed at the end-user's computer.
... more >>
Exec a stor.proc. that includes a query to a linked Access db
Posted by Daniel at 2/27/2007 7:13:12 PM
I have a stored procedure in SQL Server 2005 Express. It includes a
distributed query that pulls from a table in a local SQL Server
database, and combines this with some data in a remote Access
database. I have that Access db referenced in SQL Server Express as a
linked server, and have had no t... more >>
MI5 Persecution: Troubling Censorship Issues 20/8/95 (4738)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 6:55:23 PM
Fred Read (postmaster@foxhouse.demon.co.uk) wrote:
: He posts this drivel every week or so to a number of groups that
: I subscribe to and nothing seems to stop him. *ALL* of his posts
: are off topic and unwelcome to the groups he posts to.
: We have complained about him to his postmaster ... more >>
Immediate Termination of a BackgroundWorker Thread
Posted by redear at 2/27/2007 6:37:52 PM
Is there a way to immediately terminate a BackgroundWorker thread? My
problem is that the BackgroundWorker starts with a call to
My.Computer.FileSystem.GetFiles that can run for a very long time if
it is pointing to a directory tree with many files. If the user
requests cancellation during this ... more >>
Problems with DataGridViewComboBox
Posted by tim8w via DotNetMonster.com at 2/27/2007 6:37:13 PM
I am using a DataGridViewComboBox in a DataGridView. When a user selects a
radio button, I would like to clear all the items in the DataGridViewComboBox
and repopulate with new values. I do this as follows:
[CODE] Dim iIndex As Integer
Dim dgcb As DataGridViewComboBoxCell
... more >>
Custom form border
Posted by ljlevend2 at 2/27/2007 6:37:05 PM
I want to create a custom form border. By thought was to simply override the
DisplayRectangle property in order to control the border width and then draw
the border during the OnPaint event. The problem with this technique is that
controls that are outside of the ClientRectangle of the form ... more >>
UI design/flow question
Posted by Ronald S. Cook at 2/27/2007 6:02:06 PM
We're designing a Windows application. On a given form (let's say edit
customer), there would be a list of all the (let's say cars) that the
customer owns. We want the user to be able to click on a car (likely
hyperlinked) and go to the car form and view/edit all those details.
What's the... more >>
Multiple instances of same object ?
Posted by Bugs at 2/27/2007 5:43:06 PM
Does anyone have any recommendations on the best way to create multiple
instances of the same class when the final number of instances is unknown?
For example, I have a class and based on some user actions, I want to
create n number instances of those classes, which is obviously unknown
at ... more >>
Tab window?
Posted by Bugs at 2/27/2007 5:40:51 PM
Hello!
How do I achieve in my application a window similar to the Toolbox and
Server Explorer windows in Visual Studio 2005 itself?
Ideally, I want to have a TreeView on the left side of my form with a
vertical splitter that lets the user adjust the width of the TreeView,
but also with a v... more >>
MI5 Persecution: Stand up for Free Speech 14/8/95 (2083)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 5:34:49 PM
From: rji@cheetah.inmos.co.uk (Richard Ingram)
Newsgroups: uk.misc
Date: Mon Aug 14 10:08:32 1995
Some cencorship loving bore wrote :
> In article <GEVANS.95Aug14094119@mvagusta.uk.tele.nokia.fi> gevans@mvagusta.uk.tele.nokia.fi (Gareth Evans) writes:
>
> His sysadmin is also next to use... more >>
So nobody knows how to do this?
Posted by Zim Babwe at 2/27/2007 3:46:43 PM
I posted the other day and so far no replies.... :-(
I have a VB Windows Form (VS 2005) and on the form is a datagridview
control. It was populated by:
datagridview1.DataSource = tbl
The table only has two fields, URL_ID and URL.
I would like to change the URL field from text ... more >>
How to add date in access database
Posted by Tony at 2/27/2007 2:30:50 PM
I am trying this:
SQL = "INSERT INTO GradeList (Date) Values(#01-01-2007#)"
I get message "Syntax error in Insert statement".
How to add date field in access database?
... more >>
How to use GetObject("winmgmts:\\" & StrComputer & "\root\cimv2")
Posted by active at 2/27/2007 1:30:44 PM
This works with Strict Off
But not with Strict On
Sometimes I can figure out what is needed by running it and using QuickWatch
to see the type required but
GetObject("winmgmts:\\" & StrComputer & "\root\cimv2")
returns a value System._ComObject of Type Object
I don't know what to ma... more >>
VB2005 shared mem problem
Posted by Galen Somerville at 2/27/2007 12:58:16 PM
My VB2005 program has a DataReciever thread that recieves data from an
Activex VB6 thread. The data comes from a USB device that delivers 10 bit
data in a series of bytes.
So the low byte can be 0 to 255 but the high byte can only be 0 to 4. What's
happening is that quite often a zero high ... more >>
No Delete or Update Commands
Posted by Vernon Peppers at 2/27/2007 12:37:31 PM
I am using VS2005. I created a Windows Appication project. Inside the
Server Explorer, I created a new SQLExpress database, and then created a new
table. I added the rows, making my first row an integer, and setting the
identity property to true. I set that row to be my primary key. I the... more >>
Prepared statement expects parameter which was not supplied
Posted by jfturcott NO[at]SPAM yahoo.com at 2/27/2007 12:15:13 PM
Prepared statement '(@p1 int,@p2 tinyint,@p3 varchar(8000),@p4
varchar(8000),@p5 bit' expects parameter @p1, which was not supplied.
I get the above error when trying to update a datagridview to the sql
database. I am using the commandbuilder because the datagridview can
be saving 8 different ... more >>
.NET Runtime Optimatization Service is trying to send a packet..
Posted by Joe at 2/27/2007 9:07:50 AM
can anyone tell me what's that service doing? mscorsvw.exe
... more >>
Using Word.Application with Option Strick On
Posted by active at 2/27/2007 9:00:30 AM
How do you do things like the following with
Option Strict On
Dim ColSuggestions As Word.SpellingSuggestions
Dim WordApp As Object = New Word.Application
Dim WordDoc As New Word.Document
WordDoc = WordApp.Documents.Add(Template:="Normal.dot", NewTemplate:=False)
....snip
WordDoc... more >>
vb EXPRESS publish external file
Posted by spig.marco NO[at]SPAM gmail.com at 2/27/2007 8:19:19 AM
HI to all,
I user VB EXPRESS .NET, and I want to include a directory with a
database or files like photos in my final distribution.
I'm trying for hours, but in My Project->Publish-> ... Application
files can't include external files or create direcotries.
that's wrong?!
thanks very mach... more >>
Who is the code sherriff around here?
Posted by Terry Olsen at 2/27/2007 7:48:40 AM
No offense to anyone in this group, particularly Tom Shelton, Michael M, or
Newbie Coder. But who the hell is Crouchie1998 and why is he accusing every
submission I make to Planet Source Code to be plagiarized?
In one submission to retrieve the XP key using native .NET function instead
of t... more >>
raise mouse event on timer?
Posted by wanwan at 2/27/2007 7:29:20 AM
I made a game with a window form that needs to record the mouse
position to an array at 100 samples per second, so I use the mouse
move event to do the job.
The problem is the mouse move event is raised by my software at max 30
times per second. I have determined I should use a timer event on
... more >>
how can one build .exe standalone application and what's better/faster?
Posted by Joe at 2/27/2007 7:25:28 AM
when I build application with vb8, it is setup.exe with bunch of files
and then moving to the other computer, it request to download files
over the internet. How can I build stand-alone .exe appliation, and
what is more efficient - stand alone.exe vs setup.exe installin
compnent?
regards
... more >>
Need Expert Help and Advice. Thank You.
Posted by shapper at 2/27/2007 6:09:18 AM
Hello,
Consider I have a String:
Dim MyString As String = "Hello"
or an Integer:
Dim MyInteger As Integer = 100
or a class which its properties:
Dim MyClass As New MyCustomClass
MyClass.Property1 = "Hello"
MyClass.Property2 = Unit.Pixel(100)
MyClass.Property3 = 100
Or even a ... more >>
autocomplete textbox like google
Posted by nil at 2/27/2007 1:34:47 AM
Hello all,
It's urgent...
i want to add autocomplete textbox facility in my application like
google. as you type it suggests option to the user..i want the same
kind of facility...i know i can do only with ajax(xml and javascript)
but i want to fetch possible values from database and want t... more >>
|