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

Software Development Network >> Visual Basic

Visual Basic

New Question

implementing ftp through webrequest.create
updating data grid connect to ms access database.
Diff. between VB6 Control Type and .Net Control Type
create dymanic DTS vb.net
Incremental Search
Picturebox format conversion?
Selecting records between two dates
i need help! please someone help!!
VB6 to VB.NET Upgrade Resources
Printing A CSV File

Top Answerers

ahmedWebDev
Michael J. Brown
Dato0011
Steve98796
manjuWicky
CraigCody
darngar
chiquiman
Kishore Gopalan
Robert Barnes
Schemachine
Only Title

Answer Questions

  • dbdoc Program fine tuning: Skinning & Startup a windows forms app with only one instance like media player

    I have several programs that are done in VB.NET. i want to fine tune in the following ways, i don't know how it's done. I want to be the only allowed instance of the proccess running. (ini file that just says it's running ) and exits, or is there a parameter for this is it in the registry That would contradict the following thing i want to add. How do you have your program open like when media player is open, and you double click a file it doesn't open a new instance it opens it in meida player. And i want to add a link to the quicklaunch, how do you do this, it's not hidden in the my namespace is it 1. open a file in an instance already running by double clicking the file like media player does with mp3's instead of opening anothe ...Show All

  • VDeepak Menu Strip Colour Issue

    I was messing around with the colour of my form's menu strip... Later I decided to not do that... When I tried to change it back to SystemColors.Control it just stayed that color, It didn't go back to the Blue Windows XP theme's colour... I fixed the problem by deleting the code in the designer... The Menu Strip went blue again and I was happy... Still though, This is a bug that *should* be fixed... Did you try deleting the background color Basically, you have set the color to the 'control' color. Prior to that, even though it shows 'control' it's not actually the control color (notice the color is in bold - it's not the default). I wouldn't call it a bug, per se. Just a bit of unusual presentation behavior (since by def ...Show All

  • EoF Please help on file path question.

    Hello guys, I wish to know the file path of my code resides. In VBA for Excel, it has ThisWorkbook.FullName property to retrieve the full file path where my code resides. I am trying to do that in other environments, like general VB console application or VB Script. What should I do to get the full file path of my code Thank you very much. Thank you guys. Both functions are really useful for me. Will Application.ExecutablePath give you what you need Gets the path for the executable file that started the application, including the executable name. for .NET: Application.StartupPath gives you the path of the folder you ...Show All

  • Moustafa Arafa How to get context menu for webBrowser control

    I am using the webBrowser control to do ftp and this works great... When i right click on a folder in the browser window i am presented with the standard menu items.. I have alredy worked with the ShellAPI and have project that wraps a treeview so that i can get the shellFolder that is assoisated with the treeNode...The code below is what i use to get the context menu for a shellFolder. I would like to get be able to capture the context menu and add items, then handle the commands with the system.windows.forms.webBrowser.. how do i capture the context menu so that i can add items.. thanks erik public static bool GetIContextMenu( IShellFolder parent, IntPtr [] pidls, out IntPtr iContextMenuPtr, ...Show All

  • Kitsok Deleted row of a Datagridview

    Hello. A question please. When the user deletes a row of a datagridview, I recognize the event with RowsRemoved. But how can i recover a value of that deleted row in the rowsremoved event Thanks... Hi, Have you thought about adding the row back into your DataGrid view first Regards, S_DS Try the UserDeletingRow event. I think this is fired before the row is actually deleted. Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load DataGridView1.Columns.Add( "name" , "Name" ) DataGridView1.Columns.Add( "value" , "Value" ) ...Show All

  • John Dekker converting entire array without loop?

    Hi all, can I convert an entire array to other datatype in one statement preparation: dim test(100) as int16 for i=0 to 100 test(i)=i next i and later on: for i=0 to 100 test(i)=cbyte(test(i)) next i Q: can I do that somehow in one statement (with the purpose of being faster; the example is a simplification) Thanks, Kees Hi Kesim, It depends on the datypes involves. There are lots and conversions like unicode to byte in the system.text.ecoding and there is Bitconverter. A great component of the VS2005 is the object broswer which will let you search all classes methods, functions and objects for a string match, the string being your choice. Renee ...Show All

  • michielmertens Very Simple Custom Exception Throw, without building my own Exception Class?

    I want to know how to easily throw a custom exception, without starting my own class or giving it a name I just want to throw up an error with text and a number. Can I replace the text and error fields of a generic error What is the absolue simplist way to do this Assume my error code is 100 and the message is 'value greater than 10'..then I'd like to do something like this: Dim myException as New Exception(100, "value greater than 10") If myValue > 10 then throw myException Thanks, Craig For this particular example I would suggest you use ArgumentOutOfRangeException. The following shows the use of a standard generic exception (albiet with a difference message) and the c ...Show All

  • Juan Foegen I can't check for updates for VB 2005

    Hello I know that we can check for updates for VB 2005 via Windows Update. But when I check for updates via Windows Updates, it doesn't display VB 2005 updates; it just displays Windows Updates. What's problem Thanks none :-) because there are no updates :-) SP1 was released a little while ago for VS2005.... http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx ahmedilyas wrote: because there are no updates :-) SP1 was released a little while ago for VS2005.... http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx I've installed SP1. Are there no updates except SP1 ...Show All

  • a.E Limits on Memory Use?

    Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All

  • Adhvika Error Message that I can't resolve...

    I am fairly new to writing in VB and in reality it is actually my first true language that I am trying to learn. I am currently writing a small application for where I work that will be used internally by only a couple of people. The purpose of this project is to record and maintain records for troubleshooting calls. This is in essence a CYA (cover your *ss) ploy that also helps us maintain with compliance rules. So essentially what I did was create a small program that would refernce back to a database out on one of our servers. This was supposed to be something that I assumed would be very easy, and at first it did seem to be working properly. Now I have run into a problem that I do not have a solution for. The following is the error I g ...Show All

  • divya mittal Install Windows Service Using InstallUtil.exe

    It's my first to write a service with Visual Studio 2005, at first i had an application written as Console Application, I did copy the code into a new Windows Service Project so my code like like the following: Imports System.IO I mports System.Security Imports System.Security.Permissions Imports system.Data.Odbc Public Class Service1 Protected Overrides Sub OnStart( ByVal args() As String ) Watch() End Sub Protected Overrides Sub OnStop() Some code Here End Sub <Security.Permissions.PermissionSet(SecurityAction.Demand, Name:= "FullTrust" )> _ Private Shared Sub Watch() Some code Here End Sub ' Define the event handlers. Private Shared Sub OnChanged( ByV ...Show All

  • Worf Is it Recursion (or is it Memorex)

    I have a function called from a paint event that writes (DrawImage) on the control. It works ... so I thought nothing more about it ... U N T I L ... I went back a put a breakpoint into the code to Debug a problem, and then I noticed something strange. Instead of just working and exiting, it keep re-entering the function. I put a counter in it and it re-entered at least 14 time. I image it has to do with the 'Paint" event, but it certainly worried me. Here is the really strange part: When I took the breakpoint out, the counter now says the function is only entered once. Here is a simplified version of the code: <Code> Private Sub Panel1_Paint( ByVal sender As Object , ByVal e As System ...Show All

  • James_Steven .Net dll stopped working in VB6.0 after migration from .Net 1.1 to .Net 2.0

    Hi, I have been using a .Net dll developed using Visual Studio 2003 in VB6.0 through com interop. .Net dll is not strongly named and it is registered using /codebase option. It has been working fine. I have recently upgraded this project to Visual Studio 2005, recompiled it with register for com interop option turned on in the project properties. I tried using this new .Net dll in VB6.0 and got this error. Run-time error '-2146233079 (80131509)': Automation error I have both .Net framework 1.1 and 2.0 installed on my machine, not sure if that can be an issue. I would really appreciate if somebody can help me out. Thanks. javaid It depends how I instantiate the object. If I declare and i ...Show All

  • fortellinator Process not completing

    I have a vb form that runs a command line executable that creates a diff file from two existing files. When I run the program from the command line it creates a 419Mb diff file. When I run it as a process from my VB program it gets to ~400 Mb and stops. If I kill the VB program the command line executable continues to run and finishes the diff file. So I have 2 questions. Why does the process stop before for it finishes when I run it inside vb Why does the program continue to run when I kill the VB app. Here is my code Private Sub xdelta( ByVal strFile1, ByVal strFile2, ByVal strDelta) Dim strError As String Dim p As New Process Dim info As New ProcessStartInfo info.UseShellExecute = False ...Show All

  • Tin Aung Soe Optimizing Search

    I am using VB.NET 2003 and MS Access. I have a TextBox and below it is a ListView control. As the user types a character in the TextBox, the records starting with that character get filled in the ListView control. The records are fetched from either Oracle or Access database. Previously, I used to execute a SQL query, which looked something like this: "Select FirstName from TableName where FirstName like '" & TextBox.Text & "'%" This query was set to execute as the text in the TextBox changed. If the TextBox is blank, then all the records get displayed on the ListView alphabetically. Now I have decided to use a different approach so as not to query the database again and again. Now what we are doing is that ...Show All

535455565758596061626364656667686970

©2008 Software Development Network

powered by phorum