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

Software Development Network >> Visual Basic

Visual Basic

New Question

Redistribution of .OCX files
Windows service does work every 24 hours
Help... Can't get .vb file to open in Designer mode
Rotate Picture Error
Ctrl + Enter in WebBrowser control
C++ dll in VB help needed
Generating a Unique String
publisher could not be verified
How to access the clicked item?
arrays

Top Answerers

Davids Learning
hrubesh
flyingchen
enric vives
Simone1
Steve Thornton
Jakein2006
Stigern
Hf Kok
mentas
Topix: Wireless
Only Title

Answer Questions

  • apolon_vn How-to cancel changes to a record on user request...

    Hi, I have a form where I "catch" if the user made any changes. If they try to move to another record without saving, I ask them if they want to save or not. If NOT, I would like the changed data NOT TO BE SAVED! But IT IS! Here's the code... Private Sub Check_if_record_modified(ByRef result As DialogResult, ByVal Action As String) Me.ItemsBindingSource.EndEdit() If (Me.SignsDataSet.HasChanges = True ) Then result = MessageBox.Show("Do you want to save these modifications before moving to another record ", "Warning: Data Modified.", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button3) If (result = Windows.Forms.DialogResult.Yes) Then SaveChanges ...Show All

  • Martin Klopp Jensen searching for & highlighting text

    hi, i am trying to make my application search for text (in a combobox called "comboboxfind") in a listbox ("showbox") when i click on a button (called "findnow") can someone help me not quite... when i click yes on the msgbox it keeps the same line highlighted, it comes up the same amount of times as items found but doesn't highlight the next line.i realy wanted the msgbox to contain the number of items found, and another button, when clicked, to highlight the next found line. Private Sub FindNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindNext.Click Dim loc As New List(Of Integer) Dim index A ...Show All

  • EternalStudent How would I make a .XML doc like .INI?

    Hi. So far, I think I have gotten my form to write .XML with this code... (This is just a test form, I will add it to the real one once I get this figured out) Dim Saved As New Xml.XmlTextWriter( "..\Test.xml" , Nothing ) With Saved .Formatting = Xml.Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement( "1stStartElement" ) .WriteStartElement( "2ndStartElement" ) .WriteElementString( "TextBox1_Value" , TextBox1.Text) 'Saves TextBox1's value .WriteElementString( "TextBox2_Value" , TextBox2.Text) 'Saves TextBox2's value .WriteElementString( "TextBox3_Value" , TextBox3.Text) 'Saves TextBox3's value .WriteEndElement() .WriteEndElement() .WriteEndDocument() .Flush() ...Show All

  • Shane Kirk Copy of Screen

    Good day to you. I don't know much about the ClipBoard and GetData and so forth but there seems to me that 2005 Express is not quite the same as .NET 2003. The code that I shall give in a moment gave me a full screen copy on the Form_Load event and gave a copy of the Form on a button_click event. Now, when using the code in 2005 Express the Load event only gives a copy of part of the screen. Why is this happening Is there a way in which I can rectify matters. I would be very pleased for any info. I have tried with Imports and Inherits and Paint. It is the sizing I believe. Private Sub frmScreen_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load SendKeys.SendWait( "{PRTSC}" ) D ...Show All

  • Will Merydith Change the SMTP server address in Outlook using VB.Net

    I'm not sure if this is possible. I have been asked by the sales team to supply an easier way to set the SMTP server address in Outlook. The problem I have is the Isp's they use as they move around vary and they have to change the SMTP server address in outlook before they can send e-mails.. Is there a way to change this in VB.net so I could then write a program to change it based on the location they are in Do you mean sending the message without going through Outlook If so my sales team want a bit more they want Outlook with all its calendar address list, inbox and sent items they also want to creat messages using Outlook and not a thirdparty program. Idealy I would want them to sele ...Show All

  • Zatoichi Ideas on VB project?

    Hi, this is my first post and i need some help quick. i am asked to think of a project to do for my VB module. can any one give me some suggestions some of my classmates are doing (just to give u ppl an idea): 1. Tax Returns and Calculation 2. Bank Loan Calculator – Car Loan and Mortgage Loan 3. Monthly Expenditure Calculator 4. Phone List Index and Searcher 5. Personal Alarm Clock 6. Desired Password Checker 7. Quiz Generator 8. Recording Cheques and Deposits 9. Rectangular to Polar Coordinates Conversion 10. LC Oscillator 11. Tank Calculation 12. Electric Power Calculation Thank you all ...Show All

  • ray_newbie_SSIS Starting/Stopping Processes

    Hello: My scenario follows- I have a solution that contains 2 projects. Project 1 has Form A Form A has a button that starts a process, namely Project 2 Form B. Form B has a 'close' button that I want to terminate the process that was started when I clicked the 'start process' button on Form A. I hope that made sense. Basically, I want Form B to be able to close itself (using a button that I added to its form), even though it was launched (started as a process) from a button click from Form A. Thanks in advance for any help. Can accept the code in VB or C#. Hi: I'm, unfortunately, unfamiliar with Threading. Do you know of a good site where I can get information quickly that won't require a lot of researc ...Show All

  • tabdalla How do I make DirListBox select a folder and display a new list of folders with a click?

    The Windows OS on my system is setup to respond to single clicks as opposed to double clicks. The DirListBox in my app only acts when double clicked, and only selects an item when single clicked. How do I change this so the DirListBox will act like my system and the rest of my app. I have a TextBox which can handle the select (single click) action. My code for this is such a mess (at least where DirListBox is concerned) I'm going to start over, but I would like some ideas before I try again. Thanks. I was doing that, but for some reason it was not working at the time. However, once it started responding I was able find a number of bugs which I seem to have solved ...Show All

  • Ning How to create an instance of a C DLL.

    Hi. I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0. Thanks in Advance.   Thanks a Lot Alex. I will get back to you if some problems persists. Hi. I am having problems with creating an instance of a C Dll on VB 6.0 platform. Thanks in Advance. Hi. Thanks a lot for the reply but i am currently working on VB6.0 which doesnt have the functions that you have mentioned.(i think all the functions that you have mentioned are for VB .net) Thanks in Advance. My answer is about VB6, just read it better. Replace Windows libraries with your C library and call functions using API calls as described in the article. ...Show All

  • mroctober Compare 2 objects

    hello. A question please. I do this: dim a as new person --- class person dim b as new person a.name = "Bryan" a.tel = "1111111111" b.name = "Bryan" b.tel = "1111112222" I'd want to compare the 2 objects. How can i do that Thanks... You are right, you have to do it manually, one element at a time. However, if you are using Structures instead of Classes, you can use the Equals method without defining it: Module Module1 Structure Person Public Name As String Public Tel As Integer End Structure Sub Main() Dim a As New Person Dim b As New Person a.Name = "aoeu" b.Name = "aoeu" ...Show All

  • KimberlyL Problem with Singleton Code

    I have a class that is invoked in multiple ways, but no matter how it is invoked, I only want one instance to exist at any one time. The class looks like this: [code langauage="VB"] Imports System.Threading Public Class SingletonClass Private Shared _mu As New Mutex Private Shared _instance As SingletonClass Public Shared ReadOnly Property GetInstance() As SingletonClass Get _mu.WaitOne() Try If _instance Is Nothing Then MsgBox("Creating New Instance of SingletonClass") _instance = New SingletonClass End If Finally ...Show All

  • darknessangel Application - Object Browser interface.

    Alright, I must admit that I am an object browser addict. Is it a Dll that an be called by another application you can write your own Object Browser using reflection. here is a tutorial http://www.programmersheaven.com/2/Dot-Net-Reflection-Part-1 If you mean the "Object Browser" view from Visual Studio then no... that's VS stuff, not part of the framework. It doesn't even seem to be a .NET thing... It does sound like it's not something as simple as a dll to load. :( It could be that the Object Browser uses the native metadata interfaces instead of .NET reflection. Not only that probably this is faster but it also avoids actually loading the assemblies. As ...Show All

  • Itzhak How to create WebService to read data from SQL Server?

    Dear friends, I need to create a WebService to let some users from an application read information of my Sql Server. How can I create it Thanks ...Show All

  • mivecxtr DAODBEngine

    G'day After a VB6 to VB.NET 2.0 upgrade I am left with an IBM DB connection problem. The original version works. The upgrade doesn't. They are both running on the same PC and are configured the same. Original Code: Public dbIBMHost As Database Set dbIBMHost = Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") New Code Public dbIBMHost As dao.Database dbIBMHost = DAODBEngine_definst.Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") and the upgrade kindly supplied the following Module to define DAODBEngine_definst Module UpgradeSupport Friend DAODBEngine_definst As New dao. ...Show All

  • Adminanup DEP security - Dll files fail to install - how do you program for DEP?

    How to program for the new security features in DEP My customer can not install our program in new machines due to DEP. In boot.ini there are switches that can be configured: /NOEXECUTE=OPTIN Enables DEP for core system images and those specified in the DEP configuration dialog. /NOEXECUTE=OPTOUT Enables DEP for all images except those specified in the DEP configuration dialog. /NOEXECUTE=ALWAYSON Enables DEP on all images. /NOEXECUTE=ALWAYSOFF Disables DEP. If they change /NOEXECUTE=ALWAYSOFF our dll files register as they should. But my customer is not happy with this solution. Is there anything that I as a developer can do about this Does it help to sign files with a certificate, like from VeriSign Can we do anything ...Show All

353637383940414243444546474849505152

©2008 Software Development Network

powered by phorum