all groups > vb.net > october 2005
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
Declaring variables in a For Next loop
Posted by wandoledzep NO[at]SPAM hotmail.com at 10/31/2005 8:39:48 PM
I'm using Visual Studio .NET 2002
I remember there was a way to do this in C, so there should be a way of
doing it in .NET:
Instead of:
Dim bolSquare1 as Boolean
Dim bolSquare2 as Boolean
Dim bolSquare3 as Boolean
|
|
|
Dim bolSquare9 as Boolean
Is there some way of doing it like th... more >>
how to get Shift key status
Posted by Boni at 10/31/2005 8:00:43 PM
Dear all,
How do I get information if Shift is pressed in a mouse wheel handler.
Thanks,
Boni
Sub MouseWheel(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) 'mouse whill handler
If SHIFT is pressed and e.delta.....
End Sub
... more >>
Anyone ever seen this "System.ComponentModel.Win32Exception: Access is denied Exception."
Posted by Microsoft News at 10/31/2005 6:28:58 PM
I have a program that is printing PDFs and to check that the PDF is complete
we run the following code after we are done printing.
lpsProcesses = Process.GetProcesses
For Each lpsProcess In lpsProcesses
If lpsProcess.ProcessName.CompareTo("Acrobat") =... more >>
Newbie question
Posted by RossS at 10/31/2005 6:10:02 PM
I wrote a small program a few years ago, and am not just trying to update it.
When I try to debug I get the error message:
Could not copy temporary files to the output directory.
The file 'keycapture.exe' cannot be copied to the run directory. The
requested operation cannot be performed on... more >>
excel chart in a vb.net form
Posted by Jaime Lucci at 10/31/2005 5:33:34 PM
Hi everyone!
I need to show an excel chart in my application. I can open an excel file
and make the chart, but I want to show the chart inside my form insted of
the excel GUI. I use the PrintPreview command, but it open another window
for the excel application with the chart.
Can I do that,... more >>
How to tell if a file is in use?
Posted by Terry Olsen at 10/31/2005 3:45:13 PM
Is this the best way to see if a DOS executable is running? I tried
getting process window titles but it takes longer and the window title
could be any number of different names. I'm a little worried about my
program corrupting the executable using the code below. Or should I not
worry? The D... more >>
Reports examples
Posted by Fabio Pagano at 10/31/2005 11:57:10 AM
In "Vs2005 RTM" I've tried to use the reportviewer in localmode creating a
report.rdlc. I want to fill data only by code (eg. i don't want to create a
tableadapter). Does anyone have examples about this task, or generic
examples about new reporting features in Vs2005?
... more >>
Ensure that only on app instance is running per user ts session
Posted by Xenio at 10/31/2005 11:46:44 AM
Hi,
I'd like to make sure that only one instance of my app is running per User
Session. In addition this has to work with user rights and in a Windows
2k/2k3 and Citrix Terminalserver environment.
The code I'm using prevents the app from creating a second instance on a TS.
What do I hav... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Flickering Control
Posted by Lou at 10/31/2005 10:47:14 AM
How do I keep a control from flickering while its updating?
-Lou
... more >>
combobox value
Posted by Mark at 10/31/2005 10:06:57 AM
Hello,
I have a combobox which is bound to a dataset with 2 columns. 1 column is a
description and the other holds the id. I keep getting an error when trying
to extract the underlying value. What is the proper way to extract the
valuemember value? Can anyone help me out with this issue... more >>
detecting directory
Posted by segue at 10/31/2005 9:58:09 AM
Hi;
I need to detect the window's user's my documents directory and
the available space on that drive.
I'm trying to do this in vb.net.
Segue.... more >>
Sheridan grid in VB.Net??
Posted by Fia at 10/31/2005 9:30:08 AM
Hi
I had a sheridan grid in VB6 and code like
grid.RemoveAll worked just fine. But when I use the Sheridan grid and the
same code in VB.net I get the error
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in mscorlib.dll
Additional information: Method n... more >>
Combobox button color
Posted by Dave Wurtz at 10/31/2005 9:28:19 AM
Can anyone tell me how to get the current color of a combobox's button?
I have a custom control that I want to look similar to a combobox. It
contains a button control that I want to look like the button on a
combobox.
If possible, I would also like to get the arrow image that is used on
th... more >>
Problems sending a fax
Posted by Jon Dempsey at 10/31/2005 9:01:51 AM
I am trying to get a faxing routine working, but I cannot get past the error
An unhndled exception of the type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll
Additional information: The data is invalid.
The code I am using is
Dim fxServer As Objec... more >>
Insert text at a specified point in a text file
Posted by Jonathan Smith at 10/31/2005 8:24:03 AM
I have a text file and i need to be able to insert text into it at specified
points.
How do i do this?... more >>
functions not used...
Posted by topdawg147 NO[at]SPAM hotmail.com at 10/31/2005 7:52:32 AM
This question might be for another group, but since I use vb.net, I
thought I'd ask here....
I'm looking to clean up some code. Is there a development tool to tell
me which functions are not being used? I know that in C#, the compiler
will tell you which variables are not being used. However, ... more >>
how to not write over lines in vb.net csv file
Posted by D at 10/31/2005 7:34:53 AM
i have something where i am parsing information into a csv file with
created headers. the script gets replayed as it tests several user
profiles. how can i get it to continue writing on the last line (and
not rewrite over info.) of the file where it left off?
on another note, how to get ri... more >>
Cannot run VS 2003 project using MSHTML, with .Net 2.0
Posted by Atara at 10/31/2005 5:56:41 AM
Our application was build with VS 2003.
I have tried to run it on a computer with .Net 2.0 (but without .Net 1.1
, as it should be used)
and I got the following error -
System.InvalidCastException: Unable to cast COM object of type
'mshtml.HTMLBodyClass' to class type ''. COM components t... more >>
DataGrid Binary Column
Posted by Art at 10/31/2005 5:33:03 AM
Hi,
I need some advice with a binary column in a DataGrid. Everything seems
fine except for one thing. In order to check a box, I have to click on it
once to select it, and then click again to check it. Somehow this doesn't
seem right. Does anyone know if this is normal behavior for a Da... more >>
Help with deployment
Posted by Simon at 10/31/2005 4:45:52 AM
Hi all,
I have converted an old VB6 app to .NET. The following DLL's are
generated which I include in the same directory as the exe.
AxInterop.ComctlLib.dll
AxInterop.MCI.dll
AxInterop.MSChart20Lib.dll
AxInterop.MSComCtl2.dll
AxInterop.MSFlexGridLib.dll
AxInterop.RichTextLib.dll
Intero... more >>
How to OPEN native PRINTER DIALOG -- Please HELP !!
Posted by pamelafluente NO[at]SPAM libero.it at 10/31/2005 4:40:07 AM
I am doing my own PrintDialog, and have placed there a combo with the
printer names, as in the PrintDialog provided by VB.NET.
Here is the question: how do I open the native windows printer dialog
for the current printer, so that my current
PrintDocument.PrinterSettings will be set according t... more >>
general advice on data storage
Posted by Mike at 10/31/2005 4:34:50 AM
Hi,
I'm new to vb.net and would be grateful if anyone could offer some
advice on the best way to approach this problem:
I wish to dynamically capture pricing information e.g. 10 stock prices
and use this data to generate a number of graphs over time (in real
time) of each share price. This... more >>
database connection
Posted by -00Eric Clapton at 10/31/2005 12:00:00 AM
Dear All,
I used to connect to SQL server using ADO in vb6 few years ago.
Can anyone please tell me what is the most stable and efficient method to
connect to SQL server with VB nowadays? Thanks.
... more >>
compact windows forms
Posted by Nathan Franklin at 10/31/2005 12:00:00 AM
Hello guys,
I am having a few problems with my Smart device programing..
I am new to it so I am not quite sure if this is the right thign to do.
When I click a button and one my forms I want it to open up another form.
When the other form opens up as a fixed single (anything for that mat... more >>
sql select question
Posted by Starbuck at 10/31/2005 12:00:00 AM
Hi
The sql command below does not seem to work in SQL Server, can someone show
where I am going wrong
Select * from users where ref like '*JOH*' order by ref
Thanks in advance
--
Kevin Martin
Motor Trade Technologies
... more >>
How to conver string to color
Posted by Boni at 10/31/2005 12:00:00 AM
Dear all,
is it possible to convert string "Blue" into system.drawing.color.blue.
Thanks a lot,
Boni
... more >>
Too slow to use datagrid display records
Posted by Kai Zhang at 10/31/2005 12:00:00 AM
I am trying to display some database records in datagrid using dataset.
the records need to be displayed are couple of thousands, but the records in
database that the SQL query needs to exam are more than 70 thousand, and it
is really slow to get the dataset ready to populate the datagrid.
... more >>
Add User
Posted by Starbuck at 10/31/2005 12:00:00 AM
HI
Can someone tell me how to create a new SQL server user with password and
default database using VB.Net code
Thanks in advance
--
Kevin Martin
Motor Trade Technologies
... more >>
what is the formula used in outlook to calculate the workweek?
Posted by Daniel at 10/30/2005 11:45:02 PM
Hi all,
Any ideas about the subject??
thank you in advance.
Best regards,
Ocurnos.... more >>
Datagrid column
Posted by Daniel at 10/30/2005 11:38:04 PM
Hi all,
i have doubt in getting the column name of a datagrid.
Any ideas?
thank you in advance.
Best regards,
Ocurnos... more >>
FlexGrid Usage in .Net Program
Posted by fripper at 10/30/2005 10:20:29 PM
I have replaced an older machine with a new one and have moved a VB .Net
program that I worte on the old machine to the new one. The program uses a
FlexGrid control for displaying some stuff in a tabular manner. After
transferring the program to the new machine it doesn't run because it cann... more >>
Activating an already open form
Posted by dabassguy1 at 10/30/2005 9:42:03 PM
frmFinApp instantiates, shows, and activates frmSoldLeads, by clicking
btnSoldLead.
The btnMakeDeal instantiates, shows and activates frmInputDeal and then
closes frmSoldLeads
btnSaveDeal on frmInputDeal, saves the required records, needs to set the
focus bac to the frmFinApp form.
Wi... more >>
Error Exporting to Excel
Posted by Mark at 10/30/2005 8:01:03 PM
I get the error message:
"Exception Details: System.Data.OleDb.OleDbException: Table 'Hank' already
exists."
when executing the following code:
Dim AccessConn As New System.Data.OleDb.OleDbConnection
("Provider=Microsoft.Jet.OLEDB.4.0; Data Source= c:\My Documents\db1.mdb")
... more >>
Delegates appear to be weak references
Posted by Matthew Herrmann at 10/30/2005 7:51:55 PM
Hi,
I've heard from groups that listeners to event handlers cause
references to be kept alive, if the targets are marked to stay alive. I
need to make sure that attaching events to objects will not cause them
to be kept open.
I created a test which has "target" listening to "source" for eve... more >>
Drag and Drop Highlight
Posted by gjc at 10/30/2005 5:41:10 PM
Does anyone have an example or site that has highlighting code for drag
and drop both for treeview and listview? I can not find any information
on this. I am guessing that you use the LVIS_DROPHILITED const along
with LVM_SETITEM in a send message command but then how do you clear
Cheers
... more >>
VS 2005 team edition question
Posted by Bob at 10/30/2005 4:40:02 PM
I got an Msdn Universal subscription, single developper (I'm alone). And
noticed that I can get a free upgrade to Team Edition when it comes out. I
also noticed the difference in price between the Professional Edition
Premium (which is basically what I now have) and the Team Suite, it's huge, ... more >>
How do I?
Posted by Bob at 10/30/2005 4:10:59 PM
Got a picture control that contains a bitmap. I want to have a label control
located over it with some text that I can change dynamically, but I do not
want the background of ther label to appear. That is, I only want to see the
text itself overlaid over the picture. I tried to set the backcol... more >>
Strange Behavior of Window Menu
Posted by Daniel at 10/30/2005 3:46:01 PM
Hello Everyone,
I am using VS 2002 (VB.NET) and have a MDI application in which the user
will open several child windows at the same time. I have included a menu
Window, which MDIList property is set to True. I also have all the
traditional menus included in it (Tile Horizontal, Vertical, ... more >>
Formating the Data in a Text Box
Posted by Vishnu at 10/30/2005 2:50:03 PM
Just like the way we set the format for a cell in a excel sheet....how can i
format the data in my text box...
I want to know how to format a text box for the following data
1. Month/Date/Year = MM/DD/YYYY
2. Time = Hours: Mins
... more >>
retrieve a specific line in text file
Posted by kevin arana at 10/30/2005 2:11:24 PM
Hello.
Could anyone please show me an example of how to retrieve a specific line of
a text file (say line 3 of data.txt) into a string variable?
I have seen many examples on how to dump all the content into a string, and
how to read line-by-line consecutively, but how can i read just 1 spe... more >>
SendKeys.Send()
Posted by atr2000 at 10/30/2005 1:36:54 PM
How can I perform a SendKeys.Send to the current active application from a
windows service? Or is there a different way to do this?
I currently receive the following error message:
System.InvalidOperationException: SendKeys cannot run inside this
application because the application is not h... more >>
variant array from recordset
Posted by louis at 10/30/2005 8:02:03 AM
I often read a recordset (ADO) into a variant array so that the array can
contain text, currency, boolean, etc. VB.Net does not allow variants and the
object type gives errors during conversion from VB6. To complicate matters,
I also like to make the array 2 dimensions so I can put multiple ... more >>
7 Cards
Posted by MC at 10/30/2005 12:00:00 AM
Hi guys
Been trawling for ages now!!
Anyone seen any code for working out the best 5 card hand from 7 cards as in
Limit/No-Limit Poker. I am doing a project for myself to teach me .NET and
struggling.
Thought i'd cheat a bit.
MC
... more >>
Upgrading vb2003 app to vb2005
Posted by John at 10/29/2005 10:59:26 PM
Hi
How difficult is it to upgrade a vb2003 database app to vb2005?
Thanks
Regards
... more >>
Referencing existing form?
Posted by Grumpy Aero Guy at 10/29/2005 9:43:18 PM
How do I reference a method on an open form from ANOTHER open form?
What is the correct object reference, assuming the form name frmTest ???
Assume, from frmTest2 I would like to invoke the following method in
frmTest1....
___________.commandbutton1_click(sender,e) ????
--
Fran... more >>
regexp help needed
Posted by Tamas Nyilanszky at 10/29/2005 8:18:42 PM
hi,
i need to filter (e.g.) the number 149, 1307 and 3100 from a line like
this one:
<td id=l2 title=149>1307/3100</td>
so i will be able to split that string with reg.split() and receive an
array with the 3 values in it somehow...
or does that only work with reg.match some way?
as yo... more >>
Direct X new version
Posted by iwdu15 at 10/29/2005 6:50:02 PM
hi, i was wondering if anyone knew or know of a website that could help me
with this. i want to use the new version of the Direct X SDK to create like
3D graphics and stuff for my windows form but i have no idea how to go about
it. like i want to create and use things that thy have for example... more >>
Object reference not set to an instance of an object for data table fill
Posted by Chuck Gantz at 10/29/2005 5:41:24 PM
I've manually created a database (based on the Manage a Music Collection ...
article on theMSDN site) with three data tables. I then populated the tables
with data.
When I preview the data, I see the data I entered on all three tables. So
the data and the data tables must be there.
I the... more >>
how can i Print my Form in vb.net
Posted by zoneal NO[at]SPAM yahoo.com at 10/29/2005 4:14:45 PM
i need to print Groupbox(this include some Label)in my form.
Thanks.......
... more >>
Can a indexed pixel format be converted to some other format?
Posted by **Developer** at 10/29/2005 3:24:39 PM
Seems that Dot.net can not handle files of Indexed Pixel Format as well as
other types of formats.
Given a file or and Image of type Indexed Pixel Format is there a method to
convert it to some other pixel format?
Thanks
... more >>
|