Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
all groups > vb.net > april 2004 > threads for wednesday april 7

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

Making a 'read-only' dropdown listbox
Posted by Jason Sobell at 4/7/2004 11:58:54 PM
Hi, I'm trying to figure out a sensible way of making a combobox (configured as a dropdown list) behave in a read-only fashion. Setting Enabled=False will grey the text and the background, but I want to leave the component looking normal but not allow the user to change the contents. I've trie...more >>


custom UserControl with Proprety named "ReadOnly" in VB.NET
Posted by Marcin Floryan at 4/7/2004 11:57:39 PM
I am creating a custom control (Inherits UserControl) and my control containt a TextBox control. TextBox control has a Property called "ReadOnly". I would like to expose this property outside my own control, but it seems impossible because when I write: Public Property ReadOnly() as Boolean ....more >>

C to VB: meaning of ":" is structures
Posted by M. Angelo at 4/7/2004 11:19:04 PM
What is the meaning of ":" in this context" typedef struct tagMENUBARINFO { DWORD cbSize; RECT rcBar; // rect of bar, popup, item HMENU hMenu; // real menu handle of bar, popup HWND hwndMenu; // hwnd of item submenu if one BOOL fBarFocused...more >>

C++ DIB's
Posted by Sueffel at 4/7/2004 11:07:46 PM
I'm sure this has been asked, but I cannot fid it. I have a DLL (Not mine, 3rd party) and the documentation simply says "Return DIB". Well, since this sucker was made with C++, I'm at a complete loss. Basically, this sucker returns the pointer to the DIB as an Object, which is odd on me. So, ...more >>

Sending email to an Exchange Server
Posted by Frank at 4/7/2004 11:02:28 PM
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange = Server 5.5. I asked the client if they're email server supported SMTP, = and got the following reply (exact quote): Exchange 5.5 uses IMS connector for communicat...more >>

writexmlschema not working
Posted by WStoreyII at 4/7/2004 10:36:48 PM
i have used the following code(which is straight from the msdn) to try this : how ever this and anyother method that i have tried only give me a An unhandled exception of type 'System.InvalidCastException' occurred in system.data.dll Additional information: Specified cast is not valid. do...more >>

Capture File Output of Child Object
Posted by joecm NO[at]SPAM yahoo.com at 4/7/2004 10:25:38 PM
Is it possible to capture the File I/O of a child process? If so, how? Thanks!...more >>

Dynamic Web Dialogs
Posted by Gary K at 4/7/2004 9:51:03 PM
I am writing code for web parts, but seeing as they are just glorified web controls & VB.NET is slightly older, I'm hoping that my query can be answered in this group. (Although I am posting this to the Sharepoint Developers group as well. Hope I'm not violating protocol. I would like to have a li...more >>



