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

Software Development Network >> Visual Basic

Visual Basic

New Question

Need help exporting VB.Net variables/data to VBA macro
Synchronizing DataGridView and Outside ComboBox
DEP security - Dll files fail to install - how do you program for DEP?
header files
NotInheritable -> but I want to Inherit :)
exporting visual basic textbox strings to an excel spreadsheet, need some direction...
Drawing Lines Inside a RichTextBox?
Sending emails with Blatt
How to structure directories for .vbproj's shared amonst several solutions?
Getting the body of an email

Top Answerers

AdriM
Blast
PedroSimao
JavaBoy
Tej62007
JohnWP
R Raghu
David Richards
bensterdev
WinFormsUser13232
Oriensoft
Only Title

Answer Questions

  • Aloepages Using a declared function in a dir' address.

    Hi Guys, Ill be upfront, i am extremely new to VB and am still learning the ropes, so apologies if i do not make much sense lol! Ok, what i am trying to do is place the current user logged on to the computer into a directory. Eg, ------------------------- ChDir "C:\Documents and Settings\ USERNAMELOGGED IN \Desktop" Workbooks.OpenText Filename:= _ "C:\Documents and Settings\ USERNAMELOGGED IN \Desktop\IMEI.xls", Origin:= _ xlMacintosh, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _ xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _ Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 1) ----------------------------- I am wanting to repla ...Show All

  • SoniaJulka 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

  • Ken_Bussell 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 It does sound like it's not something as simple as a dll to load. :( you can write your own Object Browser using reflection. here is a tutorial http://www.programmersheaven.com/2/Dot-Net-Reflection-Part-1 I didn't think it was part of the framework. I was hoping there was a dll, even a com dll. 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 for the text that probably comes from the xml documentation files. I don't know if there is an API for ...Show All

  • Phonics3k Need to update DatagridView date cell when another cell is edited

    Hi, I have a DataGridView with a Prices column, which can be edited by the user. I also have a date column, in which I would like to automatically insert todays date, when the corresponding Price is edited. So far, the following code works fine, and any edited cell has its colour changed as a flag. The update is handled by the DataAdapter and I can't figure how to introduce todays date into the corresponding cell. Private Sub dgvDimensions_CellBeginEdit( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles dgvEditPrices.CellBeginEdit preEditValue = dgvEditPrices.Item(e.ColumnIndex, e.RowIndex).Value.ToString End Sub Private Sub dgvDimensions_CellEnd ...Show All

  • Corey Furman OwnerDrawn ListBox items with custom heights?

    I've made a ListBox with OwnerDraw=True. How can I specify the heights of indiviual items in the ListBox Thanks for your reply, but I asked the wrong question, sorry I meant a ListView not a ListBox. Simple example to set alternate rows to a different height and draw them with a bigger font. ListBox1.DrawMode = DrawMode.OwnerDrawVariable Private F1 As New Font("Arial", 12, FontStyle.Bold) Private F2 As New Font("Arial", 20, FontStyle.Bold) Private Sub listBox1_MeasureItem(ByVal sender As Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles ListBox1.MeasureItem If e.Index Mod 2 = 0 Then e.ItemHeight = 20 Else e.ItemHeight = 30 End If End Sub Private S ...Show All

  • jaime.rq crop image & save it to new file, howto?

    I have 3200x2200 resolution image, now I want to crop Image from pixel 1600,1100 until 3200,2200(1600x1100 res). and save it to the new file do you have the sample code I'll appreciate that   I just knew how to save : If SaveFileDialog1.ShowDialog( Me ) = Windows.Forms.DialogResult.OK Then   t.Save(SaveFileDialog1.FileName, Imaging.ImageFormat.Jpeg) End If but the problem is how to save the file with another image format(JPG, GIF) according to the savefiledialog   thanks Here's a code snipit that accomplishes your goal. This should be much faster than a pixel by pixel transfer as done in the code loop previously posted. This code also utilizes the Filter properties ...Show All

  • riant78 VB-Express 2005 and Starter kit Movie collection

    I installed VB express 2005 and the starter kit Movie Collection, but when i run it i get a message that i need to get the web plus edition. The link send me to the starter kits main page where i can't find any kit with name web  plus edition. Where can this be found PetterL  HHmm.. Over a year later, and now I have come across the same problem. Although I am trying to run the C# Movie kit. No Web Plus edition. I hope you found a solution in your year of searching. ...Show All

  • bhmsaad shel_notify troubles

    Hi all, I ported a class from c# to vb, it's bassicly a class for the systray icon with balloontip it compiles and i think the code is correct, but for some reasen i got some problems 1. the std tooptip is truncated eg "hallo" becomes "h" 2. the balloon never shows up when the sub ShowBalloonTip is called I stairing to the code and slowly driving me nuts, i must be overlooking something simple the origional c# code is here I'm ghoing to cut the vb code in peaces en post them for some reason i can not post 'big'messages remco This is caused because your interop declaration for the NOTIFYICONDATA is being marshalled incorrectly. To ad ...Show All

  • Peter Haik replacement for quick-console

    After some time thinking I was crazy because I couldn't show a quick console I did some searching of posts to find out that quick console has bee removed in 2005 :(. It seems that a few people have asked what to do in its absence but have received no answer. I will see if I have better luck, because I really need its functionality. Without quick-console, what is the easiest way to quickly display text for debugging purposes without interrupting program flow I have tried using system.diagnostics.debugger, but have had no success and the docs aren't so great. SteveJ hmmm. I seem to be getting it. It shouldnt matter what type of application it is (Windows or Console) but the debug.WriteLine() should work: http://ww ...Show All

  • vdv_phuong IDE giving weird build error

    I just finished putting the first 6 datagrid controls on my form and i went to go test it and got this build error: Error 4 Value of type 'String' cannot be converted to 'System.Windows.Forms.DataGridViewTextBoxColumn'. C:\Software\Form1.vb 1425 19 When the line generating the error is this Me.Name = "Form1" where it has the "Form1" portion underlined in blue. This is a weird error because that line was made by the IDE to say the name of the form and has nothing to do with 'System.Windows.Forms.DataGridViewTextBoxColumn' I tried saving my progress and restarting the IDE with no luck...any suggestions EDIT: Now I cannot even access the form in designer mode, it shows this ...Show All

  • J. Clark Split Question

    I need splitting a file for get any info I wrote this Code:   Dim number As Integer = 0 Dim ParamSeparator() As Char = { "G" , "I" , "F" , "8" , "9" , "a" } Dim gif As String = File.ReadAllText(OpenFileDialog1.FileName) Dim i As Integer = 0 For Each files As String In gif.Split(ParamSeparator) If files.Length > 0 Then ListBox1.Items.Add(i & " " & files.Length + 6 & " 0" ) i = i + files.Length + 6 number = number + 1 End If Next TextBox1.Text = number   And it work but i have a problem with " ParamSeparator". My problem is that if i have a file with this Text: GIF89a11 G GIF89a32 The G doesn't go counted be ...Show All

  • swoodby link vb to fortran

    I have several subroutines which are written in FORTRAN. Can anyone tell me in a step-by-step manner ... 1) how I need to compile the FORTRAN subroutines 2) what I need to do within VB 2005 to call these FORTRAN subroutines within the VB 2005 code If your trying to do such a basic task - why bother using fortran if you have othert functions which are as simple you may want to consider re-implementing in a vb.net class library. Can you use the compiled FORTRAN object file (.obj) within the Visual Basis 2005 code somehow This is probably an error with the dll. Can you do me a favor and open up a VS 2005 command prompt, ...Show All

  • Ilan D Add permissions to exe

    I want to add permissions to an vb.net exe. I don't want them in a separate file. What i want is for a user to click on a link in there browser, select run, and have the program run, instead of saying don't have permissions to display window. and no i don't want to use click once, its buggy, and don't work in firefox by default. I think that it is not a bug, but rather is by design. The reason it runs when you click save and does not run when you just click run is because you are running it from the 'Internet Zone'. When I suggested that you check the firewall, i'm not refering to packet filtering, i'm refering to an application firewall like Symantec Firewall that will monitor all applications th ...Show All

  • vbnetdiscuss vista style gel buttons...

    like I see in Windows Media Player 11 and elsewhere The play button and other controls are gorgeous running on XP. Are those commodity items yet I would love to make some custom forward/backward buttons and see the blue bleed out effect in my current controls in my vb.net winforms app. 1.  Are they simply standard .bmp or some other format that can be easily added to an existing .net control such as a button, checkbox or radio button array 2. Are there tools that make this doable for the developer or is this still in the domain of a graphic artist or developer in the know I don't have the time, as is the usual case, for an immersion course in a graphics package such as Photoshop or Paint Shop Pro. Thanks, -Gre ...Show All

  • Tobias Boehler Replace in SQL on Access Database

    Hello evrybody, I need to perform an update on a table stored in an Access Database (Access 2000) I have this code: Dim cn As New ADODB.Connection cn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\<folder>\<DBName>.mdb;Persist Security Info=False;" cn.Execute "UPDATE Synch_LogFile SET Flags = Replace(Flags, '+', 'x') WHERE ID IN (SELECT ID FROM Synch_LogFile_xml)" This works if I connect to SQL Server. To have it work on a DBF Table I had to replace the ' replace ' command with ' StrTran ' Is there another syntax for Access If I run this code in a VBA module in Access, it works, but not in my VB program. Any suggestions Walker Boh wrote: If I run this code in ...Show All

484950515253545556575859606162636465

©2008 Software Development Network

powered by phorum