Software Development Network Logo
  • Windows Vista
  • Smart Devicet
  • SQL Server
  • VS Team System
  • Microsoft ISV
  • IE Development
  • Visual Studio
  • Visual FoxPro
  • Visual C++
  • Audio and Video
  • Windows Forms
  • Game Technologies
  • SharePoint Products
  • Visual Basic
  • Visual C#

Software Development Network >> Visual Basic

Visual Basic

New Question

Multiple Buttons
Comprate Input text with a Data Table
ClickOnce deploymnet help
Set a timer from a combo selection
DateTimePicker and language
&H308 ???
Vista problem with handshaking on serial ports?
JScript to VB
Sorting list box
Sending email using vb.net

Top Answerers

paulixml
narasiman_jayachandran_2b5374
Nonu_k
dev_bih
paradoxium
mumle
riemerg
Eugene Katz
Vickyjzhang
The Samster
sitemap
Only Title

Answer Questions

  • bishoycom Dates in VB 6.0 !!!!

    I had developed a custom date control which accepts dates in the way I wanted. Now the problem is that the software will be running on multiple computers & each have their different settings for the dates (i.e. mm/dd/yyyy or dd/mm/yyyy) now I want input in form of only dd/mm/yyyyy so when the system date is 19th Feb, 2007 then the software & even VB can convert it into 19/02/2007 (using Format(Date(), "dd/mm/yyyy"), but when the system date is 5th June, 2007, neither software nor even VB can understand in which format the given date is......... How to solve this problem........... How to determine the System Date is in which format (dd/mm/yyyy or mm/dd/yyyyy) Please help me out....................... I am read ...Show All

  • DrLectEr Dragging and/or selecting multiple controls

    Hello I want to select mulitple controls at same time at run-time so I can move them or make changes to all of them at the same time. In the same way as possible when creating a form in the designer, Selecting more then one control by holding your mouse down. How can I do this. thanks in advance. Smit Hi Here are a couple of useful links http://support.microsoft.com/Default.aspx kbid=317479 http://www.codeproject.com/cs/media/MixedRubberBandApp1.asp The first is in VB but subject to issues for some types of drawing (albeit should be ok for your project). The second is a little more indepth but is in C#. The basic premise is to draw an 'Xor Rubber Band' and then locate the controls within the rec ...Show All

  • ming1127 Printing of dataset in excel (Windows application)

    YOz guyz! How can i print from excel the dataset 's data by the specific query only for eg... You have a couple of alternative - one may be to write the dataset contents to a CSV file which Excel can read and then load this CSV file into excel and using the Excel Object Model to print out the file. The other would be to create a specific excel spreadsheet by writing to the excel cells prior to printing it out. As for getting the data into either the csv or excel spreadsheet - you will need to iterate over the rows and columns to write the contents. THis is easily achieved using a simple nested for each construct for the rows and columns. Either way you are going to need to use the Ex ...Show All

  • Mallikarjun n Channappagoudra Shared property works in VS2003, does not in VS2005

    I'm moving an asp.net program made in Visual Studio 2003 over to VS2005. I'm just creating the pages in VS2005 and copying & pasting code. I'm finding my Shared variables are not working in VS2005, as I get the error "Name 'Errors' is not declared". In the example below, I have the Class "Errors" (a web page, "Errors.aspx") which sets the property. Then I show the Sub addFootnoteToPDF() which is on another page (open.aspx); this makes a reference to the property in Errors.aspx. Can you see why this works in VS2003 and not in VS2005 Thank you! Partial Class Errors Inherits System.Web.UI.Page Private Shared m_ReferringURL As String Public Shared Property ReferringURL() As String Get Return m_Referri ...Show All

  • Ron A. Buckton Open default email program (Outlook, for example) when pressing a link

    Hello all, iu have a question: My app has some labels with email adresses, what i want to do is some kind of linklabel but instad of oppening an internet adress, i want it to open, for example, outlook, with the adress in the destination field (many programs does so), also, it would be fine if i can personalize a default email subject and text, but if i can open the program and put the adress i am already happy enough :) Thanks Sorry i didnt specify, i am programming in Visual .NET hehe no worries. in your code, scroll right to the top of the file/page. There you should see a bunch of imports..... declarations. something like: Imports System.Data Imports System.Net.Sockets Imports ...Show All

  • MaggieChan Debug Class Library from Windows Application

    Hi, I have a Class Library developed in Visual Studio 2005. I want to test it using Windows Application.. I wrote Windows App also.. If I want to Debug Methods in Class Library from Windows App, How can I do it right now I added Two Projects under same solution and selected Windows App as Start Project.. But debugger is not going to Class Library.. Suggest me. Thanks Hi, 1) Do you have a reference from the windows app to the class library Is it a reference to the class library PROJECT or to the class library ASSEMBLY (or if you aren't sure, which tab of the dialog did you use to add the reference ) I added DLL (Add Reference) to Windows App, but both are under same solution. 2) How/where is the windows app ...Show All

  • waywar405368 Retrieving values from DataSet/DataTable

    I have a DataSet with 5 DataTables holding selected fields from different tables. I want to know how to query a DataTable to retrieve any particular column value. Cos, I am using DataTable approach to load Fixed Values (Settings of my app. control panel) on app.load. I want to refer to these values on every calculation. Is this way correct Or, suggest. K, this should work for that purpose, however, there is a method I use for such purpose that I consider to be "cleaner" I assume you are using a tool to create your typed dataset, probably the one built into VS, but even if your not, this should work... Think of the typeddataset as a "base class" (we will call it SettingsBase). This should be your generated class, and ...Show All

  • FaWei Quick Question: How do I know which image to open?

    Very bad title for this thread... couldn't describe what I want to know in one line. I am creating a basic image viewer for learning purposes. Here's my question: Say the user right-clicked on an image, and opened it with my image viewer. How would my program know which one the user wanted to open What code can I use to determind this Thanks, Matt Sorry, I was not entirely clear. Yes, I mean right-clicking in Windows Explorer on an image file. Dick, I think that might be the answer, but I'll hold off on marking it as so until I try it later tonight. Thanks for your help guys, Matt Thanks, Dick! I finally got around to trying this out and it worked. ...Show All

  • Eman-Marhoon Comprate Input text with a Data Table

    I have a school project, hope that you can help with my extra credit. I have to design a Database, which I have done but now I need to add a username and password. I have added the login form that visual studio has but now I need to validate. Which would e very easy if professor will only want 1 user and password. But he wants a separate table with user names and password which the application has to check. I beleive that what I have to do is comprare text imput by user and if username and password matches send it to next window. If this was only one value I would belike this: Dim Num1 As String String Num1 = LabelTextBox.Text If LabelText1Box.Text = "2323" _ And LabelText2Box.Text = "4444" THEN D ...Show All

  • ByteRider Hiiii I Need To Send A Picture

    Hi Every One I need to send a picture via my email application in the MailMessage Body not in attachment if there is any way possiable to do it please share it with us Sorry, I don't quite follow - are you wanting to attach a file in the MailMessage From what I understand you do not want this However if you are wanting to attach the file in the MailMessage object then there are a few examples on these forums also. I hope this helps: Dim theMailMessage as new MailMessage(" address@from.com ", " address@to.com ") theMailMessage.Attachments.Add(new Attachment( PathToFile )) .. .. .. this is how you would attach a file in an email using the MailMessage object, is this what you are after I understand ...Show All

  • Marko Hrastovec Culture date format and system dat format conflicting

    my VB.net 2005 Application is My .Application.ChangeCulture( "en-GB" ) the problem is, my OS dateformat may be will not be matching my application culture. e.g. 7 april 2007 at my application = 2 July at my OS my prblem is: when I send 07-02-2007 to my database it will save depends on my OS format then when I retrieve the value it will be 02-07-2007, it changed from april to july Re-asking the question, What is the format of the column in the database that contains the date/time If it's a datetime data type, then it shouldn't matter. If it's astring, then you will have to get around poor design. You could insert you date/time as a universal Date/Time string - yyyy-MM-dd hh:mm:ss All cultures should int ...Show All

  • Pouyan VisualBasic.Collection vs VBA.Collection

    Hi. I have ported a good chunk of my project from VB6 to VB2005. There is a VB6 COM DLL that I will not be porting over any time soon. I have a custom list class with an Add method that accepts a Collection (of strings). The list class can accept data from the COM DLL as well as Collections created within the project. Example; Dim Col as Collection Set Col = New Collection Col.Add("String1") Col.Add("String2") Call MyList.Add(Col) As well; Dim Col as Collection Set Col = DBEngine.GetListFromDatabase '//Where DBEngine is the COM DLL Call MyList.Add(Col) The problem though, is that now, under VB2k5, COM DLL's return a VBA.Collection Type, and the normal collection type is VisualBa ...Show All

  • Graham Hansen How can I cycle through all the System.Drawing.Colors?

    I worked out the Console version to cycle through all 16 available colors: Sub Main() Dim x, y As Integer For x = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x Console.ResetColor() Console.Clear() Console.WriteLine() End Sub I also worked out a program that cycles through 4 colors in a Windows form: Private Sub btnCycle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCycle.Click Static x As Integer x = x + 1 If x = 5 Then x ...Show All

  • sachin kumar rana in my windows application i need to open the ms outlook

    in my windows application of vb.net i need to open the outlook and set the to and from mail id and also a formated mail body can any one help me how to open the outlook from vb.net programming and set the to and from adress and also the formated mail body ok thats a different thing - thats using a COM interop...in which case yes it will work. The way I explained was different, NOT using COM interop and NOT using SMTP classes to send email/make a mail message object :-) just to add you must have outlook installed on the machine - my solution launches the default email client, usually outlook I believe I stand correct otherwise I would not have said it. I did try that but Windows refused to do so. have you tried it does ...Show All

  • Sinclair Schuller Opening File in textbox

    How would I open a file selected in an openfile dialog in a richtext box Thank You! The file has data in it, it gives me no errors,and it just dosn't load the file. why would a webbrowser be used It is not a requirement. The user would like to display the file selected (its contents) into the RTB control Dear Sir, Would you like to use webbrowser.It is so easy.OK Bye. Button WebBrowser1.Navigate(TextBox1.Text) TextBox1properties Path: C:............................................... Mur it Hakan C L I got that way to work, but i mustve have changed something because it won't give me any errors, it just w ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum