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

Software Development Network >> Visual Basic

Visual Basic

New Question

How Can I Open A File On Another Computer?
I have problem with msgbox
animate system tray
Move form with Custom Border
ListBox & StreamWriter & StreamReader
How do i use enums from a parent class in a child class. 'Reference to a non shared member requires an object reference.
regsvr dialog confirmation
Filemapping
get CPU info
Open

Top Answerers

Alexander Olekhnovich
DiamonDogX
gon_no1
giancolaj
Dhaval-Patel
TheQuietShadow
eugenz
search and deploy
Delboy
Codeninja
sitemap
Only Title

Answer Questions

  • GethWho Null dates

    I have a .NET class lib which defines a public function which takes a date parameter. Sometimes, the date is NULL (values from a database) but if I try to pass NULL into this function, obviously it will not accept it. In VB6 I would use a variant data type to get around this but how do I do it in .NET Thanks Richard, that's what I was looking for. As I said, in VB6 I would have used a variant but having discovered that data type is no longer supported, I needed to know what to use in it's place. Cheers. You can't have it both ways.  You can type the parameter as Date and make sure in your client that you're passing a vaild one before you call it, or you can type t ...Show All

  • Jon_H Optional Object parameter passing in a function

    Hi, I have this code. I want to use the same procedure with the controls on a form instead of just controls on a groupbox. The catch is i do not want to repeat the procedure. I tried to declare grpbox as optional but it will ask for the default value and I don't know what i can give as default. Any other recommendations to make this function precise would also be welcomed. Thanks Public Sub checkCriteria( ByVal GrpBox As GroupBox) Dim grp As GroupBox = CType (GrpBox, GroupBox) Dim ctrl As Control Dim flag As Boolean flag = False For Each ctrl In grp.Controls If TypeOf ctrl Is TextBox Then Dim sctrl As TextBox = CType (ctrl, TextBox) Try If sctrl.Text <= txtasUMin Or sctrl ...Show All

  • Yayfurby Printpreview dont print all the text it previews (if its in a drawing retangleF)

    If i want to print a RTF file, i use some code i found in this forum. Shows something like this (sider means pages in danish): RTF1.SelectAll() Dim charactersOnPage As Integer = 0 Dim linesPerPage As Integer = 0 Static sider As Integer Dim rekt As New Drawing.RectangleF(e.MarginBounds.Left, e.MarginBounds.Top + 170, e.MarginBounds.Width, e.MarginBounds.Height - 130) e.Graphics.MeasureString(RTF1.SelectedText, myfont, e.MarginBounds.Size, StringFormat.GenericTypographic, charactersOnPage, linesPerPage) If sider = 0 Then e.Graphics.DrawString(RTF1.SelectedText, myfont, Brushes.Black, rekt, StringFormat.GenericTypographic) Else e.Graphics.DrawString(RTF1.SelectedText, myfont, Brushes ...Show All

  • crino Installing VS 2005 keeps on asking ' Please insert the disk: Visual studio 2005'

    The installation process for Visual Studio 2005 prompts ' Please insert the disk: Visual Studio 2005' everytime when I try to install VS2005. This is what I did: * Downloaded VS 2005 from the MSDN members download site.    File name: en_vs_2005_pro_dvd.iso (size=2,825,748 KB) * Used MagicISO tool to unpack the files   * Used Nero 6 to write the extracted files to the DVD * Created a brand new Virtual PC with Windows XP + SP2 * Start the install process in the VPC by clicking on the setup.exe    in \vs on the dvd * Select the default installation options * Installation starts for a long time and then prompts:    Please insert the disk: Visual Studio 2005'    The screen show:   ...Show All

  • Mark Crouse Windows Application

    I am curious how to code to use a Calculation Button.  What I need to do is finish a program I've started but I am stuck.  Needed information: Calculate - declare variables : total credit hours, new hours, prior hours, a loop index as integers total grade points, semester gpa, new cumulative gpa, new points, prior gpa, all as doubles write a for loop that  iterates through the 2 array lists( hours and points) and adds each element to the totals if the total hours is greater than zero, calculate the semester average = total points divided by total hours set the semester average text box to the results, formatted to 2 decimals process the new cumulative average retrieve the prior gpa and ...Show All

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

  • Drokker Copying files over a network - best way?

    Okay, here goes... Machine A and Machine B are on the same LAN. There's a file, or more a series of files, in different formats on Machine A. On Machine B there is a Card Reader or USB type storage area. On Machine B, there is a .NET Application, not sure yet if it's going to be a smart or thin client. The job of the .NET App is to copy a file from Machine A to Machine B. Also, it would be nice if it showed a progress bar of the file coming across. I'm relatively new to .NET - any tips or ideas on the best way to go about doing something like this Mods - not sure if this is the correct area to post this thread in - please move if necessary Hi Neal There is a static system.io.file ...Show All

  • Dhondtie Why does the file reference change to the local copy?

    Hi, Project A references a dll (Project B). This reference's 'Copy Local' property is set to true. Build Project A and a copy of the referenced dll is created in Project A's directory, great. Now; change Project B and rebuild.. ..the instant that vs2005 deletes the dll during the rebuild, Project A says, 'hey.. where's that dll i'm referencing gone ' .. and then proceeds to remove my original reference to the dll, and replace it with a reference to the local copy. This means, whenever I make changes to my dll (Project B), I have to remove the 'changed reference' and add back the correct one. This can't be how it's supposed to work ! Is there a setting called.. "When a referenced dll 'doesn't exist anymore', don't try ...Show All

  • Islamf Remove image in Access OLE field

    I have an access table that has a OLE field for storing of images. I know how to save and retreive image. I can not figure out how to reset the OLE field to empty without having to delete the entire record. Try updating the field with DbNull.Value or perhaps using an empty Byte Array ...Show All

  • Depick What does Step do in a for Loop

    For j As Int32 obj.Value.Count - 1 TO 0 Step -1.....What does the step do Does the step make the loop read backwards or something It is what the variable gets incremented by on each step. For i As Integer = 0 To 10 Step 2 Console.WriteLine(i) Next Would print out the even numbers from 0 to 10. For i As Integer = 10 To 0 Step -2 Console.WriteLine(i) Next Would print out the even numbers from 10 to 0 (10-2 = 8, 8-2 = 6, etc.). ...Show All

  • WeiY Multiple selection on DataGridView

    Hello. A question please. If the user select more than 1 rows (blue color) on a datagridview, how can I recover the data of each row of the datagridview Thanks... NetPochi, When you choose two rows, I guess the one that has triangle is the last one but not the previous. Try to keep on pressing "Ctrl" button, that is the way to multiple select items in windows form. I think it is the same with DataGridView. In that case, I don't think you need to set anything on the triangle after you keep press the button. For Each row As DataGridViewRow In Me .DataGridView.SelectedRows 'Put your code here Next Thanks. I selected 2 whole ro ...Show All

  • Kennon2005 CheckBox Service control (VB, VS 05)

    I decided to try and expand my project, I now wish to have the (current, I'm adding more as I find out which aren't required ) two processes here's a brief on what stage the additions are at. I have added 4 check boxes named; SpoolCheck1 SpoolCheck2 MDMCheck1 MDMCheck2 (more will be added as I find out more that can be stopped) and two command buttons named; StopCheckedButton StartCheckedButton I would like to 'link' the check boxes to the command buttons, but the checkboxes job (when checked, then clicking the start/stop command buttons) is to start/stop the selected program/process, in this case spool and mdm. I have these codes for starting and stopping the processes and return a message if there is a problem. ...Show All

  • SPECIALK_BC CLR sometimes doesn t show the tool tip error comment

    Why the CLR sometimes doesn t show the tool tip error comment when an execution error happens and I put the mouse close to a variable. It just happens sometimes, then I have to close the file and open it again before it works Thanks for the tips Execution errors are actually exceptions. The dialog that you see is called the exception assistant, and it is not associated with a particular variable, but rather with the state of the execution. Once you dismiss the dialog you need to use the smart tag that shows up at the IP location to bring it back up. Best Regards, ...Show All

  • AndrewEames Menu checkstate and radiocheck

    Hello, I am adding a menu with 2 language option: English French and want user to be able to check only one. In Visual Basic .NET is was easy and I could see the Menu property and then Select both English and French menu item and then RadioCheck was selected. Where is the RadioCheck in Visual Studio 2005 Thanks thank you everyone for the response I do not want the code. I want to know where I can click and do it. I have a tutorial for visutal basic .NET and it has the feature. I am using Visual Studio 2005 and could not find that option to click. Thanks in advace If you are using a MenuStrip for this you will have to implement your own RadioCheck lik ...Show All

  • nhaas strange behaviour

    Hi guys, I am definitely a newbiew to .Net, and am having a problem that I cannot seem to get around. I have a single Windows form app that loads several (probably about 10) datatables into a dataset. The dataset is defined as a public. Eventually the data is summarized into a datatable that is displayed into a datagrid. At first I could not get the double-click to work, and eventually tried to add a context menu control to capture a right click. Once I got things wired up, when the menuitem click event fired, I wanted to create a dataview from one of the datatables in the dataset and filter accordingly. To my surprise, the dataset variable has a value of nothing while in the click event. I then figured out how to capture a double ...Show All

8788899091929394959697989901234

©2008 Software Development Network

powered by phorum