Circular references ?
Posted by Dave S at 4/7/2004 9:18:07 PM
Anyone know how to get round the problem of circular references in VB.NET (sorry I'm a .NET newbie). I create one project which has 2 classes in it, MyHandler and MyObject. MyHandler just needs to call another class in a different project and pass a parameter of type MyObject to it. So the cla...more >>

registering .dll and using it in other web pages
Posted by Arvind P Rangan at 4/7/2004 8:25:54 PM
hi, I have compiled a .dll. steps followed is try to upload the dll to global assembly method 1: al /i:temp.dll but this gives an error method 2: gacutil /i temp.dll - this uploads dll to global assembly. Next how can i use it. if i type imports temp it gives error its not shown in the ref...more >>

Mds Child question
Posted by WStoreyII at 4/7/2004 8:22:37 PM
i have a form which is an mdi parent i have another form that i am trying to get to open when i click the open button here is my code dim edit as frmedit edit.mdiparent = me edit.show this is not working so how do i get it to open? wstoreyII ...more >>

HOW TO: Use user defined DLLs as plugins
Posted by M. Angelo at 4/7/2004 8:17:19 PM
Situation: An EXE scans the path for DLLs and uses all DLLs and only the existing DLLs All DLLs provides the same functions while doing different processing Program restart is NOT desired Question: How to declare the DLLs functions for a end user selected DLL? ...more >>

VB.NET threading question
Posted by gdekhayser NO[at]SPAM voyantinc.com at 4/7/2004 7:38:59 PM
Weird question, hopefully someone out there can help. I am basically iterating through a list of files, using QueueUserWorkItem to spawn a thread to process each file. I am using a wrapper class around the processing logic as a way to set parameters for the logic. So I do the QueueUserWor...more >>

Question about Inherit UserControl
Posted by Issac at 4/7/2004 7:22:24 PM
Hi, I created an Inherit UserControl which inherits textbox with additional property say 'Type'. I used in my forms and everything works fine. But afterward, I want to remove (or rename) such property. I find that the auto inserted code (InitializeComponent) for that UserControl's pr...more >>

How to get frmMain to load before other dependent forms?
Posted by Dean Slindee at 4/7/2004 7:09:03 PM
My project has a main form (frmMain, the startup object for the project) and several other "child" forms that are painted within a large panel on frmMain. In each form's Form_Load event, a Weak Reference for that form is loaded into a global Hash table, like this: Dim wr As WeakRefere...more >>

mdi with and childform closing
Posted by andreas at 4/7/2004 6:06:58 PM
I can open several childforms with the following sub in de mdi form after clicking a button Private Sub NewWindow() Dim ch As New ChildForm() ch.MdiParent = Me ch.Text = "Textwindow nr " & Me.MdiChildren.Length.ToString ch.Show() end sub I want to open automatically a new childform ...more >>

web button
Posted by Alex B at 4/7/2004 5:59:37 PM
A simple web button question: How do you make it so that a web button's click event is triggered when someone hits <enter> on a web form? i.e. the page has three input boxes on it and a web button. When enter is pressed, a postback occurs, but no events are triggered. ...more >>

Replace a letter in a string
Posted by Dinko Deranja at 4/7/2004 4:53:53 PM
Suppose that you have a string e.g. "delicious" and an integer e.g. 5. How to replace the character at position 5 with next character (in position 6) so that "delicious" becomes "deliicous" ? ...more >>

Toolbar and mdi child forms
Posted by Jamie Di Natale at 4/7/2004 3:31:33 PM
I have a MDI Parent form with a toolbar that has a Next and Previous button on it. I open up a MDI Child form, that has two routines, called nextrec and prevrec. When I hit the Next or Previous button on the parent window, I want the corresponding routine (nextrec/prevrec) on the child form...more >>

Visible lines in richtextbox control
Posted by Juan Romero at 4/7/2004 3:10:24 PM
Hey guys, Does anyone know how to find out the visible lines in the richtextbox control? For example, let's say the control has 30 lines, but due to size it can only display 10. The current lines being displayed (assuming first line to be 1) is 10 to 19. How do I find this out programmatica...more >>

How to play sound in .net?
Posted by CM at 4/7/2004 3:10:16 PM
Hi, I used to use the following code to play sound in VB6: Public Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long call sndPlaySound32("c:\WinNt\Media\ding.wav", 0) However, .net don't recognize "cal...more >>

Changeing CrystalReport.NET database in VB.NET code
Posted by Brian Henry at 4/7/2004 3:04:57 PM
Is it possible to change the database in which a crystalreports.net report is linking to? we have a bunch of reports made that pull straight form the database server, but work with differnet versions of it (all same table structures) such as live and development. Can you tell a report to execute ...more >>

block number of lines in a textbox
Posted by Fabio at 4/7/2004 3:02:33 PM
Hi all, How can I block the number of lines that the user entered in a texbox, I need that the user enter only 4 lines of text. how can I block this and not permit that the user copy other text with more than 4 lines into the textbox too. Thanks in advance, Fabio ...more >>

Determine full name of an object at runtime.
Posted by Lance at 4/7/2004 2:51:04 PM
Is there any way to determine the full name of an object at runtime? For example, if I have the following Namespace MyNameSpac Public Class MyClas Protected MyObject As Object 'This could be any type End Clas End Namespac then I want a function that would return the string, "RootNam...more >>

Creating Custom Libraries
Posted by elroyskimms NO[at]SPAM yahoo.com at 4/7/2004 2:37:36 PM
I'm coming from C++ programming 5 years ago into VB.NET, so please be patient with me. In C++, I was able to create a "library" of functions and procedures that I would commonly use in various projects and simply "include" them when compiled. In my VB.Net web applications, I have several functio...more >>

How to add activeX control to .Net Developmet
Posted by Keith Butler at 4/7/2004 2:11:09 PM
Hell I would like to add ActiveX control to my .Net I ran "Regsvr32 c:\anActiveX.ocx" and gott a Succeeded Message. But how do i get the control Thanks in advanc Keith...more >>

combobox q
Posted by Strahimir Antoljak at 4/7/2004 2:01:09 PM
Is there a way to make combobox expand itself when a user start typing into it. DrowDownStyle = DropDown. Any help is very welcome. thanks -- Strah @ Langan ...more >>

inheriting constructors in vb.net
Posted by Brad Langhorst at 4/7/2004 1:52:33 PM
Books online says that constructors are not inherited in vb.net (grrr - why not?) I have a series of classes that share the same constructors and find myself cutting and pasting when i make changes to them ... a sure sign of something badly wrong. How do you all deal with sharing this code?...more >>

How to get a specific check box cell value in datagrid
Posted by jiuqin NO[at]SPAM yahoo.com at 4/7/2004 1:50:06 PM
Hi I have a datagrid which has 20 rows and 20 columns, 15 of 20 columns are checkboxs and their headertexts, datafields are dynamic. I need to loop through the whole page to see if the specific check box cell is checked or not. The code is as follows: For rowindex = 0 To myDataGrid.Items.C...more >>

How do I determine default properties?
Posted by mike at 4/7/2004 1:41:02 PM
I have received the following upgrade warning in several apps Couldn't resolve default property of object Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037" How do I determine what the default property should be In particular i need to be able to do it for a ...more >>

Oracle Connection
Posted by Francis Awofeso at 4/7/2004 1:40:01 PM
I am new to .NET and I am trying to connect to Oracle database. Can someone with this experience please describe the steps or process to connect to Oracle from .Net. I will appreciate it if anyone can recommend a URL or book or document that described the process. Thanks in advance Francis Awo...more >>

most usefull 4 all
Posted by bijujoy_77 NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 4/7/2004 12:55:49 PM
Suppose ,I don't want to show my coding to others, but I need to give the same module to others for another project . How can I add one existing module to another project with out showing coding. regards ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- htt...more >>

with out opening Crystal report, how can I give the command
Posted by bijujoy_77 NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 4/7/2004 12:55:48 PM
I want to print an sales invoice with out open crystal report. I want to know ,with out opening Crystal report, how can I give the command to be printing invoice. I'm using the following lines to open a crystal report Dim myreport as new reportdocument() Dim Rptfrm as new project1.repor...more >>

Updating DataAdapter in Subroutines
Posted by Gary at 4/7/2004 12:52:52 PM
I have a form that takes one Contact record and edit's it. The routine used is as follows: Private Sub ContactMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim strSQL As String strSQL = "Select * from Contact WHERE sysID = '" & ...more >>

VB.Net Book Suggestion?
Posted by Arda Han at 4/7/2004 12:12:20 PM
Hi friends, I am a Delphi programmer. I must change my skill to VB.Net. I have software algorithm. But I don't know language syntax. What is your recommended books for learning Thanks Arda ...more >>

code takes a while to return if error
Posted by Scot at 4/7/2004 11:54:24 AM
I have the following code: Dim IP, domainName As String domainName = "yahoo.com" Try IP = System.Net.Dns.GetHostByName(domainName).AddressList(0).ToString() Catch ex As Exception IP = "Not Valid" End Try Console.WriteLine(IP) System.Threading.Thread.Sleep(2000) When it ha...more >>

iShellFolder, BindToObjects and IiEnumIdList in VB.Net
Posted by Nicola Garone at 4/7/2004 11:53:51 AM
Hi all, I need to enumerate pidl in a directory which I got (I think) the rigt pidl, but I don't know how to procede. here is a piece of code (folder is a IShellFolder object and it seems to work correctly) Dim idEnum As IEnumIDList Dim pidEnum As IntPtr folder...more >>

I want to print an sales invoice with out open crystal repor
Posted by bijujoy_77 NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 4/7/2004 11:37:28 AM
I want to print an sales invoice with out open crystal report. I want to know ,with out opening Crystal report, how can I give the command to be printing invoice. I'm using the following lines to open a crystal report Dim myreport as new reportdocument() Dim Rptfrm as new project1.reportfr...more >>

Equivalent to C# typeof()?
Posted by Steve Brecher at 4/7/2004 11:35:55 AM
AppSettingsReader.GetValue method: Public Function GetValue( _ ByVal key As String, _ ByVal type As Type _ ) As Object In C#, I would invoke this, e.g., with: myConfigReader.GetValue("param", typeof(string)) What would I pass for the type parameter in VB.NET? -- For mail,...more >>

how to capture form_Mouse events?
Posted by Jerry at 4/7/2004 11:35:29 AM
Hi All, I am trying to capture the Form MouseHover event and write text to the console but nothing is happening. So I tried to capture the MouseMove event. Nothing happens in the MouseMove event sub. Do I have to set some property on the form to activate the MouseEvents? I noticed in ...more >>

Automating dialog with web server from VB.NET
Posted by Mark Gross at 4/7/2004 11:33:32 AM
I am attempting to programatically drive a Lotus Notes web application from a VB.NET database application (who wants to rekey information in one database into someone else's web page for entry to theirs?). I am using the System.Net.WebClient to communicate with the LotusNotes server. It is not...more >>

CheckedListBox Question
Posted by Derek Martin at 4/7/2004 11:24:54 AM
Here is some code that I need help with please: Dim result As New ArrayList Try For i = 0 To objecttest1.PersonList.person_returnnumber - 1 result = objecttest1.PersonList.time_returnpunches(objecttest1.PersonList.person_getb yid(i).userid, "03/08/2004", "03/09/2004", True, False...more >>

data adapter
Posted by steve at 4/7/2004 11:18:01 AM
i'm calling a web service that returns a dataset. i'm trying, but failing, to use that dataset to populate a local sql server table. the table names between the two are different but their structures are the same. here's pseudo-code: dim mytable as string = "otherstuff" dim mydataset as dat...more >>

Ask about Controls' name
Posted by Neline at 4/7/2004 11:13:24 AM
http://www.sana.f4w.net/snap00026.jpg i want to know the control name of top bar - "Homepage , Inventory....." and the control name of the left hand side panel http://www.sana.f4w.net/snap00027.jpg i want to know the control name of the left hand side list Are they already exist in vs.net? ...more >>

Menu merging in MDI applications
Posted by Simon Jefferies at 4/7/2004 11:07:43 AM
Hello, Whats the best way to merge menus together? I have an MDI application with a simple main menu with items like File, Edit, View, Tools and Help etc. I'd like the MDI child windows to add their own menus to the main menu of the application. I have noticed that they seem to go on the en...more >>

passing data sets between objects
Posted by Brian Henry at 4/7/2004 11:05:13 AM
What is the best way to pass a data set between objects? I have a custom control which will depend on a dataset (kind of like a bound contorl, but im handleing it differently) is it best to pass as a public variable or a property? since a property only retrieves By value, and not by reference, w...more >>

Manually dropping the DateTimePicker calendar?
Posted by Scott at 4/7/2004 10:42:25 AM
Hi, I need to programmatically drop the .NET DateTimePicker calendar. I did this in VB6 by doing the following: SendMessage DTDateTime.hwnd, WM_KEYDOWN, VK_F4, 0 This worked because the F4 key is the key you press to get the calendar to drop down. I'd like to do this w/o API calls...more >>

Value Given Error - Newbi
Posted by MadCrazyNewbie at 4/7/2004 10:02:44 AM
Hey Group, I keep getting a error saying "No Value Given For One Or More Parameters". Unfortunatly I don`t know where this error is coming from:(. Can I run through my code line by line, so I can see which line is faulting? Regards MCN ...more >>

overflow checking
Posted by Sean Capstick at 4/7/2004 9:56:28 AM
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could generate a number > 2 billion (<4) which then needs to go into a signed 32 bit integer. I don't want to disable it for the entire program though, just at one s...more >>

Barcode geneeration and PDF?
Posted by Big D at 4/7/2004 8:56:47 AM
I am working on an online promotional deal for a client where I need to be able to create a barcode that can be redeemed at checkout of one of their branch stores. Has anyone worked with this before? It seems pretty straitforward in terms of genrating the barcode dynamically from the numbers I...more >>

A Class Question
Posted by Keith Rebello at 4/7/2004 8:24:09 AM
I have almost written a class to draw some vectors on either a PictureBox or to a PrintDocument. Besides all the properties, the class has one method named Draw. In my class constructors, I send either a PictureBox or a PrintDocument and get all the properties of the drawing surface to size m...more >>

Tcp Socked Closed Event
Posted by Haim at 4/7/2004 8:06:28 AM
Is there a away to detect when the remote side closed the connection? in the old vb6 winsock object there was an Event raised when the remote side Closed the socket connection, Socket_Closed ...more >>

which programming lauguage I can use?
Posted by barbara_dave NO[at]SPAM yahoo.com at 4/7/2004 7:51:36 AM
Hi all, I have an old VB program which call a dll wrote by c. I need to upgrade the program with Visual Studio .net. I like to use VB.net and I like to change dll code to .net programming code too. which language I should pick that make things easy to do? Please give me some suggestions. T...more >>

Map Drive in VB.NET
Posted by Joe Stanfield at 4/7/2004 7:51:11 AM
Hello How do I bring up the standard "Map Network Drive" dialog box using VB .NET I've seen posts that describe how to map a drive (either via API or via the 'net use' command), but I want my program to bring up the system's default "Map Network Drive" dialog box (that the user would see if they...more >>

Data is not inserting inn database
Posted by Pushpendra Vats at 4/7/2004 7:19:04 AM
Hi , I am trying to insert records into database. I am trying to write the following code. On button1 click event i am inserting five records and after that i am calling the update method of dataadapter to update the records in database. Records are inserting but all the five records have t...more >>

How to auto scroll a richtextbox in Visual Basic .Net
Posted by donnor0018 NO[at]SPAM hotmail.com at 4/7/2004 6:59:36 AM
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to the control or the scrolltocaret method I decided that it would be worth posting to anyone who might...more >>

VB.Net 2002 Missing names
Posted by JimJ at 4/7/2004 6:56:04 AM
I use Visual Studio.Net 2002 to code in VB.Net on a Windows XP SP1 PC. When I am coding and open a solution, only the first 9 names/titles are shown in the tabs across the screen. My application has quite a few classes etc and I have to hold the cursor above each blank tab to get what each one is....more >>

C dll reference/call works in VB6, not working in VB.NET
Posted by john_germani NO[at]SPAM adp.com at 4/7/2004 4:35:47 AM
I am trying to call a third party company's dll that I have no control over. They tell me it was written in C. The declaration in VB6 is as follows: Private Declare Sub csub Lib "rlpolk.dll" (ByVal T_VININ As String, _ ByVal T_VINOUT As String, ByVal i_bypass As Integ...more >>

API call
Posted by sneffe at 4/7/2004 12:51:03 AM
Hi, im trying to get the caption text from the active window but i cant get it working in vb.net. Can somebody please help me. Im new to using API Public Class Form Inherits System.Windows.Forms.For #Region " Windows Form Designer generated code ' Return Caption.ToString( P...more >>


DevelopmentNow Blog