all groups > vb.net > march 2006
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
Invoking CTRL+C,X,V programatically
Posted by Ori :) at 3/31/2006 9:10:02 PM
Hi Guys,
I need to be able to perform cop/cut/paste in any textbox of the application
i have focus on USING a button (not key combination). how can I invoke the
^C, ^X and ^V programatically?
I tried something like:
Private Sub btnPaste_Click(ByVal sender As System.Object, ByVal e As _
... more >>
Get Memory Usage of my Program
Posted by Andreas Kammann at 3/31/2006 7:13:53 PM
Hi , how can i get the current memory usage of my program (like the memory
usage of the task manager )
greetings
... more >>
disabling controls by checking off a radio button when the form loads
Posted by helpful sql at 3/31/2006 3:42:12 PM
Hi,
I have 2 radio buttons on my Windows form control. The radio button's
CheckedChanged event disables or enables other controls on the form based on
the value of the Checked property.
When the form loads, I want to check off one of the radio buttons. So I
put the code to check off m... more >>
Get the selected value from a listbox
Posted by Ben at 3/31/2006 3:28:48 PM
Hi
Im trying to get the value from a listbox, i have the below code to get the
text:
txtEntity.Text = ListBox1.Text
But do not seem to be able to retrieve the data that i set as the value
member.
Thanks
B
... more >>
Put date into Registry on Setup
Posted by JJ at 3/31/2006 3:23:13 PM
Whats the best way for me to put the current date into the registry when a
form app is being installed?
Can I do this via the registry editor in the setup project, or do I need to
create a small .exe as a custom action?
TIA
JJ
... more >>
save string var to html file without losing format
Posted by mike at 3/31/2006 3:21:43 PM
Hi all,
I am using StreamWriter class to save string var into html file but
somehow when I open the html file all formats are lost. I want to keep
all formats(spaces, newline and so on)For example, I have sFunc in
below format(newline, spaces ...)
----------sFunc ----------------
Function AB... more >>
Option Strict On
Posted by Vijay at 3/31/2006 3:12:05 PM
With the option strict On set.....
Dim fs As FileStream = File.OpenRead(strFile)
With fs
Dim buffer(fs.Length) As Byte ' <--- Option Strict On disallows implicit
conversions from 'Long' to 'Integer'.
' other stuff..
End With
been a while i did VB code... can somebody help me what I a... more >>
Clearing data from a DataGrid
Posted by DaveP at 3/31/2006 3:02:02 PM
I've got to be missing something very simple here, but I'm stumped. I have a
DataGrid control on a form. The form allows search of a database and display
of resulting rows in the DataGrid.
My problem is, when the user does a second search, the results of the first
search remain in the D... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is it possible to block a mouse event on an Hyperlink with a general script event?
Posted by Neko at 3/31/2006 1:13:40 PM
Is it possible to block a mouse event on an Hyperlink with a general
script event?
This is quite troublesome for me. I am trying to find a way to block
the windows shortcut SHIFT + MOUSE LEFT BUTTON that open the Hyperlink
in a new window for a Web application. I just want to capture the Shift... more >>
Shell Program
Posted by John Wright at 3/31/2006 1:07:46 PM
I asked once before and got a good response, but it was not quite what we
needed. I am reposting clarifying my requirements. I want to develop a
shell program that requires the user to login. When they login, I will
retrieve all the programs they can load. When they click on a program to
... more >>
Use active directory to scan for software on a remote system?
Posted by Brian Henry at 3/31/2006 11:27:28 AM
In programs like Hyena, you can use AD to view programs installed on
systems. How could I do something like this in .NET? I know there is a
directory control, but im not sure how to query AD to get the installed
software list on a remote system that is turned on. I posted this to .NET
groups... more >>
ContainsFocus equivalent in VB
Posted by Andy G at 3/31/2006 11:26:48 AM
In the below snippet of code how can I write the line, else if
(c.ContainsFocus) in vb? Thanks.
foreach (Control c in controls)
{
if (c.Focused)
{
// Return the focused control
return c;
}
else if (c.ContainsFocus)
{
//... more >>
SENDMail
Posted by James Robertson at 3/31/2006 11:26:03 AM
Issue is that I really do not know diddly. Copying and trying to learn as
much as I can about VB and ASP2.0. Now the question I have is I created an
E-Mail form the sendmail properties in the VB side are
Imports System.Net.Mail
Partial Class _Default
Inherits System.Web.UI.Page
... more >>
ADO assist
Posted by Peter Lux at 3/31/2006 11:12:30 AM
I'm trying to create a sales ticket (on a vb form in Excel) and fetching
results from an Access database. When I try to get the results from the
recordset, it doesn't look right. I've re-imported the data with
"trim(<fieldname>)" to make sure that I'm not picking up extra characters.
First, ... more >>
Can't close EXCEL from my VB.NET application
Posted by SteveS at 3/31/2006 9:51:02 AM
I'm attempting to close EXCEL from within my VB.NET application.
Using the excel object library to write data to my spreadsheet is working
fine but when I try to quit application object it does not work. I know this
because I can still see the Excel application running in Task Manager.
How ... more >>
Passing a Variable from one web site to another for ASP
Posted by James Robertson at 3/31/2006 8:49:57 AM
I am new to the ASP and VB thing so be kind. Question I have is that
I have created an ASPX web site to use as an E-Mail page. But I want
to use this for a lot of users. Can I create the link on the WEB site
to mail to passing a variable from the WEB site to the ASPX web site
to E-Mail to? ... more >>
All VB.NET eBOOKS
Posted by nuoo NO[at]SPAM hotmail.com at 3/31/2006 7:15:13 AM
http://www.books-download.com/?search=VB.net&source=grp
... more >>
How do i do this in VB .Net
Posted by Jonathan Smith at 3/31/2006 6:38:03 AM
I have the following VBScript:
Const cComputerName = "SC-Mail"
Const cWMINameSpace = "root/cimv2/applications/exchange"
Const cWMIInstance = "ExchangeServerState"
Dim ExchangeServerList
Dim ExchangeServer
Set ExchangeServerList =
GetObject("winmgmts:{impersonationLevel=impersonate}!//"... more >>
DataAdapter.Update
Posted by Sudhesh at 3/31/2006 6:34:56 AM
Hi,
Can anyone shed some light on which of the two is more efficient (if at
all) and why?
Scenario A: I have setup the Select, Insert, Update & Delete commands
of a DataAdapter, using Stored Procs (against SQL server). Then I call
the Update method.
Scenario B: I loop through each dataro... more >>
Importing from Excel
Posted by Amy at 3/31/2006 5:12:46 AM
I have an ASP.NET (VB) routine that imports a lot of data from an Excel
spreadsheet into a OleDbDataAdapter, and then into a database table.
The import
has been working fine until now, but my latest spreadsheet has a column
that can be either completely numeric or alphanumeric. As long as t... more >>
Patterns anyone?
Posted by Jim Hubbard at 3/31/2006 3:48:45 AM
I am looking for patterns for a distributed .Net application for a small
retail chain.
The owner wants the stores to have access to all data (no matter which store
it comes from) in real time. In the case of an internet outage, the store
owner would like for the individual stores to still ... more >>
LIstbox having multicolumn
Posted by dev.amit at 3/31/2006 12:42:43 AM
Hello Friends
I am a new bee to the world of vb.
I have an appication in the MS Access and now i have to convert it to
the Vb.
I am having problem creating multicolumn Listbox in the vb form.
I have dont it quite simply with ease in Access but here i am blank.
1.I want to show Three ... more >>
From VB.NET to Word 2003
Posted by Pieter Coucke at 3/31/2006 12:00:00 AM
Hi,
With my VB.NET 2003 application I want to generate reports in Word 2003.
I should be able to:
- use eventually some template (with the header of the company etc) and ad
my info to the document
- be able to add an image
- be able to add and fill tables
But all of this should have a fl... more >>
Help Needed WIth Printing BN.NET 2005
Posted by Siv at 3/31/2006 12:00:00 AM
Hi,
I am getting into printing with VB.NET 2005 and want to implement the usual
capability that a user can select a selection of pages. I have a report
that is generated by my application that if the user wants all pages will
produce 3 pages. I want to offer the user the ability to select v... more >>
dll not reading .config ?
Posted by Søren M. Olesen at 3/31/2006 12:00:00 AM
Hi
I've created a Class library (myClasses.dll), and added a settings.settings
to it using designer.
However when I use this class library, it doesn't seem to read the settings
myClasses.dll.config file, instead I just get then initial values I used
when creating the settings.settings se... more >>
settings.settings ??
Posted by Søren M. Olesen at 3/31/2006 12:00:00 AM
Hi
How is the settings.settings supposed to be used???
If I add it to a class library, I get a app.config file with a
<applicationSettings> section, containing my settings. However if I include
this class library in a web-project, it seems like I have to copy this
<applicationSettings> s... more >>
Passing Vb equivilent of "structs" between forms
Posted by Chris Strug at 3/31/2006 12:00:00 AM
Hi,
I'm working with VB 2005.net and have managed to get my head around passing
values between forms by creating properties of the relevant form classes.
However, say that I have a number of values which I wish to exchange (for
example, an employee record, name, position, etc). At the minu... more >>
Calling DLL atruntime
Posted by Michael Hesse at 3/31/2006 12:00:00 AM
Hi,
I need to call a DLL. During development, I have had no problems using
"Declare" statements, but in production, I don't want to hard-code the path.
I would like to read the path fron an ini file and then load the DLL. Is
there a VB.NET equivalent of LoadLibrary?
Thanks,
... more >>
Q: DatePicker
Posted by G .Net at 3/31/2006 12:00:00 AM
Hi
Can anybody help me with setting the allowable Max and Min date for a
DatePicker?
I would like to restrict the possible date selections to a given month. So
for example, if I were to specify Jan 06 the datepicker could not display
days Feb 06 i.e. the arrows for next month and earlier... more >>
Reading an argument given to the program when started
Posted by Joris De Groote at 3/31/2006 12:00:00 AM
Hi
I am busy trying to create a VB.NET program. I want to give the program an
argument in the shortcut I created for that program (for example:
program.exe argument).
Now I just can't find how I can read that argument in my VB.NET program.
Can anyone help me?
Thanks
Joris
... more >>
How can I get caption of all open windows??
Posted by M O J O at 3/30/2006 11:58:03 PM
Hi,
I need to to get the caption of all open windows. Not only for my
application, but for all running programs.
I know it has something to do with Win32 EnumWindows, but I've tried some
examples, but can't make it work.
I need the sample code .... please! :o)
Thank you in advance!
... more >>
"AutoScroll event" in Panel
Posted by Tom Bianchi at 3/30/2006 11:28:40 PM
Hi,
I have a Panel with the AutoScroll property set to True and many TextBoxes
into it, with only some of them positioned in the visible portion of the
panel.
Is there a Panel event that I can handle when I tab from textbox to textbox
and the panel has to scroll *automatically* from the cu... more >>
VB.NET A simple question
Posted by anilkoli NO[at]SPAM gmail.com at 3/30/2006 11:21:18 PM
Whether all VB.NET applications are implemented using layered approach
e.g. GUI,Business layer, Data Access layer and Back-end.
I come to know that at professional level, some projects are
implemented by using more than four layers, in that case how
application are written and what type of OO ... more >>
VB.NET Alternative solution for serialization
Posted by anilkoli NO[at]SPAM gmail.com at 3/30/2006 10:51:38 PM
When object are serialized they are stored physically in a file(e.g.
XML). But if I want to deal with remote computers I have to provide
details about file where object is serialized or send that file
physically.
Instead of serializing an object to a file I want alternative and I
have followi... more >>
How do I detect a form being opened already
Posted by RichG at 3/30/2006 9:10:02 PM
In VB 5 I could have a form named frmTest and open it with
frmTest.Show
Now in VB.net I have to
Dim frm as New frmTest
frm.show
The problem is I only want one instance of frmTest open, not a new one each
time.
Is there a way to prevent this, or test for the form being open already?
T... more >>
.Net and Windows 98
Posted by Devlei at 3/30/2006 8:20:48 PM
Can anyone point me to articles that detail how to correct deployment
problems to Windows 98?
For example, how do I know what is supported and what is not.
Any assistance will be greatly appreciated!!
Dave
... more >>
Send raw packet
Posted by Stanley at 3/30/2006 8:14:17 PM
Hi all, is it possible to send raw packet in vb.net like the following:
00 50 DA B8 A2 E4 00 08 75 00 00 54 88 64 11 00 00 19 00 12 C0 21 05 07
00 10
6F ED 58 BA 00 3C CD 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00
00 00 00 00 00 00 00 00 00 00 00
It's not a TCP/IP packet, it'... more >>
PERFORMANCE QUESTION
Posted by Savas Ates at 3/30/2006 7:51:08 PM
I want to built a web page which is gonna have multiple languages. Which one
is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?
What do you recommend me to have best performance about multilanguage
web-sites?
... more >>
VB 2005 variable declaration syntax
Posted by Mark Berry at 3/30/2006 5:53:51 PM
Hi,
I'm moving from VB6 to VB 2005. Two questions:
1. One book I'm using has syntax like
Dim testConnection as SqlConnection = New
SqlConnection(connectionString)
However, the Help for the Dim statement says, "If you use New, you do not
use an initializer expression. Instead, you ... more >>
Print any doc ( .doc, .xls, .pdf, .jpg, .etc )
Posted by MSDN at 3/30/2006 5:25:18 PM
Hi,
I have a folder with many different document types ( .doc, .xls, .pdf, .jpg,
..etc )
how do I print them all?
I need to do this
loop
print next document
endloop
what are the ways of programmatically telling, M.S. Word for example, to
open the document and print it.
I can op... more >>
Check Mapped Drive is Connected
Posted by Ben at 3/30/2006 4:35:48 PM
Hi
I need to check that a mapped drive is connected before continuing some
code.
How can i do this?
Many thanks
B
... more >>
Recast an exception to its original type
Posted by Jonas at 3/30/2006 4:12:12 PM
Hi!
I have a general error logging routine that takes a parameter of type
Exception. But if I send in a SqlException, I loose all the Sql-specific
information as the variable is casted to an ordinary Exception. How do I
recast it to its original type without having to hard-code all differen... more >>
Select TWAIN Source (VB.NET 2005)
Posted by Dustin Davis at 3/30/2006 4:01:23 PM
I'm hoping there is a TWAIN expert lurking here somewhere :)
I'm writing a very customized application. The software will be set up
in multiple location and will always have two types of scanners attached
to the computer. The scanners are microfilm/fiche and a flatbed.
So I've created a sc... more >>
Saving binary to varbinary(max) data column in SQLserver 05
Posted by Bill Nguyen at 3/30/2006 3:41:32 PM
I need sample code to insert binary file (mappoint map file) into a
varbinary column using VB.NET.
Please help!
Thanks
Bill
... more >>
Adjusting output to a rich text box
Posted by dbo at 3/30/2006 3:12:35 PM
I'm looking to output text to a rich text box. The number of
characters and lines will always be different. I need the output to
fill the whole rich text box everytime. How can I do this?
Thanks
Dan
... more >>
A question on Types coming from a Database
Posted by pamelafluente NO[at]SPAM libero.it at 3/30/2006 2:27:50 PM
Hi,
While for the various NET types: Boolean, Decimal, ... , String, Char,
BYTE [] , I have seen them sometines appear as a result of a SELECT
from a Database,
I would like to ask, given a generical OLEDB connection to a database,
is it ever *possible* that the data would be rendered in one o... more >>
Remembering Sort Order on WinForms DataGrid
Posted by Joseph Ferris at 3/30/2006 2:09:47 PM
Hello,
Is it possible to retrieve and set the sort order for a DataGrid
control on a WinForm? I had a user request this functionality, and I
can't seem to find a place to set and retrieve it from. Am I missing
something, or is this something that is more difficult to do than is
worth the ti... more >>
memory stream, xmltextwriter issue
Posted by hharry at 3/30/2006 1:48:33 PM
hi all
i have the following class:
<Serializable()> _
Public Class MVR_Inputs
Public FirstName As String
Public MiddleName As String
Public LastName As String
Public Suffix As String
Public Dob As String
Public Ssn As String
Public Gender As String
Publ... more >>
Viewing Word Docs in Tabs
Posted by aolson NO[at]SPAM phoeintl.com at 3/30/2006 1:39:17 PM
First of all i am pretty new to VB .NET as a whole so my answer may be
silly as may my questions.
Here is what i would like to do. I would like to open potentially
multiple word documents for viewing only in a tab control. Each Word
document should open in its own tab. Sometimes there may be ... more >>
Sorting an excel spreadsheet
Posted by Dwight at 3/30/2006 12:01:33 PM
The place I'm working for has a need to sort an excel spread sheet the
contains data from bill of materials. The spreadsheets can be up to
60,000 records.
We had a process that did it in a macro but didn't do it correctly.
Another developer wrote a program in VB.net and did a recursive
hieart... more >>
|