all groups > vb.net > january 2005 > threads for thursday january 27
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
Dataset Find Problem
Posted by Martin Horn at 1/27/2005 11:58:58 PM
Hi,
I get a 'System.Data.MissingPrimaryKeyException' when running the follwing
code:-
StockListDataSet.Tables("Items").Rows.Find("12345")
Is there any way around this? Do I need to supply more information?
Thanks.
... more >>
Background image of DataGrid
Posted by Bruce at 1/27/2005 10:53:03 PM
Hi, Buddy
Is there anyway to add background image to a datagrid control?
Thanks a lot.
Bruce... more >>
Setup and Deployment
Posted by Steve at 1/27/2005 10:42:13 PM
Does anyone know where I could find a walkthrough on setup and deployment.
I want to distribute an application I wrote. I want it to have a liscense
agreement show up during the istallation. I am knew to vb.net so I hope I
am asking the question right. I have seen the one in microsoft's kno... more >>
Dataset Question
Posted by Martin Horn at 1/27/2005 10:10:43 PM
Hi,
I have used the datasource wizard to add a local datasource to a combo box.
This all works fine up to a point, but what I want to do is at runtime,
specify the path to the database file that the combo box should be bound to
as it may not always be in the same location.
The Wizard has... more >>
VB.NET App Prevents logoff/shutdown ?
Posted by Jm at 1/27/2005 8:16:37 PM
Hi All
I have a simple vb.net app that once run for some reason does not allow me
to log off or shutdown the pc ? When i try to do so it will close my app and
then will only shutdown or logoff if i attempt to do so once again ? Does
anybody have any does why this would be so ?
... more >>
Help with WEB reference Windows Server 2003
Posted by Jeffrey Tate via DotNetMonster.com at 1/27/2005 8:07:20 PM
The error is:
The proxy settings on this computer are not configured correctly for Web discovery.
MSDN states that this is caused by:
This error appears in the Add Web Reference dialog box if you are developing on a machine that is behind a firewall and a proxy server has not been explicitly sp... more >>
New to VB.NET...HELP REQUIRED IMMEDIATELY
Posted by santosh singh via DotNetMonster.com at 1/27/2005 7:22:40 PM
Hi,
I'm new to VB.NET..I'm developing a login page...im getting this error..
System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is Open, Fetching. at System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String meth... more >>
How to invoke a method of a module using reflection?
Posted by feng at 1/27/2005 5:41:48 PM
Hi,
In my program, I have a loaded assembly that contains a
module (not a class, not a form, but a module). I need to
use reflection to invoke a method in this module and pass
some parameters to it. How do I do this? I tried various
things but they didn't work for me. Can someone show me ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Convert .pdf, .doc, .rtf, .htm, .pdb to .txt
Posted by Dave at 1/27/2005 5:38:07 PM
Greetings,
Is anybody aware of any source code that will export and convert pdf, doc,
rtf, htm, or .pdb to a plain text file? Thanks,
-Dave
... more >>
How to save a copy of outgoing mail
Posted by Justin at 1/27/2005 5:05:37 PM
I use .NET mail compoentn to send mails.
For example... SmtpMail.Send(mailMsg)
How to programatically save a copy of this email?
Thanks and regards
J Justin
... more >>
Invoking a Method via Reflection Issue
Posted by Jeff at 1/27/2005 4:48:17 PM
I am trying to dynamically load an assembly via reflection and then invoke a
method of that assembly that will populate a custom type collection passed
into the method byref. I am able to dynamically load both the DALC
component (for the method call) and the Entity component (for the custom
typ... more >>
Problem with System.Process and quotes/spaces in arguments
Posted by WALDO at 1/27/2005 4:36:22 PM
I wrote a console application that basically consumes arguments and starts
other command line apps via System.Process. Let's call it XCompile for now.
I wrote a Visual basic add-in that does pretty much the same thing to
XCompile. Let's call it MyAddin.
XCompile collects information to send to... more >>
Lost Focus in TextBox
Posted by Ellis Yu at 1/27/2005 4:23:44 PM
Hi all,
I've a form containing some textbox fields. I wrote a simple code to
check if the field is blank in lost focus event, an msg box will be shown to
remind user about it. But don't why the lost focus event is triggered when
the form is shown. I suppose the check code is effective afte... more >>
Load icon from resx
Posted by kurt sune at 1/27/2005 4:05:25 PM
Anybody has a tip of where to find info/example how to retrieve an icon
from a .RESX-file?
/k
... more >>
Creating an object using a type variable
Posted by Ramez at 1/27/2005 3:57:06 PM
Hi
I need to create an object of a class using a type variable.
for example, instead of writing:
X = new MyClass
I want to write something like:
Dim t as Type = GetType(MyClass)
X = CreateObjectFromType(t)
is this possible?
... more >>
Align an Image and Text within a WinForms RadioButton -- How to prevent text from overlapping image?
Posted by Samuel R. Neff at 1/27/2005 3:26:44 PM
I have a set of radio buttons in a win form that each have an image
and text, like so:
O [image] [label]
O [image] [label]
O [image] [label]
O [image] [label]
How can I set it up so that the image is left aligned, next to the
radio button indicator, and the text is left aligned next to ... more >>
Missing Framework nodes
Posted by Nikolay Petrov at 1/27/2005 2:53:34 PM
Where are System.Management and System.DirectoryServices?
TIA
... more >>
How to match full word
Posted by yxq at 1/27/2005 2:45:48 PM
Hello,
I want to make a program to scan files by keywords, but how to realize "full
word match"?
Thank you
... more >>
Plugins and Late Binding
Posted by ThunderMusic at 1/27/2005 1:54:52 PM
Hi,
I have some code to load some plug-ins, but the code requires me to know
the name of the class to load (here: SamplePlugin, derived from IPlugin) :
(Here is some C# code, but I use VB.Net to code my program)
using System;
using System.Reflection;
public class Driver
{
static ... more >>
Best way to handle Control.InvokeRequired without duplicating code?
Posted by Samuel R. Neff at 1/27/2005 1:42:35 PM
I'm trying to find a good way to handle Control.InvokeRequired without
duplicating four lines of code in every function/event. Typically
what I've seen in books is this:
If InvokeRequired Then
Invoke(new EventHandler(AddressOf thisFunc), new Object() { sender,
e})
Return
End If
At... more >>
Focus on a control
Posted by Roberto(DOTNET) at 1/27/2005 1:23:33 PM
Hi at all,
i have a little problem.
In a simple web page aspx i have a DataGrid (..WebControls.DataGrid) and
some others web controls (edits and buttons). The datagrid control is usad
to display some rows.
How i can put focus on the first row of datagrid? all of this in vbnet
obviously.
tha... more >>
Shell() in VB .Net?
Posted by John at 1/27/2005 1:21:01 PM
Now I am using the Shell command in the following way,
Shell("Notepad C:\Test.txt", AppWinStyle.NormalFocus)
If I save the content of Test.txt as binary data into my database and read
it back from the database. Is that possible to use the Shell command to
launch Notepad (or other programs li... more >>
Database 'Select' Problem
Posted by Nitin at 1/27/2005 1:16:07 PM
I'm using the following code
**********
command.commandtext="Select * from DB where Acc= 'Net Profit'
connection open
i= command.executescalar()
connection close
***********
This code returns zero(i=0)i use the following code it works fine
**********
command.commandtext="Select * from DB ... more >>
Regular Expressions - text between quotes
Posted by Fred at 1/27/2005 12:47:51 PM
I having a hard time with regular expressions, this is my first attempt at
using them.
I need to take a string which will have some text between quotes and return
the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place i... more >>
Name Parameters - Access
Posted by Art at 1/27/2005 12:37:02 PM
Help!
I'm writing a vb.net application that uses Access as a database. I've got a
bunch of queries that I wrote within Access. I'm running them from VB. Most
of these queries have parameters. I'm adding parameters to an OleDbCommand
using Parameters.Add(name,value). This works fine as ... more >>
Question of moving from VB6
Posted by Phil at 1/27/2005 12:34:06 PM
Not having lots of luck searching groups.google...
We are still using VB6 at work, so I bought my own copy of 2003 .Net.
I have to say I love the new auto-hiding toolbox & properties. But I
know it wil take some time for me to migrate programs over to the new
..net format... so....
Is it p... more >>
Returning exit codes from windows forms application
Posted by Zeno Lee at 1/27/2005 12:27:59 PM
What is the best way to return an exit code from a VB.NET windows forms app?
My Forms application is dual purpose. It is an interactive windows app. It
is also automated and run via a script and it needs to return an exit code
to that script.
I've tried a few ways to return an exit code.
... more >>
looking for a managed reporting tool
Posted by Bob at 1/27/2005 12:27:55 PM
I want to dump Crystal, one of the many reasons being that it requires a
client-side installation. I'm looking for a reporting package that
integrates into DotNet yet has absolutely no COM in it, so I can deploy my
app with just a file copy. I also need the report designer to be stand alone
like... more >>
VBNET2005 Express Beta
Posted by Jim in Arizona at 1/27/2005 11:47:30 AM
Is it just me not being able to find it in the menus, or is it not possible
to 'make .exe' with Visual Basic 2005 Express Edition Beta?
Thanks,
Jim
... more >>
dataset question
Posted by Barney at 1/27/2005 11:21:06 AM
I have a winform that calls a database and i generate a dataset to populate
my datagrid, now I allow the user to click on a cell in the datagrid which
then populates text boxes with details on the user selection. doing this i
make another call to the database. which i would like to avoid if po... more >>
DataGrid Question
Posted by BrianDH at 1/27/2005 11:19:05 AM
Is it possible, and if so examples please, to replace the Grid (Select, Edit,
Delete) button with an Image?
Thanks
BrianDH... more >>
Just plain reading a CSV into a two dimensional array
Posted by Patrick at 1/27/2005 11:17:24 AM
Hello - I can read the csv file line by line into a one dimensional array -
no problem. But when the data has 7 columns - and you'd like the Names to
appear in a combo box, it can get tricky.
Fred,0,0,0,0,0,0
Wilma,-1,1,0,0,0,0
Betty,1,0,0,0,-1,0
etc
I found examples elsewhere of using ... more >>
Need help: about OOP inheritance/abstract class
Posted by Tee at 1/27/2005 11:06:43 AM
Hi,
I have a base usercontrol with a method (blank method, no code), I have
another few usercontrols that will inherit this base usercontrol, but I want
to force all the usercontrol that inheriting this base usercontrol to
override the method with its own code. How do I do it?
I have tried ... more >>
Threads question
Posted by Brad at 1/27/2005 10:52:10 AM
I need to learn about threads and threading. I currently have a process
that is pulling 10 to 12 thousand records from the AS400 and formatting the
data then storing into a SQL server. This process is taking just over one
hour and I would like a progress bar or something to show that it is
act... more >>
Rounding Singles
Posted by Chaos2651 at 1/27/2005 10:39:05 AM
In C++, I was able to use this line of code (do not ask what about the object
names--its for a game).
reduce = AtkUnit.Hull / 100;
To get a percentage to porportionally reduce another integer (the idea is
that the integer is reduced to how much HP it has). In VB .NET, however, it
rounds ... more >>
TAB key and Keypress
Posted by spongebob-straight pants at 1/27/2005 10:30:56 AM
Hi all,
When I press the tab key, I cannot fire the keyup and the keydown or any
keypress events
How then would I capture those events?
Thanks
... more >>
Altering the PixelFormat of an Image
Posted by Phil Galey at 1/27/2005 10:22:34 AM
If you have a bitmap, but need for it to be of a different PixelFormat, how
can you do that? PixelFormat is ReadOnly. Does it have to be done while
Drawing to a graphics object? I wonder if there's a code sample available
somewhere in which this is done. Thanks
Phil Galey
... more >>
Threading
Posted by Brad at 1/27/2005 10:20:02 AM
I need to learn about threads and threading. I currently have a process
that is pulling 10 to 12 thousand records from the AS400 and formatting the
data then storing into a SQL server. This process is taking just over one
hour and I would like a progress bar or something to show that it is
... more >>
How do I get the files in a subdir?
Posted by ThunderMusic at 1/27/2005 10:18:31 AM
Hi,
My App must get the files *.Ext in AppPath\SubDir\. What's the best way
to achieve this using .NET framework 1.1?
thanks
... more >>
ActiveX, plug-in...whatever
Posted by Rob T at 1/27/2005 10:14:31 AM
The other day I posted a question about using ActiveX in my project.....
obviously, that's not the best solution. But I found this great article on
what the author calls rich-client which does EXACTLY what I'm looking for.
Being able to show a windows form in an IE window!
http://msdn.micro... more >>
Detecting Form Closure when X is clicked
Posted by pbowers NO[at]SPAM bowersdev-dot-com.no-spam.invalid at 1/27/2005 9:54:28 AM
This has probably be asked before but I'm trying to trap the event
before a user closes the main form of VB.NET application to show an
error message if there are unsaved changes. Can anyone point me in
the right direction?
*---------------------------------*
Posted at: http://www.GroupSrv.com
... more >>
Windows Users
Posted by Nikolay Petrov at 1/27/2005 9:35:31 AM
How to get a list of Local Windows users with Username, Full name and
Description?
TIA
... more >>
background timer process Q
Posted by Martin Williams at 1/27/2005 9:23:01 AM
One more tweak to my survey program. Since all the survey records are
stored in a dataset and updated to the database only when the program
closes, I need some sort of protection against a system crash. So, I'm
trying to have a timer running that updates the database every 10 minutes.
I'm wond... more >>
How to determine the version of a .dll?
Posted by Jeff B. Jr at 1/27/2005 9:09:04 AM
I need to write a small application that can check the version of a .dll
currently installed, and the version of the same .dll on an ftp server. If
the version on the ftp server is newer, it needs to be installed on the
machine. I'm having difficulty getting the version info from the .dll's.... more >>
passage in a book
Posted by mattie at 1/27/2005 8:47:03 AM
hi,
i was reading a vb.net book that said the following regarding:
Interfaces allow you to program using methods on the interface rather than
methods on the object?
How is this a benefit in lamen's terms?
thanks,
mj... more >>
TCP Listener - Client IP?
Posted by Amjad at 1/27/2005 7:27:04 AM
Hi
I made a simple TCP Listener server application that listens to a specific
TCP port for incoming packets from a client. Everything seems to be fine. I
still don't know how to determine the client's IP address (which is the
source of the received packets).
Does anyone know how to fin... more >>
Structures Vs. Classes
Posted by pmclinn at 1/27/2005 7:19:43 AM
I've noticed that many programmers use classes to store data about such
things like:
Class Customers
.....Phone
....ID
....Address
End Class....
In VB.net, does a 'structure' make more sense for storing this type of
data, if your not going to be using functions/Proceedures and such?
... more >>
Display PDF and TIFF images in VB.NET
Posted by Andy A38 at 1/27/2005 6:45:04 AM
Nothing fancy, I just want a control to display PDF and TIFF files in VB, and
perhaps let me zoom in and out of the image and scroll around.
I don't need to edit or do anything complex, just view the stuff. Surely
there is a built-in (i.e. FREE) control that will let me do this?
I am aware... more >>
please explain
Posted by rodchar at 1/27/2005 5:51:06 AM
hey all,
i was wondering when you lookup commands in MSDN help in the description
you'll often see it say that it's threadsafe or not. i know kinda what a
thread is (needle and thread right? j/k :) no i really know a little about
threads, but in lamen terms what does threadsafe mean?
tha... more >>
Application Memory Usage
Posted by christo.booysen NO[at]SPAM gmail.com at 1/27/2005 5:16:38 AM
Good afternoon all i am currently battling with memory usage of my
..NET applications. A simple form with 2 text boxes, 3 command buttons
use approx 8MB of RAM, though when compiled the exe is about 28KB. I
am developing solutions primarily for terminal server environments and
i cannot afford my... more >>
Running VB .NET win form straight from web click
Posted by BobAchgill at 1/27/2005 4:48:51 AM
When I run my sample application straight from a button
off the web... it loads OK but displays a interesting
message...
"Microsoft .NET Security Information
This application is running in a partially trusted
context. Some functionality in the application may be
disabled do to sec... more >>
createDocumentFromUrl usage in VB.NET
Posted by Vibhu at 1/27/2005 2:37:16 AM
Hello All,
I need to use mshtml.HTMLDocument.createDocumentFromUrl in VB.NET to
load a webpage. The code looks like this
Imports mshtml
Public DocumentFactory As HTMLDocument
would be very grateful if you could let me know how to solve this
problem in VB.NET. I am getting the error "Object... more >>
loading a url using mshtml.createDocumentFromUrl
Posted by Vibhu Bansal at 1/27/2005 1:47:02 AM
Hello,
I am having certain problems in trying to use the function
createDocumentFromUrl in VB.NET but get this error.."Object reference not set
to an instance of object".
Here is the code that I am using
Imports mshtml
Public DocumentFactory As HTMLDocument
Public Function GetWebPage(B... more >>
Connecting Database
Posted by farhan at 1/27/2005 12:56:20 AM
Please let me know code used to simply connect a database
and then add, delete, update records in asp.net using
vb.net. ... more >>
Att: Cor Ligthert - re: Connecting a textfile to a datagrid
Posted by moti at 1/27/2005 12:33:15 AM
I very much appreciated your answer to my question. But I was too
hasty in replying that it worked.
I am trying to connect a textfile via an ODBC connection and since I'm
new to VBNet it does not seem to work.
I made sure that my DNS for a text file is set ok in admin tools.
I then created ... more >>
Creating traffic simulator with VB .NET
Posted by Wouter van Teijlingen at 1/27/2005 12:30:37 AM
Dear Readers,
This is my first post to this group. I was pointed to this group in a
other vb group, so i have better luck here!
For my learning curve of VB .NET i want to make a traffic simulation
program. Before i start programming, i need to know if there even is a
possibility to make a ... more >>
How to set values on attributes in a structure with reflection
Posted by stensby NO[at]SPAM hotmail.com at 1/27/2005 12:29:58 AM
Hi,
I've struggled with this problem for a while now without finding a
solution.
The scenario is as follows:
- I have a flat text file exported from a main frame.
- I use a structure to map data to the data in the file:
Public Structure PartRecord
<VBFixedString(8)> Public PartID As S... more >>
MyGeneration for .NET
Posted by MyGeneration at 1/27/2005 12:02:34 AM
MyGeneration is 100% free. Are you tired of hand coding business objects,
stored
procedures? Why not spend your time doing other things? Let us help you.
See http://www.mygenerationsoftware.com
We also offer a free .NET Architecture available in C# and VB.NET called
dOOdads that you can gene... more >>
|