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

Software Development Network >> Visual Basic

Visual Basic

New Question

How do I set delay between code?
How to load service names into a combobox?
Printing on a Custom Paper Size
VB computing wrong value during execution
CreateProcessWithLogonW
Need help exporting VB.Net variables/data to VBA macro
Renaming web controls fails
connect to excel file
i want to run an appliction when system is idle for more then 5 min
VB 2005 Express false compiler error

Top Answerers

James Boman
vaibhavsaxena17
borice
Albert A
Jarda Jirava
Greenmtnsun
tohams
Fille
BlueBeetle
Chris Honcoop
bo-iSeries von better office
Only Title

Answer Questions

  • NCAnand How to switch to another application from mine

    Hi, I want to be able to switch to another already running application when a user presses a button on a main form. I can enumerate the running processes and see that the one I want is running, I can get its Window Handle. How can I switch to it. ahmedilyas wrote: you could also use the SetForegroundWindow API, I think they both do the same job Thanks for pointing that out.. you should use the SetForegroundWindow to activate another application. SetActiveWindow only works for applications in the foreground. My mistake. @iTunes: Just a joke, but shouldn't you be a bit more patriotic on a Microsoft forum plz dont flame ahmedilyas wrote: :-) Glad we shared and learned ...Show All

  • mattii deployment of vb.net windows application problem

    hi all how life is going in these days I using vb.net and access i use the com component in my project of vb (like msflexgrid,mshflexgrid) i deploy project windows application using setup wizard what i am required in user machine 1)framework 2)internet exploer 6.0 for com what is required please help when i load it on user machine then they shows jit compilers error thanks in advance hi sir Jit Debugging failed with the following error :0x800405a6 Please check the documentation topic 'JUST-IN-TIME Debugging error ' for more information i read it form msdn in which show no user log on but in user machine i log on.i tick in deploy source code also i installed all .net vs 2003 then i sho ...Show All

  • VarunR How do I put line breaks in my email message using Stringbuilder?

    Hello All, I am busy writing an application where i need to send email. I would rather use the computers default email application rather than go down the SMTP route. Towards this I found some code on MSDN kindly provided by Graham Wade: Dim myApp As New Process Dim theStringBuilder As New System.Text.StringBuilder() theStringBuilder.Append("mailto:") theStringBuilder.Append("&subject=my subject") theStringBuilder.Append("&body=my body message") myApp = System.Diagnostics.Process.Start(theStringBuilder.ToString()) This code works brilliantly, but.... I am finding it very dificult to put line breaks into the text when it transfers over. I have tried .appendline and vbCrLf but these seem to have no effe ...Show All

  • David S. Anderson My.Computer.Network.Downloadfile requires proxy authentication

    Hi All, I've written a small app that during it's course of operation, downloads files using http. Sometimes when I run the app it works fine and then other times a web exception is raised stating that proxy authentication is required. Please can somebody tell me how I can set the downloadfile method to use proxy information Regards Andrew The above overload of the method works intermitently. Sometimes the files are downloaded and other times I get a mesage stating proxy authentication is required. Our server is using a proxy with a pac file I'm using this overload of the downloadfile method My .Computer.Network.DownloadFile(address, destination ...Show All

  • Sandra Mace Find command

    I'm Trying to code a btnFind to search for a serial Number and retrieve the page that it was originaly on. If I could just get a generic example that would be great. David Hi, A web page, a text file or a word document or PDF document or other Regards, S_DS ...Show All

  • Juan Foegen ProgressBar in VB.net

    Okay, I have a progress bar that I want to use to track the reading of a text file and the creation of a CrystalReport. The file size will vary from .txt to .txt. How would I set this up I have read many things online about the progress bar but everyone is setting their ProgressBar.Maxiumum to a static number, I need mine to be dynamic based on the file size. After the file has been completely read and shows 100% on the ProgressBar, I want it to reset itself and show the progress of the CrystalReport being generated. Please anyone HELP me!!!! Im lost! Well they can be that long. I work for a home health agency and the output we get depending on how long it is inbetween the rundates can be big(in m ...Show All

  • Javad Khadivi Where is the Fill() method?

      I am trying to add new rows to MyDataBase.mdb with the below code. My problem is that it does not identify the columns. It fails with the error message “Name1 does not belong to Customers”. But it does so do Name2. I think it’s locating the database and table as I can retrieve data with the open code using SQL Select.   Can anyone help Please hemo   Dim connection As New OleDbConnection()         Dim myadapter As OleDbDataAdapter         Dim myDataSet As New DataSet          Dim newrow As DataRow         Dim MyTable As DataTable &nb ...Show All

  • MrKWatkins why its not possible to directly assign a lower data type to higher data type in VB.NET

    Following the is suituation which i'm in, Dim data As New ReferenceData ' ReferenceData is class having a method GetReferenceDataInfo which returns array of reference data info Dim info() As ReferenceDataInfo 'ReferenceData is class have to properties RefName and RefID Dim langinfo() As LanguageReferenceDataType ' LanguageReferenceDataType is class which inherits ReferenceDataInfo and has a additional property called LangCODE info = data.GetReferenceDataInfo(15) ' return an array of ReferenceDataInfo (this works correctly) langinfo = info ' this assignment possible in C# but in VB.NET it throws error so that i type casted it as below langinfo = CType (info, LanguageReferenceDataType()) ...Show All

  • manukahn .NET Events in COM VB.NET

    Does any one know why .NET events are not firing in COM I have got a .NET class which is accessed by VB6 COM.dll. The Events in .NET doesn't seems to fire in COM. Any clues There are a couple of things that you need to check to make sure that events fire: Make sure they are markes as public and comvisible(true) Make sure that the assemlies are markes as comvisible(true) Make sure that all the parameters are correctly decorated and can be marshaled correctly I would suggest to start testing with events with no parameters, then one that passes an integer, and so forth, to make sure you know where things go wrong. Hope this helps, Hi Thanks for the info. I have got all of t ...Show All

  • G. Hubmann Tracking idle keyboard and mouse in VB2005

    I am trying to write a code that detects if the mouse and the keyboard are not being used but I've only been successful for that of the mouse finding the difference in cursor position(windows.forms.cursor.position). For the keyboard I've been largely been unsuccessful. Can someone please help The problem is that it is not an event that will be recieved by any form or control, since the program will run in the background without showing any form. Please do not post the same questions across multiple threads and forums....See your post here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=634162&SiteID=1 parosky wrote: I am trying to write a code that detects if the mouse and the k ...Show All

  • logtorahul another c# to vb.net conversion

    how should I change the vb.net at bottom to mimic the Undocked event in the c# thx. -greg There were no errors in the conversion, the errors where from the Visual Studio .NET compiler. ***************************** c# source  *********************************** namespace Strips {     public partial class ToolStripFloat : Form     {         private void floatToolStrip1_Undocked (object sender, EventArgs e)         {             toolStripButton1.Enabled = true;         }     }     public class FloatToo ...Show All

  • MAwais Winforms Objects disappeared but code behind still exists???????

    I have some forms that were working. I had already deployed them. When I came back into them to fix some errors; a couple of the forms had all of the objects missing off the screens, but the code still existed. I can't modifiy the forms; I can't even debug the program because the form objects are not present. I am running 2005 professional. Does anyone have any idea how to fix this without completey rebuilding the entire form HELP!!!!!!!!!!!!!!!!! ...Show All

  • asdffgh how to delimit string?

    I have many fields must be delimited,just like that below "abc","aaa","ccc","ddd","abc,adf","daf,qwer" I have to delimit this via comma,but must consider a field followed by double quote how should i do thanks I'm confused, but if you want insert a double quote character, you must use the '\"' character. To split the fields, you can use de .Split() string method. If you have "aaa,bbb,ccc,ddd", you can split this field in four fields spliting it by ',' character. If you have "aaa,bbb;ccc,ddd", you can split this field in two fields ("aaa,bbb" and "ccc,ddd") spliting it by ';' characte ...Show All

  • VikasAgr string functions - remove x number of char starting at char?

    I'm nearly done with an application that I've created to correct data mistakes. The application will loop through a directory of several thousand files and then replace various bits of data. Most of the data is static. Example, smtp address. So, i set up a search criterial and iterate through the files and replace string "xyz" with string "abc" in all the files. Works just fine. My last problem is a bit odd. These files are SENDMAIL.VBS scripts. The data and information in them, for the most part is quite fluid. For instance, I may have the start of my fax number at position 50 (column) where another document may have it starting at position 32 (column). So, here's what I've been experimenting with trying to a ...Show All

  • Price Brattin Childform misbehaving? Ignoring location commands.

    I have used the following code to try to have to childforms appear in a parent form. However, when i run the program, the child forms do not go to the specified sizes nor locations. This is the code i used. The only bit that assumes the control doesn't exist already is the bit where I call new on it. The code all assumes the control is not part of hte form yet, however. Naturally, you cannot cut and paste my code, it's creating an instance of a class I wrote ( that you don't have ). Substitute your own control name for the one I am creating. I had to search on the internet to figure out that code. Not sure where i found it thou. How would you embed the 2 forms as children Yah, I edited t ...Show All

252627282930313233343536373839404142

©2008 Software Development Network

powered by phorum