-
- Adding a custom event for a textbox
by x868
- 1 Replies
- Last post
by Tall Dude
- This question is partly related to a previous post about triple click in a textbox. Now that there is a code to identify triple clicks, how can I define this as a custom event for all textboxes in my windows application so that the code for identifying triple-clicks can be centralized. In other words, How do I go about creating a custom event called triple-click in the method name drop down list f
-
- Stupid question
by volkers
- 2 Replies
- Last post
by volkers
- Hi,
How can react on mouse events on a manually created window within a windows forms application
On runtime I'm creating a new window within my form for drawing some OpenGL stuff. (In fact im creating a new instance of a class called "OpenGL", which then creates that new window )
Now I want to change some local variables when the mouse is moved or a mouse button is p
-
- How to define a code to find CD-ROM drive or letter in any PC
by Anonymous585191
- 5 Replies
- Last post
by HanneSThEGreaT
- I just need a code that find the path (letter) of CD-ROM drive in any PC. For example I have published my program into a CD and in my program codes I want to open a file which is on the CD where my setup files are. Please help me to make it. THANK YOU ALREADY
-
- Accessing a running process...
by Mr_Kraut
- 4 Replies
- Last post
by Mr_Kraut
- Hi all,
I have a serious problem with C#:
There is a very old program used to manage CAD-files.
I need to tell this old thing to execute a certain script.
The problem now: in Visual Basic I can use:
Code Snippet
Dim myOldServer as Object
Try
myOldServer = GetObject( , "OldServer.Application")
myOldServer.ExecuteTclScript("myscript",
-
- Any Way To Speed Up This Math Formula Loop?
by GAtkins
- 11 Replies
- Last post
by JohnWein
- Greetings:
I am in the process of moving a program from Excel VBA to VBE 2005.
In each, I run numerous iterations of calculations over multiple years. Listed below is the heart of the computations, but there are many others that are standard addition, division, multiplication, etc.
For i = 1 To Iterations
For j = 1 To Years
Counter = Counter + 1
MyArray(i, j) = 1 +
-
- Change background color and save it
by andis
- 9 Replies
- Last post
by AmazingAnt
- i have a form and inside it a color dialog. When you run the program the user can change the background color of the form by picking a color. Now i want when the program closes and restarts the background color will be the one chosen by the user.
So, when the user selects a color how can i save it
-
- a question guys
by jin katama
- 12 Replies
- Last post
by jin katama
- how to play the swf
i tried adding the reference in the project menu
but it produce the error
tell me how to play it
if have any ocx control to play it tell me pls
-
- SQL Server error, Build a Program Now, less 8
by xshua
- 4 Replies
- Last post
by spotty
- When I try to add a SQL Server database object from the templates ( to windows application) a connection to the SQL Server cannot be established. Message says this may be due to the fact that under the default settings the SQL Server does not allow remote connections. The function mysteriously worked once but it won't work again. How do I correct the default settings
(provider: SQL Network Int
-
- password string question
by gibbo1715
- 3 Replies
- Last post
by gibbo1715
- Hi All
can anyone point me in the direction of how i can ensure my users useNumbers, chars and *./ etc in their password please
eg Password1.
thanks
gibbo
-
- 2 Q's: Test Cetificate expiry date and Assembly Information: GUID
by Roachy
- 9 Replies
- Last post
by ReneeC
- Q1.
I've been creating test certificates for my app without really understanding much about them, only that I must have one otherwise I can't publish.
I've noticed that they are only valid for 12 months
If I am giving/selling an app. to others what happens after the certificate expires
Is there a way of not including a certificate
Q2.
I have 2 separate projects but they
-
- double quote as delimiter
by Tigerwood2006
- 5 Replies
- Last post
by Solitaire
- I am using the split method of string variable to sub-divide the string by supplying it with a delimeter. I am puzzled by how to specify a double quote as such a delimeter, does anyone how to do that
-
- Tackling an issue
by Thrix
- 14 Replies
- Last post
by Thrix
- Hi all, I'll try to describe this as best I can. If it gets a little confusing, let me know and I'll try to rephrase everything I've said! For the past few weeks I've been trying to get my head around VB2005EE. After reading a few books and tutorials I feel that I'm almost ready to go ahead and build my first "real" program to distribute. The program I have in mind should be nothing co
-
- Multiple Textboxes to Listbox
by CamaroBee
- 5 Replies
- Last post
by CamaroBee
- I've been looking all over for some help to code about five textboxes into a listbox and only showing the name of one of the textboxes in the listbox. Also how do i get the listbox file to open back into the five textboxes Thanks
-
- Disable manual entry of text in a combobox
by Thymen
- 2 Replies
- Last post
by Thymen
- Hi folks,
suppose I have a combobox, with several items in it. Then what is the easiest way to prevent te user to manually enter text into the box In other words, to force the user to select from the drop-down list
I could ofcourse use a listbox, but how about the combobox What I have done now is use the .TextChanged event to reset the text, but it is not an elegant way of doing it.
Thyme
-
- .tmp files
by RTLives
- 3 Replies
- Last post
by Glenn Wilson
- G'day:
Since installing the latest service pack on c#, the project directory is being filled with .tmp files.
Any suggestions
-
- run app on logon
by jin katama
- 14 Replies
- Last post
by jin katama
- hello friends
may i known this thing
how to run app when a user click the user account(on welcome screen)
i want my app to run when a user logon to the user account
------------------------
i known to add to startup but it run the app after the user logon to the system
i need to run the app when user click on the user account
-
- PictureBox1.ImageLocation Problems
by Robert3234
- 4 Replies
- Last post
by Robert3234
- I'm trying to get the location of an image from a picturebox. IE, if the image is being kept at: C:\Documents and Settings\Pictures\image.jpg i want to get that location from the picturebox, and then write it to a file. Here's a little sample of... the program itself: Imports System.io Public Class QuestionManager Private Sub writeFile() dim sw as streamwriter = new streamwriter("test.t
-
- Printing changes to a data grid
by SirronTM
- 2 Replies
- Last post
by js06
- I have a data grid that retrives certain records from a database. The user can then edit the data, and update the database to reflect these changes.
I need to be able to print a receipt, that shows each record that has changes.
I've got the printing sorted, I just need a string that contains all the updates records or something. I don't know how to select only the updated records or
-
- Logic problem
by stallion_alpa
- 10 Replies
- Last post
by Dave299
- This problem appears to be a logic problem rather then a syntax one. Basically I have a heap of images and I want to display 3 per row. My problem is atm it is only displaying 2 on the first row and then 1 per row after that. Here is my code: Private Sub maps_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load loadworldMaps() interval = 0 setting = "maps&q
-
- Weird Problem in Directory.Delete() function.
by msdnlover
- 14 Replies
- Last post
by nobugz
- Hi All,
I am running a c# console application using framework 2.0 on win2k server. This application deletes some directories from a given server. It first loop through the files and deletes them which that directory may have and then finally delete the directory itself. The code works fine except that in some case the directory/folder still shows up in windows explorer even though the directory
-
- iTunes COM Problem
by Kokkei Mizu
- 6 Replies
- Last post
by adrian gutierrez
- Hey there. I am writing a program that includes showing the current playing song on iTunes. I also want to show the current playing song on Windows Media Player and WinAmp. My problem is the following: If iTunes (and I'm assuming WinAmp or Windows Media Player) aren't open or the music is paused and now Current Song is being passed, my program freezes. These are the steps I've taken to showing the
-
- Please an example.
by NetPochi
- 3 Replies
- Last post
by Bruno Yu - MSFT
- Hello. Did anyone add a new row on a Bindingsource.currencymanager I'd want to see an example of how I can do that.
Thanks...
-
- Saving Data to a DataSet
by michaliv
- 1 Replies
- Last post
by spotty
- When I connect to a database and try to make changes, I cannot get it to save my changes to the dataset. When I Start the program and make a change and hit the SaveItem button, then close the form and restart the program the changes are not saved. Here is the code that is automatically created for the SaveItem button:
Me.Validate()
Me.CustomersBindingSource.EndEdit()
Me.CustomersTable
-
- can't edit while debugging
by BadButBit
- 14 Replies
- Last post
by BadButBit
- hi,
I've started a new project and have grown used to the luxury of being able to edit my code while I'm debugging. now with the new project... all I get is an annoying 'bell' everytime I try.... any ideas
BadButBit
-
- text box invalid char beep
by Cameron Kloot
- 5 Replies
- Last post
by Gunta987
- hi, how would i be able to make a textbox not have the beep when bad chars are imputed even with the accepts return option, it doesnt get rid of it. would the same method work for a combo box thanks