all groups > vb.net > may 2004 > threads for tuesday may 11
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
Saving pics in Access
Posted by Brad Allison at 5/11/2004 11:24:10 PM
I am using a small Access database as the back end of a VB .NET program. I
am not a newbie to Access, but I have never had the need to store pictures
until now. I have a field in a Master table named "Picture" and I have set
the Date Type as OLE Object. I know that this might be the wrong news... more >>
SCORPION53061
Posted by IAmIronMan at 5/11/2004 9:21:03 PM
You are Captain Aceveda hahahahah, I am just kidding of course!! Do you watch "The Shield"? You and Aceveda are a lot alike
you changed teh web page (http://kjmsolutions.com/datasetarray.htm) but it still is not understandable. In fact it is even worse now
You are pretending to be a programmer o... more >>
Disable context menu of a flash object in a vb.net app?
Posted by kulganj NO[at]SPAM yahoo.com.au at 5/11/2004 7:22:49 PM
I have a flash movie (.swf file) that I've embedded on a form in my
VB.NET application. Everything works great. Although, when a user
right-clicks over the flash movie a context menu is displayed. Does
anyone know how I may get rid of this?
Thanks... more >>
Referring to controls using String Variables??
Posted by Paul Bromley at 5/11/2004 6:20:17 PM
Can someone tell me if there is any way of doing this? As an example - let
us say that I have a button called cmdLetter and a textbox called txtLetter,
can I in some way manipulate the names of these controsl to extract the
string Letter and then use this string later to refer to the Controls?? I... more >>
Reading XML document with blank lines at top
Posted by Ryan S at 5/11/2004 5:57:36 PM
I am trying to read an XML document generated by a web server using the
XMLTextReader class, but the document generated appears to have some blank
lines at the top that are causing problems.
If I connect directly to the URL, when I call the ".Read" method on the
XMLTextReader, I get the messag... more >>
MDI Menu
Posted by LinasB at 5/11/2004 5:39:33 PM
Hi All,
How to hide menu on MDI form, when user activate Child form ?
In a VB6 this worked by default, in VB.NET menu merges by default.
LinasB
... more >>
Has anyone here written a custom object browser?
Posted by Jeff Johnson [MVP: VB] at 5/11/2004 5:28:32 PM
If so, how did you distinguish between classes and (VB) modules?
... more >>
Popup Event not Firing
Posted by Tom at 5/11/2004 4:58:08 PM
Hi
I have inherited a from the context menu to create my own contextmenu,
however the Popup event is not getting fired:
Private Sub ColorContext_Popup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Popup
End Sub
This code works fine on context menus ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I acquire MethodInfo WITHOUT hardcoding the method name in GetMethod!?
Posted by le.socha NO[at]SPAM comcast.net at 5/11/2004 3:58:09 PM
hey,
How do I acquire MethodInfo WITHOUT hardcoding method name as a
string?!??!The fact I have to use xxx.Gettype.GetMethod("MyMethod",
xxx) is making me want to drive an ice pick into my eye!
I have exhausted my resources and I cannot find a way out of it.
Having to use that creates a da... more >>
Create column in a Datagrid
Posted by ruca at 5/11/2004 3:46:05 PM
Hi,
I have two different questions to ask:
QUESTION 1:
Can I create dinamically a column in a datagrid? How?
I have a datagrid that must have 5 columns, but in some very special cases I
have to add another column. How can I do this in code?
QUESTION 2:
When I Debug my Web application, t... more >>
Problem with the mapped drive
Posted by Eric Clapton at 5/11/2004 3:26:46 PM
I have created a vb.net project in local drive and the program contains
crystal report 9.0 through ODBC and link to SQL server. I can run this no
problem on WinXP. But when I move the project to a mapped drive and run the
same application there. I got the following error:
"Just-In-Time Debu... more >>
Automatic resizing of controls when VB.Net Windows forms is resized
Posted by tangokilo at 5/11/2004 2:51:47 PM
Hi,
I believe my questions is a beginners questions and I appreciate your help.
I create controls (mostly in a group box). When user maximizes the form I
want to adjust the sizes of these controls, eg. lisct/combo boxes, text
boxes, etc automatically and accordingly.
How can I do this in ... more >>
MultiExtended & databound Listbox problem
Posted by tangokilo at 5/11/2004 2:42:41 PM
Hello and thanks for your help,
I have the following Listbox created in VisualStudio 2003 designer, desiring
to select multiple entries from that list:
-------------------------------
ListBoxUser.Location = New System.Drawing.Point(16, 240)
ListBoxUser.Name = "ListBoxUser"
ListBoxUser.Select... more >>
Themes
Posted by Tony at 5/11/2004 2:20:35 PM
How can I add themes to my VB .Net web projects?
Thanks
... more >>
File Dates - Wrong date returned
Posted by Juan Romero at 5/11/2004 1:40:39 PM
Guys,
I am reading file information from disk using the System.IO.File object.
This is what the operating system is displaying on Explorer:
File Name Modified
====================================
File1.ext 6/19/2003 1:05 PM
File2.ext 6/14/2000 ... more >>
crystal report viewer cant assign report source
Posted by JC at 5/11/2004 1:26:03 PM
In my Crystal Report Viewer control properties, the reportsource field is not enabled and will not allow me to insert a reportsource. I have also tried to code in the reportsource but get an error. Is there a reference I have not added to my project? Thanks.... more >>
Try Catch End Try - Performance issue
Posted by Bob Achgill at 5/11/2004 1:08:30 PM
I really like this function but have tried to slow down
on using it because I get a 1 second pause each time I
use it. I don't really understand why the computer has
to think for 1 second! Especially at 2.8 GZ and 1GB RAM.
The same pause happens on different situations: database
access ... more >>
ANSI Textfile
Posted by Arne at 5/11/2004 12:55:41 PM
Hi,
I would like to save a textfile in exactly the same format, as if I use
Notepad and choose the encoding style to ANSI.
How can I accomplish this in vb.net (I'm retrieving the input via my Sql
server)
I've already tried several differenct encoding properties on my
streamwriter, but no... more >>
Split Whitespace?
Posted by Raterus at 5/11/2004 12:25:20 PM
Hello,
I'm trying to come up with an algorithm that will parse a search string, =
entered into a textbox. Basically it is not going to be too =
complicated, it will replace any delimeters the user puts in (comma's, =
semicolons, etc..) with spaces, essentially ignoring them, and then =
split... more >>
coding performance question...?
Posted by Paul M at 5/11/2004 12:02:28 PM
which is better coding performance wise?
----------------------------
for x as integer = 1 to 10000
'.......
next
----------------------------
or
----------------------------
Dim x as integer
for x = 1 to 100000
.........
next
----------------------------
thanks,
Paul
... more >>
Right click menu
Posted by Steve Lloyd at 5/11/2004 11:47:06 AM
Hi, this is a faily lame question but how do i display a menu when the right
mouse button is clicked on a windows form/data grid ?
Thanks
Steve..
... more >>
unicode sorting
Posted by Vojislav at 5/11/2004 11:30:01 AM
How can I sort datatable according to unicode? I set corret regional and
culture settings but Basic .Net sorts according Ascii. It sorts letters with
accents like without them.
thank you in advance
... more >>
Update DataSet's row thru code
Posted by Happy at 5/11/2004 11:20:34 AM
hi
how to update dataset's row
thru code
i got the new row as a data row in which the primary key remains the same
but was unable update the non primary keys
Thanks in Advance
... more >>
How to connect network drive
Posted by msnews.microsoft.com at 5/11/2004 11:10:00 AM
Hi!
Could anybody tell me, how to connect a network drive in VB.net.
WnetAddConnection2 does not work, like in VB6.
Is there any function in the framework?
Thx Werner
... more >>
papersize with code
Posted by bafi at 5/11/2004 11:06:04 AM
please hel
i cant change the default printer papersiz
can you show me an example for
a4 paper siz
and
custom paper siz
simple example pleas
for default printer papersiz
... more >>
Need help fast, DataSet question!
Posted by Lars Netzel at 5/11/2004 10:53:23 AM
I'm trying to copy data from two tables in a Source db into two Tables in a
Destination db and the Tables designa are the same.
I created 4 adapters...
2 for the two tables in the source db
2 for the 2 tables in the destination db
Then I filled a SourceDataSet with the Source adapters
... more >>
Bring To Front of a Process/Other application
Posted by DraguVaso at 5/11/2004 10:31:41 AM
Hi,
I want my application to bring another application to the Front.
I thought best way to do this was by the Process-model:
Dim c As Process = Process.GetCurrentProcess()
Dim p As Process
For Each p In Process.GetProcessesByName("EXTRA")
If Left(p.Main... more >>
Draw ToolbarButton Image
Posted by Tom at 5/11/2004 10:20:24 AM
Hi
Hi i am trying to draw on top of a button on a standard toolbar. All i
want to do is draw a small rectangle on the button to represent the
selected color.
I have tried the folowing code in the toolbar's parent control, which
is fired when the selected color is changed:
Dim r A... more >>
Connect with PostGres
Posted by Fabio at 5/11/2004 10:03:47 AM
Hi all,
How can I connect with PostGres 7.4 using vb.net???
any idea???
Thanks in Advance,
Fabio
... more >>
Stupid Question of The Day
Posted by Liz at 5/11/2004 9:56:46 AM
Do you have to pay to register the Crystal Reports that comes with VS 2003 ?
I never bothered with it before ...
... more >>
global constants?
Posted by Craig Buchanan at 5/11/2004 9:43:01 AM
Where do I declare constants that I want to be visible *outside* of the
application. Or does this only work with enums?
I've declared constants in a normal modue, which can be see throughout the
application, but not from an application referencing this application.
Thanks,
Craig
... more >>
Hey Cor/CJ/William - Continuation of 2 Forms Data
Posted by MadCrazyNewbie at 5/11/2004 9:24:39 AM
Hey CJ/Cor/William,
Hope you could advise me a little again?
Now i`ve got in my Button Click Event on my first form(frmFaxs):
Dim LoadFaxMeterReadings As frmFaxMeterReadings()
LoadFaxMeterReadings.FaxID(BindingContext(dsFax, "Faxs").Position)
LoadFaxMeterReadings.Show()
(The Above tell... more >>
Syntax error with Update command - how to use?
Posted by Jerry at 5/11/2004 9:18:44 AM
Greeting,
I am trying to update a detail table that does not have a
unique key (that is the exercise). With the code below I
am getting the error message "Incorrect syntax near
keyword Set" (note: sql code is all on one line). I may
be guilty of tring to use Com ADO syntax. In the Whe... more >>
Can a constructor return Nothing??
Posted by Eidolon at 5/11/2004 9:06:41 AM
Is there any way that you can write your constructor so that it returns
nothing?
For example:
Take a Customer object which has a constructor whose constructor has the
signiture:
Public Sub New(CustomerID as String)
What i would like to do is to write it so that the the actual code of the... more >>
WinCE question...
Posted by parth_mca NO[at]SPAM hotmail-dot-com.no-spam.invalid at 5/11/2004 9:00:30 AM
i want to start WinCE programming in vb.net...
which version of visual studio.net supports winCE programming for
PocketPC ? and where should i start from...?
... more >>
systray Question...
Posted by parth_mca NO[at]SPAM hotmail-dot-com.no-spam.invalid at 5/11/2004 9:00:29 AM
i hv an application (socket programming) and i want when the client
application receives a message it should popup from the systray..
so i want to run my application in systray..can ne 1 help me?
... more >>
found it! was: counting lines of textbox
Posted by HDB at 5/11/2004 8:55:48 AM
Thanks for the responses in a former thread about getting the count of lines
in a multiline textbox with wordwrap.
After some tinkering, I found the solution (based on a VB6 solution, had to
modify a bit for VB.NET):
<DllImport("user32.dll")> Private Shared Function SendMessage(ByVal hWnd As... more >>
vb.net and c# .net
Posted by Eric Clapton at 5/11/2004 8:51:18 AM
When should I use vb.net and when I should use c#.net? What is pros and
cons?
... more >>
How do you write a dll that passes back an Array?
Posted by peter NO[at]SPAM mclinn.com at 5/11/2004 8:39:04 AM
How do you write a dll that passes back an array.
'For example I create a Recordsset.
Colum A
Value1
Value2
Value3
'Create Array
Dim MyArray(2) as sring
'Assign values
MyArray(0) = ...field("Value1")
MyArray(1) = ...field("Value2")
MyArray(0) = ...field("Value3")
now I want to return... more >>
Saving webpages as image using AxWebBrowser
Posted by Carl Blanchard at 5/11/2004 8:34:26 AM
Hi all ive managed to get the web page to save as an
image, but the only saves part of the webpage (the visable
part) how is it possible to save the webpage as a complete
image, i.e. including the hidden part of the page....
people who use msn, if you can help me please add me your
list z... more >>
gros souci avec une erreur
Posted by aurore.rives NO[at]SPAM laposte.net at 5/11/2004 7:47:46 AM
Bonjour,
Je suis en stage, et je programme en VB.net.
Je voudrais me connecter à une base de données VisualFoxPro6 et quand
j'exécute j'ai une erreur qui est:
Aucune information d'erreur disponible :
REGDB_E_CLASSNOTREG(0x80040154)
[InvalidOperationException: Le fournisseur 'VFPOLEDB' n'es... more >>
Painting on a Form
Posted by Stefan Richter at 5/11/2004 6:28:29 AM
I am just trying to paint on a Form.
I tried it with Bitmap.SetPixel, but that didnt work,
now I tried a method from the MS API.
Public Sub DrawRectangleFloat(ByVal e As PaintEventArgs) ' Create pen.
Dim blackPen As New Pen(Color.Black, 3)
' Create location and size of rectangle.
Dim x As Si... more >>
Communicating between .net .dll and asp
Posted by peter NO[at]SPAM mclinn.com at 5/11/2004 6:13:09 AM
I'm looking to pass two variables from an asp page to vb.net dll.
IE. intA= 1 intB = 4
The dll should add these two integers together and return 5.
[intA+intB]
I know this is a simple example that could be done within asp easily
but I'm trying to understand how the DLL communicates with ... more >>
How to try something repeatedly using try-catch?
Posted by Ed Staffin at 5/11/2004 5:08:37 AM
Hi,
In vb6, if I had an error handler I could catch an error,
make a correction and then try it again using resume. I
want to do the same thing in vb.net.
I am trying to deal with some concurrency issues. I want
to be able to catch a error, wait a few milliseconds and
then try it again.... more >>
FileShare.Read error ?
Posted by gaurav_bamania NO[at]SPAM yahoo.co.uk at 5/11/2004 4:33:01 AM
Hi !
I have 2 different processes/application. One is writing to a file and
another is reading from it. For some reason the code doesnt seems to
work and gives mscorlib.dll IOException error "This file is being used
by another process".
Both the applications are in C#.
P.S. Even if I try... more >>
Simple Encryption of text string
Posted by larry mckay at 5/11/2004 4:14:20 AM
Hi,
Does anyone have any simple text string encryption routines that are
easy to implement? I'm trying to prevent users and system
administrators from figuring out how I implement things.
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USEN... more >>
vb.net Timebomb (trial timebomb with expiration)
Posted by larry mckay at 5/11/2004 4:14:18 AM
Does anyone know how to develop or code a timebomb in vb.net that uses
either the registry or something else that would be take a fair amount
of time to hack.
I'm developing an application that I'm trying to prevent users from
distributing it after a particular time expires and I do not want for... more >>
generic function in a class to be used by reference only
Posted by elka at 5/11/2004 3:01:03 AM
From asp.net (vb) or another winforms vb.net application I would like to us
generic functions compiled in .dl
Of course a reference is made to the .dl
All the examples show a component to be compiled as a creatable objec
I would like to use the functions more like a librar
for instanc
pu... more >>
Puzzling error - System.Resources.MissingManifestResourceException
Posted by Aeryn at 5/11/2004 2:26:05 AM
I have a windows solutions containing three forms. All works fine until I customize a form's Icon property. The icon displays fine in the IDE but if I try to run the application it throws "System.Resources.MissingManifestResourceException" before the main from is displayed. I've looked in the corres... more >>
MsgBox confusion
Posted by Radith Silva at 5/11/2004 1:51:40 AM
I need to use the MsgBox function like I used to in VB 6.0
So all i do is:
MsgBox ("Please provide Input")
BUT IN .NET:
The error reads "msgbox is a namespace"
The IDE always converts "MsgBox" to "msgbox" (ie. changes case)
Thanx
*** Sent via Developersdex http://www.developersd... more >>
3rd party Treeview control?
Posted by Tarren at 5/11/2004 12:04:56 AM
Hi:
I have some specific needs for a treeview control that the standard .NET
treeview control does not provide, without copious amounts of code.
Does anyone know where I can find a vendor based treeview component for
purchase, or has anyone dealt with similar scenario? Alas, my price range... more >>
|