Answer Questions
Alex Maines Setting walpaper
Hello, i was wondering if there is a easy way to set the walpaper in vb on windows xp and windows 2000 to a bmp or a jpg or well any other type of image supported by windows i know there a lots of resourses about seting the wallpaper to a bmp but if anyone know of away to set it to a jpg i would be very greatful Thanks I'm not sure if this is what you're looking for, but you can change the file format of any picture as follows: img. ...Show All
Gudge Antialiasing
Does anybody knows the code to 'Smooth lines' Can anyone explain the pros and cons of 'Drawing2D.SmoothingMode.AntiAlias' and 'Drawing2D.SmoothingMode.HighQuality' Is one 'better' or 'quicker' than the other tia, boops Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias ...Show All
Mark Gialo vaildate email address
Hi guys, again probably something simple, but I'm writing a form in which I need to control whether an email address is valid (contains @ symbol) any ideas how I can do that thanks, chris (sorry for asking really dumb questions - but I'm trying to unstupidify myself) That hack idea is cracking me up! I'll have to try it when I get to work on monday on our intranet. Carl ...Show All
Jusong VB 2005 & Database Programming
I am trying to write a VB.NET 2005 app using a similar setup of the infamous Northwind DB. I am using SQL 2005 Express on my laptop and will eventually upgrade to SQL 2005. My tables consists of: Customers Orders OrderDetails Category Products Suppliers My problem is: Watching the webcasts on development using databases, they show how to create a fully functional (yeah right) app with related tables. They don't show how to add orders ...Show All
darbha Portbability of Visual Basic application to ASP.NET
I m designing and developping a visual basic windows forms application. But, in a second step, I want to be able to implement the same solution as a web based application without going through all the coding and developping again. So what s the best way to design and develop some forms and their code that ll be used both as a window form application (stand alone client server application) and as a web based application through ...Show All
Kazius ODBC errors running SQL macro
This is the Query I'm working on in excel.... I get runtime error 1004 on .refresh backgroundquery:=false. The funny thing is it USED to work, but not now... Any ideas Sub retrieve_data() Dim Y, M, row, column As Integer Dim sqlstring, year, month As String Dim stringpiece(20) As String row = 1 column = 1 For Y = 2000 To 2006 year = " year(date)=" & Y For M = 1 To 12 month = " month(date)=" & M sql ...Show All
floppes Questions?
HELLO! I AM NITESH MENON AND I HAVE SOME QUESTIONS. I HAVE BEEN USING VB FOR 3 DAYS AND NEED HELP. QUESTION 1- When using a web browser is there a way to go back to the previous page in VB (like back in internet explorer) QUESTION 2- When using a web browser is there a way to go back to the next page in VB (like forward in internet explorer) QUESTION 3- How can I display another form other than the main one. QUESTION 4- How do ...Show All
Lei Jiang Getting application settings in control libraries and other separately compiled stuff
I will admit that i'm not really on top of the class structure yet:-( That said I guess that I understand that in a control library My.Settings refers to any settings that are established for the library. (Not sure how I'd use that:-) So the question is how do I see the settings associated with the main running application in a control library What I want to do is have the controls initialize themselves and save themselves into the application ...Show All
dsandor_rtg How to hide a Shell command window
I have the below code in a VB Console project. The AppWinStyle function is not hiding the window as expected Module Module1 Sub Main() ' This script uploads a clients gaitScan database to the ftp server Dim sFileName, fso, oFile, sCustNmbr, oExec, ScMD ' get the customer number fso = CreateObject( "Scripting.FileSystemObject" ) If fso.FileExists( "C:\Program Files\App1\Settings\custnumb.txt" ) ...Show All
Keith Brown How to write a sub for several checkboxes at once
Hello, I am brand new to visual basic, so please excuse me if this is an easy question. I have a form with several checkboxes. I want to make it so that if any checkbox is checked, its label goes from gray to black. I have figured out how to do it for one checkbox, but I can't figure out how to handle many at the same time. Here is what I have so far: Private Sub sidingStyle1Include_cb_CheckedChanged( ByVal sender As System.Object ...Show All
Dave Kaplan C# style documentation in VB
is it possible to do c# style documentation in vb ie: ///<summary> ///This is a class ///</summary> public class . . . as far as I know, you can't do it in vb as it comes out of the box. there are some third party add-ins, i believe - don't ask me where they are.Another thing you don't have in VB is on the fly refactoring. but don't worry, under the hood, they're all the same thing. . .you just have ...Show All
GAKannan Com Interop problem with VB.Net project
I have built a variation of the Ldap Authentication function referenced in http://support.microsoft.com/default.aspx scid=kb;en-us;326340#3 The problem i am having is accessing the resultant .dll Do I need to research and develop a "strong name" for the assembly The properties are set to "Register for Com interop". Is C# a better platform for building COM objects Okay, done that, but ...Show All
davkaev maths function!!!!!!!!
I am new to vb, as you will see below. I am constructing a simple form which requires some basic maths, whem I try to multiply, the compliers states " C:\Documents and Settings\Jones\My Documents\Visual Studio Projects\VB EXAMPLES\stock2\frmorder.vb(168): Operator '*' is not defined for types 'System.Windows.Forms.TextBox' and 'System.Windows.Forms.TextBox'." What do I need to set to get the cmdcalc_click function to work. It will not hand ...Show All
Alistair Peterson populate form from selected combobox record
i'm sure it is easy, but I cannot get text boxes to be populated from a selected record from a combo box. I can make a combo box and get it to pull up records from the Access table, and can even get it to populate a data grid. What i want to do is pick Fred's name from the customer table in the combox box (or which ever on is selected) and to get other fields of that record to populate textboxes on the form as: address, city.... i do ...Show All
Folyjon some question about shortcut
how to know any shortcut --> what file and how to create a shortcut to a file i tried open .lnk file with notepad ,and i find it have " DATA: C:\windows\....... " ,but i can't "opentext" it and get that string The easiest way to create a shortcut is when you are using a setup project. In the File System Editor, right click on a file or project output group and select Create Shortcut. Then mo ...Show All
