-
- Repost: How to tell when Excel file is finally after OpenDialog
by ExcelMonkey
- 4 Replies
- Last post
by ExcelMonkey
- I am opening an Excel file using the OpenDilaog command which is fired by a buttom on a userform. Problem is that it takes the file a while to open. Assuming it has something to do with my Norton checking to ensure things are safe. Whatever the reason, the delay creates some confusion as the user will not know that there is a delay and my proceed to click the final OK button which is on the same f
-
- PrintDocument.OriginAtMargins problem
by myoungbl
- 8 Replies
- Last post
by myoungbl
- Hi.
I'm currently converting a VB6 print function into VB.NET (2007 flavor). I am not using a print preview. Just the PrintDocument object.
I'm trying to get the page margins on the new version to match the margins on the old versions. It's my understanding that the margins are in 1/100's of an inch. With this in mind I set the margins like so (PRN as PrintPageEventArgs):
-
- Listbox control
by Snow Teo
- 5 Replies
- Last post
by Yam Sapkota
- I have two listbox. I want to do something like when item in listbox1 is selected the corresponding item in listbox2 will also be selected at the same time. But I not sure how to do it. Can anyone help me
Example:
Listbox1 item contains: 1,2
Listbox2 item contains: hello, bye
I want something like that. when 1 is selected hello will also be selected and when 2 is selected bye is also s
-
- TextBox Component
by Fredriko
- 5 Replies
- Last post
by decyclone
- I have come across a need to modify the textbox control (i.e. add colored borders and a gradient background). I have a seen a couple of example on how to modify the border color which consist of creating a new usercontrol, adding a textbox and manually drawing a border. I would prefer however to inherit from the textbox control and simply override the drawing functions. Does anybody know how I co
-
- Mapping buttons to special code
by Tel2
- 4 Replies
- Last post
by Tel2
- Hi guys, I'm using VB 2005 and I have a DataGridView (say dgvTest, no bindings) and would like to have: 1. My "Remove" button run the same code that is usually run when someone presses the "Delete" key on the keyboard, to delete row(s). (Reason: To make it easier for people who prefer to use the mouse). 2. My "Sort" button runs the same code that is usually run when s
-
- using thread to stop application
by dextrose
- 5 Replies
- Last post
by Rick
- Note: just a beginner w/ ref. to threading
One, I am not sure that trying to use a thread to gain control and stop an application while running is the correct way to do this but here seems to be my problem.
I have created a thread which address starts a method(lengthy calculation) in a application. I have an "Cancel" button which is supposed to abort the thread but while ru
-
- CRYSTAL REPORT IN MDI FORM (VB.NET)
by Ravindran Puliyath
- 1 Replies
- Last post
by Riquel Dong ¨C MSFT
- How can i show my crystal reports in MDI form. I am able to place my crystal report viewer control in MDI form
for showing the report as a child. VB6 allowed this with following codes
MDIFORM.crytalReport.Destination = crptToWindow MDIFORM.crytalReport.WindowParentHandle = MDIFORM.hwnd
How to handle this in VB.NET
Ravindran
-
- Command line started from a VB.Net application
by jay Bukstein
- 2 Replies
- Last post
by spotty
- I have the need to run a winbatch script when the user clicks a button. The script just reads a file and takes the first line and places that line an edit field of another running program. That running program I don't have access to get information about in the VB I'm writing.
How can I do this or is it possible
Jay
-
- How would i convert text in a textbox into an integer
by somerandomperson
- 7 Replies
- Last post
by Spidermans_DarkSide - VSIP
- I know theres a way I just can't remember.
-
- Textbox value from Child Form to Parent
by SiN!
- 4 Replies
- Last post
by Kiavash
- Hi, I have a MDI form and MDI child. I want the child form to set the value of a text box on its MDI Parent form at various points in time triggered by the user on the child form. I've included the code I tried bellow. The code runs with no errors and the "TextChanged" event of the recieving txtbox runs, but the text is not changed. -------this code is in the child form-------- 'Method1
-
- drawing on forms
by RixVB
- 9 Replies
- Last post
by SJWhiteley
- VB 5 had tools to draw lines and shapes on forms in design mode. I don't see those in Visual studio 2005. Am I missing something I know you can code them, but how do you draw them directly on the form
-
- VB.NET AxShockwaveFlash Transparency Problem
by gyurtyapan
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hello, I have a simple VB Form (VB .NET 2003) that has an AxShockwaveFlash object. My purpose is to make the background of the movie transparent. In VB 6 it was enough to set WMode=Transparent And everything would work just fine. Now i am trying the same thing (with the same movie file) on VB .NET 2003. However setting the property has no effect. When i search the internet, i found many developers
-
- Google maps with wpf
by NICOBASE
- 2 Replies
- Last post
by NICOBASE
- Hello, I¡¯m new with WPF, I want to make a Web WPF application that integrates google maps, and I don¡¯t know how to do it. I need interaction beetween google maps and the app. Thanks
-
- shdocvw.dll
by vCz
- 2 Replies
- Last post
by Cemal
- I am building a tool for a high school that logs application usage and browsed websites.
The program is near to finished, but i run in to an error that i have been trying to solve for weeks now, and it is still even unclear for me in what direction to look to solve the issue.
The problem:
Whenever an Internet Explorer window is the active window, my application wants to read out t
-
- Me.MouseButtons = mousebuttons.left Error( Read Only), But Is it????
by Cammarata
- 9 Replies
- Last post
by Cammarata
-
Is there anyway to get around the example I used On the heading
Me.MouseButtons = mousebuttons.left means, Left Click
Nick Cammarata 14 yr. Old Programmer
-
- Removing inherited ACLs
by PH8
- 1 Replies
- Last post
by Sharma
- I am trying to remove all ACLs from a directory which are inherited from the parent directory.
Manually this can be done with the advanced security settings for a directory, permissions tab, and than deselect : Inherit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here .--> then remove permission entries
I wanted to do the s
-
- Code to convert time in seconds to hh:mm:ss - able to go over 24 hours
by ddebd
- 8 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Hello,
I am trying to find code to use in Reporting Services to format time in Seconds to hh:mm: ss. The problem with RS time formatting is that it won't return the time correctly if the hours go over 24. I tried the following but it only returns minutes and seconds....
Function Seconds2mmss(ByVal seconds As Integer) As String Dim ss As Integer = seconds Mod 60 Dim mm As Integer
-
- Check combobox for text
by newbieneedshelp
- 10 Replies
- Last post
by PEng1
- I want the user to be able to add an item to a checkbox. The problem I am having is that I can't figuire out how to check if that Item already exists in the combobox before it is added. I assume its something like this If NEWITEM.Text <> Checkbox.Items.Contains(newitem.text) Then<---"problem area" Checkbox.Items.Add(txbNEWITEM.Text) Checkbox.Update
-
- o Problems importing enhanced metafiles for printing in VS2005
by John Paterson
- 3 Replies
- Last post
by Feng Chen - MSFT
- I made a small test program that imported a couple of EMF files to enhance the look of printed output, and when I got myself sorted with doing that, tried to do the same in the main project I am working on.
Unfortunately, when I try to import them, I am only offered various bitmap formats, and while I can force an import with the "all files" filter, they DO appear in the Resource
-
- HOW TO CONVERT NUMBERS TO WORDS
by Panaboy
- 3 Replies
- Last post
by ~DigBoy~
- Nedd some help with code is not working so far....
Public Class Form1
Dim BigOnes(9) As String
Dim Smallones(19) As String
Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click
Dim bln, bln2 As Boolean
'Text1.Text = Format(Val(Text1.Text), " ######.##")
'get the number to be 6 digits and two decim
-
- How To Retrieve ComboBox Item With Index
by lucerias
- 1 Replies
- Last post
by nogChoco
- May i know how to retrieve combobox item with index Thank you.
-
- Why does my form load not execute?
by paul_1966
- 4 Replies
- Last post
by paul_1966
- Hi!
I have created a VB application in VS 2005.
Now i suddenly can see that my form load does not execute anymore.
(prgrm does not stop at breakpoints in load sub)
I do not know exactly when it stopped to execute, but what i have done to the program lately
was to add a new form, and call it using showDialog().
Does anyone know why i get this behaviour and how can i re
-
- How do you add a pause with the Timer control?
by Solitaire
- 14 Replies
- Last post
by Solitaire
- I know how to do it using Sleep, but can't figure out how it would work with the Timer control. I have a large application that "flips" digits in textboxes casino style, using the Sleep method. All the code for that procedure is in a button click event. However, if the user decides to click on a different button (to reset, or exit, etc.) it needs to wait for all the digits to finish flip
-
- Dynamic Array
by ExcelMonkey
- 9 Replies
- Last post
by ExcelMonkey
- I have a 2D Array. My understanding of Redim Preserve is that I can only Redim the right most dimension. As such, I know at run-time that I am going to have a 2D array which is:
10 X
However, the number of elements needed in the second dimension will vary. Similar to having 10 columns and varying rows for each column (i.e. column 1 has 4 rows and column 2 has 4000 rows). Each row wi
-
- Displaying images in datagrid columns
by the_atom
- 5 Replies
- Last post
by the_atom
- I need to display images in my datagrid. I've done a google search but still no luck. Can any body help me with this please. Thanks.