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

Software Development Network >> Visual Basic

Visual Basic

New Question

Database problem/mistake...
Help Trying to Create Project Get Errror 0x8007007B
Collapse Region questions
Thx
DAODBEngine
Write data in VB.NET to Access using SQL
Visual Basic and a Database, very basic questions...
Web Browser Control - Display URL
adding functions to a Botton in my Form
use vbsrccopy function of VB in VB.Net

Top Answerers

M.D.A
amendez
Rick Strahl
_brg_
RAFIKABDAT
MyName Dot
Rattlerr
Chinwa KneeHo
Sean Hayes
Chris Crowe
sitemap
Only Title

Answer Questions

  • Mantorok Events inserted at the cursor

    Hi All, Does anyone know of an option setting that makes the selected event insert at the cursor, when in the code window Presently, when I select "Class Name" and then "Method Name" from the two dropdowns at the top of the code editing window, the event *seems* to insert itself randomly. ("Class Name" and "Method Name" are the tooltips) Thanks, Carl Hi Carl, There is no such option to make the selected event insert at the specified location of the cursor. Generally events are inserted in an alphabatical order with some exceptions like the if the current order of events alreday in the code window is not alphabatically sorted then it try to pick the close ...Show All

  • Paul Paschedag Hiding Cells before printing Excel Spreadsheat (BeforePrint)

    Greetings... I have several cells in an Excel Spreadsheet that Are normally hidden and locked. If the user types a password into the proper cell and activates a toggle button, the contents of the cells appear. However, I want to make certain that the cells revert to the hidden and locked condition whenever the user wants to print the spreadsheet. I'm using the following code, but it has no effect. What am I missing Private Sub Workbook_BeforePrint(Cancel As Boolean) Range("Password") = "" Range("SwitchShow") = 0 Range("ONOFF") = 0 End Sub Are you trying to achieve this in the VB included with Excel or in a VB.Net applications ...Show All

  • sahady Count lines in a textbox

    Can someone help me couting lines in a text box In Access i use this code: im strText As String Dim nLines As Long Dim antallinier As Long antallinier = 16 Dim antal As Long Dim tilbage As Long strText = Form_kursus.hovedpunkter.Text & vbNullString ' Trim of trailing CR/LF, if any. If Right(strText, 2) = vbCrLf Then strText = Left(strText, Len(strText) - 2) End If ' Split on the CR/LF combination to see ' how many lines we have. If Len(strText) = 0 Then nLines = 0 Else nLines = 1 + UBound(Split(strText, vbCrLf)) Hope some can help regsrds alvin can you define what you mean by a field To count characters normally its Me.theTextBox.Text.Length which will give you th ...Show All

  • Brian.Webb Novice: How To Learn And Use The Embedded Programming Drivers

    Within VB, how do I learn about these with my applications Can you give me an introduction. Do I have to use CE, XP Embedded, or XP Professional with the drivers. I prefer to use XP Professional. you maybe best posting this in the Windows embedded development forum/newsgroup located at www.microsoft.com/communities I found the below site helpful http://msdn.microsoft.com/embedded/community/community/newsgrp/default.aspx ahmedilyas wrote: you maybe best posting this in the Windows embedded development forum/newsgroup located at www.microsoft.com/communities ...Show All

  • Caolan ODomhnaill How to pass a dictionary(of) to a generic procedure?

    I have this procedure header: Public Function Register( ByVal dict As Object , ByVal ElementName As String ) As Boolean The "object" is always a Dictionary(Of String, something). The something is a business class. There is a limited number of possibilities, so I could constrain them, but I'd rather not. I want to write something like the following but I can't get any variation to even compile: ' Public Function Register(Of t As {IDictionary(Of String, Dataface.DataSource), IDictionary(Of String, Dataface.AConnection)})(ByVal col As t) As Boolean ' Public Function Register(Of t As Dictionary(Of String, Dataface.BaseClass) (ByVal col As t) As Boolean In the body, I want to be able to write co ...Show All

  • Hennesey Progress Bar/Loading Bar To Perform gif Update

    Hi all, I am just a new member here. Hope that my English will not give you an uncomfortable feeling ^^|| Actually, a month before, I was trying to implement a progress bar( some may call it loading bar) form so that when the Main Form/Main Thread is doing a Time-consuming tasks or thread-blocking tasks, it can display to the user and asking them to wait for a while. The problem was that I put a gif file into the picture box and the gif was an animation, the gif was not "animated" until the Main Form/Main Thread finished the tasks. Here is just a little code: Private Sub StartTasks() ' Create And Show Loading Bar Dim frmLoading as new LoadingBar frmLoading.Show() ' Start To Do Time Consuming Tasks ...Show All

  • tyler2424 Shared interface member

    Why can't interface methods be declared Shared in VB I have a controllerFactory interface that is used in a number of apps to dispense app sepcific controller classes for use in an app neutral framework. Currently I have to create an instance of the controller factory classes to invoke the GetController methods. Ideally I'd like to make this method shared and invoke it without creating an instance of the Factory. If I try to mark the implementation shared then Visual Studio shows the error "methods or events that implement interface members cannot be shared". If I mark the interface method as shared the error message is "'Shared' is not valid on an interface method declaration". Here's the interface definition: ...Show All

  • GaboG How to initialize a Structure in VB and how to create an instance of the structure that is created.

    Hi. I have 2 programs which are: a DLL in C and a VB application that uses DLL functions. Flow: The VB application calls the functions in the C DLL and also VB aplication passes some arguments to the functions of the C DLL. My Query: I have a structure whose pointer has to be passed as an argument to the DLL function.How can we initialize a structure in VB. Is there any way to pass the instance of the structure(for example in C we pass the pointer to the function to access all the members of the structure) Eagerly waiting for the reply. Thanks in Advance. Marshal Class: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemRuntimeInteropServicesMarshalClassTopic.asp ...Show All

  • SOAC Folderbrowserdialog ContextSwitchDeadlock

    I have had a problem resulting in ContextSwitchDeadlock and a consequent build up in memory use. The following is a snippet which results in the error when using a Folderbrowserdialog control. How can the ContextSwitchDeadlock be avoided Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FolderBrowserDialog1.ShowDialog() Dim tstart As Double tstart = DateAndTime.Timer Do While DateAndTime.Timer < tstart + 70.0 TextBox1.Text = DateAndTime.Timer - tstart Refresh() Loop End Sub I may have missed the whole point of what you are talking about, but anyway, the following change ...Show All

  • Peter Aspect Adding up

    Hi there and first of all Merry Christmas and Seasons Greetings to you all! I am having a mental blank which is hindering my completing a project that I am working on for uni. I am developing a travel agent booking system that allows a customer to register and book themselves and multiple other people to go on holiday. The cost of the destinations are all the same however costs do vary depending on the travellers age. There are also 4 activity's that travellers can book which also have variable costs associated with them. This is all to be stored to a database (I have this bit covered) What I am asking is how would you go about making a summery screen display the selections and costs of each traveller. I have thought about using variables ...Show All

  • Stefan van der Merwe Types that cannot be Converted from VB6 to .Net

    Hi all, I have an Interface named "IMyInterface" declared in VB6. And I have a user control project in VB6, this user control implements the Interface "IMyInterface". Now I want to use the user control developed in VB6 in my new .Net Project. So I have added the reference of the VB6 user control in the .Net project, by the way .Net IDE creted the Interop dlls. Now I want to make a call on the VB6 user control through the IMyInterface as my VB6 user control implements the Interface. This IMyInterface has 10 functions, some of them returns basic data types and some of them returns structure/class types. But, I was warned that not all the types in the VB6 will be successfully converted to the .Net types, some of t ...Show All

  • msksurfer How to convert Coordinates to image?

    Hi, I want draw a image using X,Y coordinates.(Ex- (88,50)(86,49),(87,48)) Can some body give me idea how to draw a bit map using co-cordinates. Thx & best rgrds Roopesh Apart from the obvious speed implications of a large array, is there a reason you cannot do something like this dim bmp as new drawing.bitmap(w, h) dim g as drawing.graphics = drawing.graphics.fromimage(bmp) for each pt as drawing.point in myarrayofpoints() g.drawline(pens.black, pt, pt) next Hi Donny,   Am trying to do like this on the Web forms Dim oBT As Bitmap = New Bitmap(300, 100) oBT.SetPixel(28, 31, System.Drawing.Color.Red) oBT.SetPixel(24, 51, System.Drawing.Co ...Show All

  • Troy Magennis IE 7 clear browser history

    I have spent a great deal of time trying to figure out how to clear browser history for IE. After weeks of searching I found the solution (listed below) for IE 6. It works upon system reboot. IE7 does not clear though. What is different about this browser that wouldn't make this script work In order to make this work you must create a cmd file. I am looking for any help. I know I am not the only person who has been searching for this type of solution. My last post about clearing browser history had over 1000 views. Does anyone know the secret to clearing IE7 browser history Thanks guys! cd "%allusersprofile%\Start Menu\Programs\Startup" echo > clear.cmd @ECHO OFF echo >>clear.cmd cd "%homedrive%%homepath%" ...Show All

  • anydobbo Disable "Move" for my form

    I am writing Windows Application with VB.NET. I would like to have my form occupying the whole screen and disallow the user from resizing it and moving it. I successfully coded it such that the form didn't move when the user dragged the title bar. It was what I wanted but it was not so perfect. When I press ALT+SPACE, a context menu popped up and this menu contains a menu item called "Move". I wanted to disable this menu item "Move" such that it only showed as a gray text instead of a black text. Which function to call Here's an example form that implements a custom TitleBar. One issue is that the Text property can't be used and therefore the TaskBar button has no caption. You could c ...Show All

  • Tall Dude Unsigned Arithmetic and overflows

    I've had this discussion before with unint64s. Setting what would normally be the sign bit causes an overflow. Now I'm seeing this in unint32s. Dim a As UInt32 = System.Drawing.Color.Black.ToArgb will cause and overflow. Dim a as Uint32 = now.ticks and &hFFFFFFFF will cause an overflow depending in the time. This should not be. What it means effectively is the UInt32 is actually UInt31. No, it does not mean that UInt32 is actualy UInt31. The Ticks property of DateTime is Long and &hFFFFFFFF is an Integer constant. To apply the And operator the compiler extends &hFFFFFFFF to Long, that is to &hFFFFFFFFFFFFFFFF and does the And. Obviously you'll get a 64 bit value mots of the time that will never ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum