Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score Color Equality
Nathan Sokalski - 24 Nov 2007 10:32 PM - 4 messages
Is there a way to check whether two Colors are equal? If the Colors have different Name properties, the = operator will return false even if the A,R,G, and B properties are equal. I would like to be able to check whether ...
Score Determining the Default Printer
David C. Barber - 24 Nov 2007 8:47 PM - 5 messages
my.computer.printers.defaultprinter doesn't exist in 2005, despite the plethora of examples still out on the web detailing its use. So how can I determine a person's default printer? Thanks! ...
Score >>>>>>>>>>>>>>> FREE TIPS & TRICKS ON HOW TO GET YOUR HOME LOAN APPROVED
sydnee - 24 Nov 2007 12:15 PM - 3 messages
FREE TIPS & TRICKS ON HOW TO GET YOUR HOME LOAN APPROVED More Details: [link] ...
Score Editing an indexed PixelFormat
Nathan Sokalski - 24 Nov 2007 5:15 AM - 2 messages
I have created declared a Bitmap using the following statement: Dim bmp As New Bitmap(100, 100, PixelFormat.Format8bppIndexed) Because the SetPixel() method is disabled and a Graphics object cannot be created for indexed PixelFormats, I am not sure how to edit the Bitmap. I am ...
Score Where are use scoped settings stored?
Scott M. - 23 Nov 2007 9:37 PM - 4 messages
If I add a setting to my project in the settings designer and mark it as a user setting, and then access and modify the setting via code, where is the updated setting stored so that it won't be used for other users?  Is this a ...
Score Question about Application Layout
TC - 23 Nov 2007 7:50 PM - 3 messages
I'm building an application which will display several documents at once. I'd like my application to behave the way many applications, including Microsoft Word, behave -- I want each document to be displayed in a separate window, and I want to be able to open and ...
Score Creating a Web Service (Service, not Client) from WSDL
Bert Leu - 23 Nov 2007 6:59 PM - 4 messages
Hi I understand, that the "normal way" in creating Web Services is: Creating Web Service -->  WSDL  -->  Creating Client Unfortunately, I have to create a Web Service (Service, not Clinet)  from an existing WSDL. Can somebody tell me, what's the right way to do this? ...
Score Reurning Arrays
HardySpicer - 23 Nov 2007 6:24 PM - 4 messages
I have a function which returns an array of strings. I want to display say the zeroth element and I do mystring = myarrayofstrings(0) which is it happy with. However, when i compile it complains twith this error System.NullReferenceException was unhandled ...
Score Please vote for rendering bug (loss of AlphaChannel) for ico-files!
T. Weber - 23 Nov 2007 12:59 PM - 4 messages
I'm driven mad by the fact that Microsoft did not yet fix that Alpha Channel bug even with FrameWork 3.5... It would be nice if you could vote for that bug. Thank you! https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311956 ...
Score Saving an image from a picturebox
Bart Steur - 23 Nov 2007 8:55 AM - 3 messages
Hi, I'm using VB 2005 EX. I want to save an image from a picturebox control, but with the dimensions of the picturebox control. I have a pb control of 300x300. I load a image into that picturebox with a ...
Score Server Explorer - VS 2005
Visu - 23 Nov 2007 7:44 AM - 2 messages
Hi All! In server explorer when new data connection is added, it shows list of tables, views and procedures. I want to get the list of table names, view names and procedure names in a text file. Is there any method in .NET or how can we get the names in a text files. ...
Score Trouble with sendkey TAB
kru - 23 Nov 2007 5:18 AM - 5 messages
Hi All, Simple question yet I can't figure it out. I need to send the TAB key to an external application. It is able to send {ENTER} etc yet no luck with the {TAB}. I have tried the following: ...
Score Crystal Reports
Lou - 23 Nov 2007 4:11 AM - 2 messages
How can I get a report printed when the contents are in an unbound DataGridView I cant set the ReportSource, that gives me a "No source" error" Can it print the contents of a list view? -Lou ...
Score Passing a ColorPalette as an argument
Nathan Sokalski - 23 Nov 2007 3:10 AM - 2 messages
I have finally figured out how to create transparency in GIF files when creating them with VB.NET (it is harder than I think it should be, but at least I can do it now). I would like to write a couple functions and/or ...
Score Toolbar text
Lou - 23 Nov 2007 2:39 AM - 2 messages
Why can't I get the text to show up on my toolbar button next to my image. I don't see any text and I have the text property set. i have textbeforeimage set also. What an I missing? ...
Score Advice Required - Vb or Not VB (or even .NET)
Kahuna - 22 Nov 2007 10:58 PM - 24 messages
Hi Folks I've been developing in MSA97 since it first hit the streets and its been fantastic for what we needed. We have a number of Apps out there all in runtime and all doing sterling work! Time to move on though and we have been pulled from pillar to post (old ...
Score Weird bug
Harry - 22 Nov 2007 10:38 PM - 6 messages
Hi All I have this weird bug in the code below: Dim temp As String = oAction.ActionType.ToString For Each ctl As Control In Me.Controls     If ctl.Tag IsNot Nothing Then         ctl.Visible = ctl.Tag.ToString.Contains(temp)   '<------error here ...
Score Multithreading dilemma
dan artuso - 22 Nov 2007 6:19 PM - 8 messages
Hi, I'm having a problem implementing multithreading in an app that basically recurses through the path passed to it. The main interface is basically an explorer knockoff and the user can perform certain tasks on all files and directories within their selection. ...
Score large values from database
Dave Cullen - 22 Nov 2007 2:15 PM - 2 messages
I have an Oracle table with very large numerical data values and I can't get my VB program to display them with full precision. I'm using standard .NET connectivity with OleDbConnection, OleDbDataAdapter and a Dataset. If I preview the data in the OleDbDataAdapter the values get rounded off and ...
Score Parallel Post Acess
HardySpicer - 22 Nov 2007 12:47 PM - 2 messages
I have a laptop which has no Parallel port so I bought a USB to parallel port convertor. When I write to the virtual parallel port it doesn't respond (I can get a real port to work on a normal pc). How to ...
Score Application Idle Time
Visu - 22 Nov 2007 7:03 AM - 2 messages
Hi All! How to find the application idle time in VB.NET windows application? We can get the windows Idle time Private Declare Function GetLastInputInfo Lib "user32.dll" But i want the idle time of my application alone in VB.NET. ...
Score vbNewLine or ControlChars.NewLine
Lou - 22 Nov 2007 2:29 AM - 4 messages
Which is more efficient? -Lou ...
Score How do you use GetProperty.SetValue with the index parameter?
dig_dug_d - 21 Nov 2007 9:22 PM - 11 messages
Hello, I have been struggling with the SetValue method when trying to use indexed items.  I can't figure out what needs to be done to create the "index As Object()" parameter.  Juding from the lack of examples ...
Score How to check a string to see that it is a valid file name
Academia - 21 Nov 2007 8:01 PM - 11 messages
I'd like to check a string to see that it is a valid file name. Is there a Like pattern or RegEx that can do that. 1) Just the file name with maybe an extension 2)A full path ...
Score How to change the name of multiple textboxes
Jan - 21 Nov 2007 5:21 PM - 5 messages
Hi there, I have a lot of textboxes in a form, i numberd them from from 1 til 10. for example:  txtZpr1.text                       txtZpr2.text  etc.. ...
Score Extension Methods in VB 2008 Express?
dave - 21 Nov 2007 4:39 PM - 5 messages
I can't get Extension Methods to work in Visual Basic 2008 Express. Says "Type 'Extension' is not defined." Looks like the library included with the Express edition is crippled. What am I missing? Here's the code... Imports System.Runtime.CompilerServices ...
Score Opening Folder Browse Dialog On Client Side
Moshiko - 21 Nov 2007 4:09 PM - 4 messages
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL project)  that opens the relevant ...
Score EventHandler for late-bound COM object
Phil - 21 Nov 2007 4:01 PM - 5 messages
I'm trying to handle an event from a late-bound COM object. Here is my code so far:     Dim t As Type = o.GetType()     Dim eInfo As EventInfo = t.GetEvent(EventName)     Dim d As New MyDelegate(AddressOf MyHandler) ...
Score CD Burning with VB.NET
drabina - 21 Nov 2007 3:57 PM - 6 messages
Hi, I am looking for a way to burn CDs from VB.NET application. I have found a lot of posts asking about that but the links provided are mostly dead. There is IMAPI but as far as I know, it is not easy to ...
Score name parser
mcnews - 21 Nov 2007 3:13 PM - 7 messages
anybody willing to share a name parsing routine? tia, mcnewsxp ...
Score Tabcontrol BackColor
Bart Steur - 21 Nov 2007 2:30 PM - 2 messages
Question: Why can't you set the TabControl BackColor in Visual Basic 2005 XE? Any ideas? Regards Bart ...
Score Silly syntactic question
guy - 21 Nov 2007 12:13 PM - 8 messages
My brain is fried, could someone help with this? I have an array() of object the second element of the array is also an array() of object i want to say something like dim a() as object a= getstuff ' which populates it - this works ...
Score OT: Nant + VB 3.0 / 3.0
Rory Becker - 21 Nov 2007 10:49 AM - 3 messages
Appologies for the slightly off topic post. I am wondering does anyone know how to make the nant system use the VBC compiler from .net 3.0 or .net 3.5. I'm actually skipping .net 3.0 and I'm not sure it even has a different compiler, ...
Score Render from Imagelist
John Stulle - 21 Nov 2007 8:19 AM - 3 messages
Hello. Can anybody tell me how to render an image from an imagelist to a given hdc. I would like to be able to stretch or shrink the image as well. Thank you very much for a reply. John ...
Score Delays "Sleep)
Lou - 21 Nov 2007 12:21 AM - 3 messages
How can I add a delay in my code. I used to use "Sleep" in VB6 -Lou ...
Score file size on disk
Jim Madsen - 20 Nov 2007 11:00 PM - 9 messages
How do you get the "file size on disk" for a file (as opposed to the file size (length))? ...
Score Moving graphics using the mouse
Mark - 20 Nov 2007 9:23 PM - 2 messages
Hi Everyone: I'm trying to make a simple windows application that allows me to draw a shape on the form using a Graphics object. Drawing the shape is pretty simple. My problem is I don't know how to capture the region of the shape and ...
Score format number including + or - sign
Shailesh Patel - 20 Nov 2007 7:38 PM - 5 messages
Hi, Is there any formatting that adds + or - sign before number. Normally it adds - sigh if number is negative and no sign if positive. I want to add + sign when number is positive. Thank you in advance. Shailesh ...
Score Problems with ToolStripTextBox reprised
Lloyd Sheen - 20 Nov 2007 6:55 PM - 3 messages
I am just trying to get the event when a user clicks into the ToolStripTextBox to allow me to select all the text.  I got an answer to handle the click event as an enter.  Well if I do that then I cannot use the ...
Score Loop
cmdolcet69 - 20 Nov 2007 6:31 PM - 4 messages
I need to loop through a index change event, however whenever i loop through the first combo box always report back correctly its when i move to the next combobox, that instead of changing the second combo box it will change the background of the first combo box. ...
Score ATTACHING A FILE USING A URL
DRDragon - 20 Nov 2007 6:27 PM - 3 messages
Hi, I have an issue where I have to call a function that will return the url of a file that I need to attach on an email before sending it.  I know  System.Web.Mail does not support URL attachments.  If anyone has any ideas of ...
Score Is type inference required with linq?
Chris Dunaway - 20 Nov 2007 5:40 PM - 3 messages
When using linq queries, is it *required* to use type inference? I was reviewing some linq samples and came across this one: public void Linq5() {     string[] digits = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; ...
Score Simple VB .Net question
HardySpicer - 20 Nov 2007 5:39 PM - 5 messages
I have the following call from a Button1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         Dim strMp3 As String         strMp3 = "chop2.mp3" ...
Score sql joins in VB
cj - 20 Nov 2007 5:12 PM - 6 messages
If I have a dataconnection open to a sql server database, can I execute a sql command containing a join between several tables in that database? What if I have tables in different databases that I want to join, is ...
Score Check if Mousepointer is over a region
Stefan Uhlemann - 20 Nov 2007 11:03 AM - 3 messages
Hi, how can i check if the mousepointer is over a System.Drawing.Region (from graphicspath). In vb6 i used the API Call "PtInRegion" - Is ther something like that in VB 2005?? btw: The region is not a rectangle. Thanks ...
Score AllowDrop
Bart Steur - 20 Nov 2007 10:00 AM - 2 messages
Hello, I'm using VB 2005 Express. I want to implement a functionality into my app that allows users to drag an image file from explorer onto a picture box control in my app. I can't get it to work. Nearly each control has the AllowDrop property, but I can't find ...
Score colons
guy - 20 Nov 2007 9:46 AM - 3 messages
I do not usually use the colon in my code however sometimes i find it usefull e.g. pulling data from an array .... i += 1 : this = stuff(i) i += 1 : that = stuff(i) i += 1 : theOther = stuff(i) .... as it reads more clearly than incrementing i on a separate line. ...
Score Mdi Forms with Controls and Child Forms
savvaschr@nodalsoft.com.cy - 20 Nov 2007 9:14 AM - 3 messages
Hello, I have an MDI Parent Form and when I add a control on it , lets say a Button, then when I open an MDI Child Form from the Parent Form, the Button is Visible on that Form Child Form,Is actually in Front of it. ...
Score data to datagrid
amatuer - 20 Nov 2007 8:15 AM - 2 messages
Hi, I am trying to add data to a datagrid that i get from another page. I can add the data bt wen i add more data it replaces the previous data. can anyone help please? Here's my coding: ...
Score Running vb.net 2005 app under windows restricted user
Steve - 20 Nov 2007 7:18 AM - 6 messages
Hi All I have several vb.net 2005 apps which have run fine until now A new customer has set up windows XP with restricted users When my application starts I get errors, when accessing the registry etc, due to insufficent rights for the user ...
Score fast updates to textbox?
federico - 20 Nov 2007 1:08 AM - 5 messages
Hello I have an application that iterates through the messages of a mailbox. The program does fine the job of moving messages that match a criteria. I would like to add to the program the capablity of displaying a progress ...
Score Emailing a form in Visual Basic 2005 Express
Krystal VB Newbie - 19 Nov 2007 11:14 PM - 3 messages
I am brand new to programming and was hoping that someone could tell me how to take the next step in my windows application.  I need to be able to email not just the contents of a form but an image, if you will, of the entire ...
Score Tab Control Question
John Wright - 19 Nov 2007 8:52 PM - 2 messages
I have a tab control that has 5 tabpages on it.  When the user clicks the tab page to bring it forward, what event is fired?  I have tried click, GotFocus but the code does not fire unless I click on the TabPage itself. ...
Score Problem Reading XML from Website
Scott McNair - 19 Nov 2007 7:55 PM - 2 messages
Hi, I'm trying to read a bit of XML from the following site: [link] The xml document relies heavily on xsl... however if you view the source of ...
Score Need to develop an IDE add-on that would behave similar to the Find in Entire Solution
Academia - 19 Nov 2007 7:30 PM - 5 messages
I like to be consistent in the way I name items. Unfortunately I changed the rules a few times as the code developed. So I'm sure I have things like: Private Sub XYZ_Click(ByVal sender As System.Object, ByVal e As EventArgs) ...
Score dataset question
thomas1388@gmail.com - 19 Nov 2007 5:34 PM - 5 messages
I am created a form to display addresses.  There are 5 fields, street, street line 2, city , state and zip code.  If there is street line 2, it will become my address line 2, City & ", " * state & zip will ...
Score error with exe programs
andreas - 19 Nov 2007 4:45 PM - 5 messages
I use vb.net express 2005 and when I run programs, made by myself, on several computers I get somewhile (not on all computers) a error message. Windows cannot access the specfied device, path, or file..... How is this possible and can I made the program run on these computers? ...
Score how do you implement association between objects
DougE - 19 Nov 2007 3:53 PM - 6 messages
I am at my wits end.  VB .net is supposed to be an object oriented language.  But I have tried hack after hack, and I can not get past either "Reference to a non-shared member requires an object reference.", or "Name <object> is not ...
Score Check if libraries or program exist
Freddy Coal - 19 Nov 2007 2:53 PM - 5 messages
Hi, I would like know if something libraries or programs exist, and send error with a description if the program don't find the libraries, how can make that?. For example: In the use of interop libraries of Office, I declare that libraries in the ...
Score day/month/year parts of a date
Guy Cohen - 19 Nov 2007 2:37 PM - 4 messages
Hello how do I get the day/month/year part of a date in vb.net? sample in vb6: day(13/10/2001) = 13 month(13/10/2001) = 10 year(13/10/2001) = 2001 Thanks Guy ...
Score Type inference
guy - 19 Nov 2007 2:11 PM - 14 messages
What do people here think about VB2008 having the ability to infer type? e.g you can now say Dim i=5 which will create i as an integer Personally I do not like it as it is not consistent and may be confusing for ...
Score Reading certian lines in a text file
id10t error - 19 Nov 2007 1:33 PM - 2 messages
Hello, I know how to read a text file. However now i need to start reading a file on line 4 of the text file. Is there something that will allow me to start reading on a certian line number? ...
Score Form - controls is placed different on Vista than in XP
Kenneth - 19 Nov 2007 8:35 AM - 4 messages
Hi Have made simple form which consists of two controls besides of each other. It looks fine for me on my XP machine but when I run the app on a Vista machine the controls is not besides anymore but one of the ...
Score Web Server Read/Write
Ross - 19 Nov 2007 12:27 AM - 5 messages
Hello, I am trying to Read and Write to a text file on a web server using Microsoft Visual Basic 2005 Express Edition. So far I have managed to complete my testing with a local text file using the StreamReader Class.  Is it possible to use this class when trying to read and write to a text file located on a server?  If so, could you please provide some examples? ...
Score Read very large file in bytearray and upload to MSSQL
Icemokka - 18 Nov 2007 10:20 AM - 12 messages
Hi, I'm need to upload a big file ( 600Mb+ ) to a BLOB field in MSSQL 2005. My code looks like this : fs = New FileStream(sFilePath, FileMode.Open) Dim ByteArray(fs.Length) As Byte fs.Read(ByteArray, 0, fs.Length) ...
Next » 2 3 4 5 6 7 8 9 10