all groups > vb.net > january 2006 > threads for tuesday january 17
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
MsgBox("test") no msg box?
Posted by bokiteam NO[at]SPAM ms21.hinet.net at 1/17/2006 11:48:10 PM
Hi All,
I dont' know why I can not pop up a message box.
MsgBox("test")
it is ok in vb6...
Best regards,
Boki.
... more >>
TrackBar vs Slider
Posted by Paul Helmuth at 1/17/2006 11:31:38 PM
All,
I am trying to assess how much work it is going to be to "port" my current
Visual Studio 6.0 applications to dotNet.
It seems like many things that should be trivial are really problematic. I'm
sure this mostly (but not completely) due to my lack of experience with
dotNet.
Anyway... more >>
Type 'OleDbConnection' no define
Posted by bokiteam NO[at]SPAM ms21.hinet.net at 1/17/2006 11:22:16 PM
Hi All,
I have this error msg, but I have already import lib, could you please
advice?
Imports System.Data.OleDb
Public Class Form1 Inherits System.Windows.Forms.Form
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
....
Error msg:
Type 'OleDbConnection' no d... more >>
Impersonation without credentials ?
Posted by Jarrod Morrison at 1/17/2006 10:19:53 PM
Hello all
Is it possible to use Impersonation from inside a windows service to
impersonate the logged on user without supplying any credentials and
launching a program as that user ? My problem is that when launching
external apps from my service it does so as the services logon account not
t... more >>
Getting the hWnd of an IE window from an NT service
Posted by MrBewsher NO[at]SPAM gmail.com at 1/17/2006 9:54:10 PM
Hi,
I'm using VB.Net and writing an NT service that runs in the system
account in the background with no interaction with the desktop.
I'm running it on XP Pro.
I'd like to get the URL of any Internet Explorer process a logged in
user is running.
I can get a list of process IDs and from ... more >>
Load an MDI child maximized...
Posted by Martin at 1/17/2006 9:38:38 PM
VB2005 / XP SP2
Hi all,
I'm just a newbie in VB.Net and I created an MDI container form, with a menu
and when I choose something from the menu, it should load the MDI child form
maximized.
To achieve this I set the WindowState property of the child to 'Maximized'
and use the following co... more >>
Foreground Window?
Posted by Terry Olsen at 1/17/2006 7:44:21 PM
In my chat application, I create a new window for each private chat. I use
the FlashWindowEx API to flash the window if it's not the Foreground window.
I determine the Foreground window using the GetForegroundWindow API. So in
each window I have a line like such:
If pvchat.Handle.ToInt32 <... more >>
VB.Net 2003 - Build Solution vs Re-Build Solution
Posted by Dennis at 1/17/2006 6:16:02 PM
What is the difference between the sub menu item "Build Solution" and
"Rebuild Solution" under the main menu item "Build".
I tried to read the help to find out but no luck.
--
Dennis in Houston... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Project Notes and Journals
Posted by Dennis D. at 1/17/2006 6:02:46 PM
Hello:
Using Express editions, VB.net on XP Pro.-
What technique do you find productive and efficient for taking and searching
notes in your projects?
I have too many paper notebooks. Task descriptions are too short. Notes are
usually one or two paragraphs, but sometimes get longer. I wou... more >>
Encyrption in VB and Decryption in VB.NET
Posted by VJ at 1/17/2006 5:34:00 PM
Hi,
I have to encryt a file in my vb application and pass that file over the
internet to my another web application that will decrypt the file. In dot
net we have many options for encryt/decrypt. Does any body have a code
written in VB which supports any of the .Net decryption.
Thanks
... more >>
Question on Dataset navigation vb.net
Posted by Newbie at 1/17/2006 5:26:30 PM
Could someone answer a vb.net database question? what is a good
way to code a form so that a user could navigate through a dataset ie:
MoveFirst, MoveNext, MovePrevious, MoveLast, Update and Delete records
and have an option to find a record. I have been able to figure out
how to navigat... more >>
How do I schedule events for execution ?
Posted by pamelafluente NO[at]SPAM libero.it at 1/17/2006 5:10:29 PM
Hi guys!
I want to do a large number of scheduled task (say 80). Each task can
be run at a certain time every given weekday. For instance at 10am and
5pm on each monday, etc.
I would like to ask what is the best approach to check and run the
scheduled events.
The first (perhaps silly) th... more >>
How do menu list with one check
Posted by VB Programmer at 1/17/2006 4:40:52 PM
How do I create a submenu so that I can only check ONE of the values?
Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3
Thanks....
... more >>
How to check datatable.select
Posted by wk6pack at 1/17/2006 4:20:23 PM
Hi,
How do I check datatable.select(filter) in the following:
for each dtrow in datatable.select(filter)
....
next
I've also tried:
if not (datatable.select(filter) is nothing) then
for each dtrow in datable.select(filter)
.....
next
end if
but it gets an exception in my cat... more >>
LIKE operator question
Posted by PJ6 at 1/17/2006 3:45:16 PM
LIKE is a noise word so I'm having trouble finding/googling information on
it.
The help in VS.NET was less than useful explaining this little quirk...
? "test.test.test" like "*.*"
True
? "test.test.test" like "*.*.*"
False
Is this expected behavior?
Paul
... more >>
System.Data.NoNullAllowedException: Column 'frDateCreated' does not allow nulls
Posted by Martin Widmer at 1/17/2006 3:17:14 PM
Hi guys!
I get this message when trying to insert a new record into a datatabel which
is part of a dataset connected within VS 2005 (VB) from a datagridview
control via a DataTableBindingSource and TableAdapter to an SQL Server. In
the SQL server the field is declared as "do now allow null"... more >>
New to XML
Posted by Tull Clancey at 1/17/2006 3:09:44 PM
Hi all, I'm new to XML and having difficulty trying to find information or
examples for certain tasks.
Basically I need to read in a sub-set of data from an XML file, similar to a
SELECT statement, also INSERT and UPDATE type routines.
Can anyone point me in the right direction?
Cheers,... more >>
How to set opacity of form
Posted by VB Programmer at 1/17/2006 2:58:26 PM
I have a form which has an opacity control of type numbericupdown. It's
supposed to control the opacity of frmMain. Here's my code...
Private Sub numOpacity_ValueChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles numOpacity.ValueChanged
frmMain.Opacity ... more >>
Disable Datagrid Cell Based On Initial Value
Posted by mkrei NO[at]SPAM yahoo.com at 1/17/2006 2:43:28 PM
I have datagrid that I format at runtime with tablestyles and adding
columns. I have a DataGridBoolColumn that I have subclassed, but can't
get the right result. I want to disable a cell based on the initial
value of that checkbox. If the initial value is checked, I want it to
be disable wher... more >>
Changing my ProcessName?
Posted by gregory_may at 1/17/2006 2:33:03 PM
I have several instances (Around 20) of a .Net application running on a
server. In task manager they all show as something like
"MyApplication.exe".
I would like to make the filemanager name show something like "MyApplication
Instance1", Is this possible? Right now if one process starts a... more >>
looping through datareader
Posted by tjonsek NO[at]SPAM phenom-biz.com at 1/17/2006 2:17:13 PM
Albeit new to VB.NET, I've done this several times before, but today
I've run into an interesting problem. I am trying to loop through a
datareader and display the data in a spreadsheet. So far, I only get 1
row to display. (I know it has multiple rows)
Here's the code for the loop:
xlRow =... more >>
Save image sequence as AVI
Posted by Miha Ambroz at 1/17/2006 1:52:47 PM
Hello,
I have an application in VB 2005 in which a PictureBox is drawn onto at
runtime. I would like to save the sequence of the pictures at each
update into an AVI file with a user-specified frame rate. Is there an
easy way to do that (preferrably without third party components)?
Thanks for ... more >>
Using SP_Password with VB.NET but keep getting "old (current) password incorrect for user"
Posted by partybob99 NO[at]SPAM hotmail.com at 1/17/2006 1:15:07 PM
I am trying to call SP_Password from some vb.net code. This should be
very straight forward but no matter what I do, I keep getting errors.
Here is the code
strConnectString = "Data Source=" + strServer + ";Initial
Catalog=master;user id=" + strID + ";password=" + strOldPass + ";"
... more >>
DataTable.Expression
Posted by Steve Amey at 1/17/2006 12:59:58 PM
Hi all
I am storing some information in a database, including the Expression's for
columns in a DataTable. In this Expression, I want to display 2 fields,
Address and Contact, but seperated by a new line, so the Contact appears on
the line underneath Address.
I have the following stored ... more >>
Threadpool timeout
Posted by VB.NET at 1/17/2006 12:23:06 PM
Good Afternoon, Is it possible to start a thread with threadpool and either
abort it or set a timeout to kill the thread if it goes longer than a given
amount of time?
... more >>
Custom Property
Posted by Ronin at 1/17/2006 12:15:02 PM
I'm trying to create a class and with in that class i want to access or
change the property statement by using "For" or "For each..." statement... is
this possible?
Please point me to the right direction if it is possible.
Please advice.
Thanks in advance.
Ros... more >>
ShellExecute in VB2005
Posted by Jedi10180 at 1/17/2006 11:38:09 AM
Does ShellExecute work in VB2005? I am trying to open a pdf with a button - I
get no errors, but nothing is happening. Here is my code:
Option Explicit On
Public Class frmPROTest
Const SW_SHOWNORMAL = 1
Dim hwnd
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"... more >>
Detect Remote Shutdown
Posted by Chris Johnson at 1/17/2006 11:25:18 AM
Hey all,
I have a small app I have developed that periodically pings a list of server
and returns their status. Given my environment I have setup the program such
that a server can be down 4 minutes before I get an alert.
My problem now is that is a server is rebooted, it will be back up b... more >>
BUG? SqlDecimal = Single/Double: 4.475 becomes 4.4749999999999996D ????
Posted by Pieter at 1/17/2006 11:18:30 AM
Hi,
I have a variable (m_sngPrixNetUnitaire) which is of type Single.
When I want to write the value to my SQL SERVER 2000, I put this value in my
DAL (MyDal.PrixNetUnitaire), which is of datatype SqlDecimal.
But during the conversion the value changes, and MyDal.PrixNetUnitaire
=4.474999... more >>
Binding sources question in Vs2005
Posted by Bob at 1/17/2006 11:15:26 AM
I have noticed that as one adds related tables to a bindingsource and
dataset(vs2005 Vb.Net Sql Server 2005), the TODO and following code that
fills the datasets on form load are written to the formload event in the
order in which you drag the tables to the form to make a gridview, the last
... more >>
array of interface?
Posted by haroldsphsu NO[at]SPAM gmail.com at 1/17/2006 11:14:49 AM
Hi,
I understand that I cannot create an instance of an interface, but why
is it ok to do the following? What is it creating?
foo = New System.ComponentModel.IEditableObject(10) {}
whereas the following will get a compiler error ('New' cannot be used
on interface):
foo = New System.Co... more >>
How to minimize to system tray ? VS 2003
Posted by pamelafluente NO[at]SPAM libero.it at 1/17/2006 11:01:17 AM
Hello guys,
I have done a small utility and would like that an image be displayed
on the the windows tray (on bottom-right of the screen).
Also I would like that when one clicks on X (close) the application be
minimized and only the tray icon be visible.
When one clicks on the tray icon the... more >>
Keep software running
Posted by cbrown NO[at]SPAM duclaw.com at 1/17/2006 9:55:01 AM
I am looking for a method (maybe even a commercially available piece of
software) to watch a program and ensure that it is always running. If
it is killed in task manager, it will automatically start it up again,
etc, etc.
... more >>
Microsoft.VisualBasic.Compatibility
Posted by Usarian Skiff at 1/17/2006 9:33:56 AM
I'm using an API that references this namespace. and all I can find on
Google is "Don't use it!"
I'm stuck using it and need to know how.
The specific problem I'm having is in my deployment project. I get a compile
error "Unable to find dependancy "MICROSOFT.VISUALBASIC.COMPATIBILITY' ...
v... more >>
Working with structures and the New keyword
Posted by Terry Olsen at 1/17/2006 9:30:59 AM
What is the proper way to initialize a variable as a structure? It
seems to work for me either way, using the New keyword or not.
Private Structure FLASHWINFO
Dim cbSize As Int32
Dim hwnd As Int32
Dim dwFlags As Int32
Dim uCount As Int32
Dim dwTimeout As Int32
End Stru... more >>
Generate reports programmatically with reporting services & SQL server 2005
Posted by Martin Widmer at 1/17/2006 8:33:50 AM
Hi guys
I am looking for the best way to generate new reports with reporting
services for SQL server 2005. The reports will be generated programmatically
from a .Net VB application. So far I see the only way to do it is to feature
my objects (text blocks, pictures, tables drawn from excel and ... more >>
Alignment problem displaying .txt file in window's textbox?
Posted by Nina at 1/17/2006 8:21:02 AM
Hi everyone,
I try to a display a .txt file in window's textbox or rich textbox. The
text file has contents line by line aligned perfectly when using NotePad to
view and print it. But when I display this .txt file in textbox or rich
textbox the alignment all messed up. Please help me to s... more >>
The Irish fada (áéíóú/ÁÉÍÓÚ) and encryption/decryption problem!
Posted by almurph NO[at]SPAM altavista.com at 1/17/2006 8:01:48 AM
Hi everyone,
Can you help me please? I am having a problem with the
encryption/decryption of words with the Irish fada in them. The Irish
fada is like this: =E1=E9=ED=F3=FA/=C1=C9=CD=D3=DA. It's kind of like the F=
rench
grave...
Anyway when I run encryption on a plaintext word like:
... more >>
How to create a "DataSource" & "Items" properties on Custom Combob
Posted by VB Newbie at 1/17/2006 7:38:05 AM
I am creating a user control containing a combobox using VB.NET(2003)
I want to add 2 public properties "DataSource" and "Items" like the
"System.Windows.Forms.ComboBox"
here is my code, but it doesn't work. What's wrong with it?
Public Property cboDataSource() As Object
Get
... more >>
calling a C# method asynchronously from VB
Posted by Lak at 1/17/2006 7:26:02 AM
Hi all
I am trying to call a method from a C# dll asynchronously from VB. I don't
know how to do this. Please get back to me with your suggestions.
Thanks.... more >>
Problem with SHAppBarMessage
Posted by Daavi at 1/17/2006 3:29:02 AM
Hi group,
I have this code for create a appbar like windows taskbar, but don't work :(
If remove the next line from Button1_Click
SHAppBarMessage(ABM_REMOVE, abd)
when finish app keep desktop area and work perfectly when restart app
Please help!!
Imports System.Runtime.InteropServi... more >>
Read HDD sr no and lock my application with no
Posted by surendra.rajput at 1/17/2006 3:01:20 AM
Hi,
can anyone help me with the code or instructions to write a code to
read the HDD sr no and lock my application to this no. for security and
piracy protection of my application.
Thanks a million in advance.
Surendra
... more >>
Errors make my map exit from the debugger
Posted by dgk at 1/17/2006 1:33:40 AM
I'm getting some errors such as:
A first chance exception of type 'System.ArgumentException' occurred
in System.Data.dll
A first chance exception of type 'System.UriFormatException' occurred
in System.dll
Ok, fair enough, and I fix them. But instead of stopping at the
offending statement i... more >>
|