Answer Questions
AstareGod Shell Commands in VB
hi all i have a small question cant seem to find the answer anywhere. i have been using shell commands to open notepad to view logs and creating a copy of the log so that changes are not saved however i was wondering if it is posible to open the text file as read only e.g. notepad "Log.Log" << thats my current command but its editable and not very safe when it comes to logs. Thanks Stu take a look into the process class... SD_ ...Show All
swizz_balu Binding Navigator Next Item
I have a jobs database and am using data binding navigator in detail view. When the user hits the 'next' key, I want to check to see if one of the fields has a date in it. If it does - I want to display one message and if it doesn't, I want a different message. I've tried to just use code by double-clicking the 'next' but that seems to run code before it loads the new row into the detail view. Is there someway I can automatically ch ...Show All
TranceShadow "object instance not set to an instance of an object vb.net" happens when switch form
i have these 2 lines of code causing problem "object instance not set to an instance of an object vb.net" : dim frm2 as new frm2 frm2.DsGetAllQs.Clear() &nbs ...Show All
AlexanderGross Collapsible Text Outline...?
When I collapse a #Region area the collapsed text shows the entire region name inside of an outline box. When a sub or function gets collapsed, it cuts off most of the right side of the text and shows the leftmost x characters inside the outline box with ... (three dots). Anyone know a way to show the whole line of the sub or function. Actually I don't care for the outline box. Thanks, dbProgrammer ...Show All
Nirupama Sending e-mail from Vis Basic
I know how to send an e-mail from VB based on results of an excel spreadsheet operation. Is there a way to delay sending the e-mail. I want to use it as a follow-up tool for sales leads. If all you want it to suspend your code for a few seconds, you could dllimport the old sleep() function. (other ways to stop code excution, but this is easy) Most of the time it's the programmer that chooses when to send the email. Could you r ...Show All
M&#229;ns T&#229;nneryd Accessing individual XML records and displaying in a DataGridView control
Hi, ive just started to re-(ish)-learn VB using the 2005 express edition and i am creating a little applicaion that can keep track of my debts. My first major problem is trying to display some XML in a datagridview. The problem arrises when i do, all of the respective records are shown. Not individual ones referenced to an individual person. Here is my attempted code that did work, but displayed all the information: DataGri ...Show All
T2k What code do you use when the user clicks open and the file browser opens?
What code do you use when the user clicks open on the menu bar, and the file browser opens Please help. Hi, what you are looking at is the OpenFileDialog: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformsopenfiledialogclasstopic.asp ...Show All
byrong Walkthrough -- Select XML File... click Add but there is no XML File Choice
Walkthrough -- States ... Because this walkthrough focuses on reading XML data into a dataset, the contents of an XML file is provided. To create the XML file that will be read into the dataset From the Project menu, choose Add New Item. Select XML File Microsoft Sooooooo many of your helps simply do... not... work. I have the new 2005 VB Express and installed it without any tricks and there is no following choice -- From the Project me ...Show All
atoenne How to set a control's visible property.
I have a form that has a combo box with 7 items and also has 7 group boxes. Basically, I would like the user to click an item in the combo box and have the corresponding group box appear. If the user clicks a different item in the combo box, then I want the visible groupbox to become invisible, and the new corresponding groupbox to become visible. Could someone help me out with the code Have you taken a stab a ...Show All
fulga Streaming text from a view to a file.
The following code is supposed to place data rows from a SQL Server 2000 view (vwExport) into a text file: G:\doc\Output.txt. The compile error I get is: 'Application.ApplicationDataSetTableAdapters.vwExportTableAdapter' cannot be converted to 'System.Data.DataTable'. Code: Dim strExport As String = "" Dim strExportFile As String = "" Dim x As DataView = New DataView(VwExportTableAdapter) Dim z As Integer Dim y As ...Show All
Vitaut Having Trouble Retreving Data from a XML file
When i use the break point and step into feature i can never get pass my exception handler :( #Region "Child Form" Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click Dim SR As New StreamReader("Des.Xml") Dim Xreader As New XmlTextReader(SR) Dim Xdoc As New XmlDocument Xdoc.Load(Xreader) Dim Getinfo As XmlNodeList = Xdoc.SelectNodes("Labels ...Show All
Oirad Application Manifest
Can someone tell me how to change something .application to .exe When I publish my program the files I get are: Neopets Program.application, Neopets Program_1_0_0_0.application, and setup.exe. When I try to run the setup on my computer downstairs, it downloads 2 files then the setup will stop and the program will not be installed. When I try to use either of the .application programs, Windows does ...Show All
debeerBiz Getting A Form To Read HTML Files
I would like to know what code to enter into a button to make it read a .html or .htm, and display its contents in the form, thanks. I used Vb8 too and the code worked fine here. Interesting that........ Well I had to chop that code down a bit to get rid of about 12 Errors, and once I did it didn't help a bit. Public Class Form1 &n ...Show All
Bader Cheema Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
Dustin Mihalko Desk band
Does anyone know how to create a Desk Band using vb.net I can only seem to find C expamples, does this mean that it's not possible or mearly that it's going to be very difficuly. Ah, that not quite what i'd hopped to hear. It's possible, but not recommended because of the reasons outlined here http://blogs.msdn.com/junfeng/archive/2005/11/18/494572.aspx While a desk ...Show All
