-
- Setting TopLevel to True makes a form always on top only in the current application - not working
by VBT
- 5 Replies
- Last post
by nobugz
- I have set the form load to
Me .TopLevel = True
however when i run it it shows in front of my main screen(within the app), but if i click the main screen the form disappears, and it shouldnt..
Basically i have a main form and then i click on an icon and a properties window pops up i want it so that (within the application only) you can not click on anothing else within the App u
-
- Do i understand Beginedit()?
by dtsn
- 10 Replies
- Last post
by dtsn
- Hi, I am trying to edit a row in my database, but the value doesn't want to stay. When I close the program and reopen it the row just reverts back to it's original value. I'm not sure if I am using begin and end edit correctly. Are they meant to save the new edited row Here's my code: Step.Email.FindByID(0).BeginEdit(); Step.Email.FindByID(0).Text = SuccessString; Step.Email.Fin
-
- DateTimePicker (.NET 2 C#): Programmatically moving from month to day selection
by k.djenkov
- 1 Replies
- Last post
by nobugz
- Hi
I have a DateTimePicker control which shows date in short dateTime format. When user enter a month I want automatically to move selection to day part (by default user should click right arrow to move to day part)
Is there a way to achieve this
-
- Initialise ImageList in a Settings file
by New-Bee
- 5 Replies
- Last post
by New-Bee
- Hello, this is a terribly silly newb question, still for some reason I can't seem to find the answer in the archives nor in google... I've got a ImageList in my Properties.Settings (set to User) which simply refuses to save new values. Apparently, the problem seems to be the fact that I left this setting empty in the settings grid- that is with no default value. I've been trying new ImageList() ,
-
- Open Source Ribbon/Office 2007 UI Library
by TheTrueAPlus
- 1 Replies
- Last post
by nobugz
- Good afternoon all. I am just writing to day to ask and see if there would be any interest in an open source ribbon/Office 2007 UI library coded in WPF/WinForms. The project is just an idea right now. My feeling is that the community would benefit in the long run. If anyone is interested please let me know ASAP. Daniel A. White P.S. I'm thinking of taking the C++/CLI route for best interoperabilit
-
- ToolTip
by Chardiot
- 7 Replies
- Last post
by nobugz
- I have added a Label to a form and use it to draw text in various locations. I want to display a ToolTip describing the test that the mouse hovers over.
I have added the ToolTip programmatically, however the MouseHover event only gets fired if the mouse moves out of the Label and back into it. I want it to work if it just moves to a different Text o the samle control.
-
- BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress.
by Wei Wang father of twins
- 14 Replies
- Last post
by ablmf
- Don't know if this is right group to post this question.
My program is in .Net 2.0,
It is data entry form that has no code related to graphic manupilation. But my clients sometimes get this error. and it will show some big red X over some controls.
I've never seen it in my development machine though.
"BufferedGraphicsContext cannot be disposed of because a buffer operation is cur
-
- Handle a textbox outside the form
by Bertrand Caillet
- 9 Replies
- Last post
by uXuf
- Hi all,
I'm new in C# and I'm still learning basic function. I'm sure this one is very simple but I can't find any help.
I want to change the value of a textbox from a public class that is outside the form that contains the textbox. So, I cannot use this.textbox.text = ...
I try to declare the textbox as a static variable like static System .Windows.Forms.Control Status = System .Windows
-
- Automatically run REGASM/codebase after install?
by Rene564489
- 3 Replies
- Last post
by PhilWilson
- I have written a class library app in VB 2005 and want to deploy it. Once on a machine, I must run Regasm /cobebase myapp.dll from the .Net location to make it work. How do I get my setup to do this automatically I tried creating a custom action and added it to Install and Commit but it gives me no errors and doesn't register the dll. If I do it manually after the install, it works fine.
I
-
- uninstall the application from the Start Menu in clickonce deployment
by kailashswain
- 10 Replies
- Last post
by kailashswain
- Hi,
I am using clickonce deployment for smart client application. I want to add uninstall the application from the Start Menu in clickonce deployment. Please help me . This is very urgent.
-
- Click Once Install Problem on Client/Customer Side
by ben.K
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- Hello, i am new with C#, and using the Express Edition to develop an example to get familiar with C#. After i finished the little Applikation i want to deploy it to a client like i would do later to customers. On my Machine the applikation runs fine, but when i try to install it on a client i got an error message. You could download the setup.exe, and run it, the there is some connection establish
-
- ApplicationSettings, ClientSize property does not revert form's previous size after maximizing
by Marek Zgadzaj
- 14 Replies
- Last post
by Marek Zgadzaj
- I use some of ApplicationSetting like Location and ClientSize . After I set the ClientSize the previous form size is never restored to its previous state after form is maximized.
I recorded this problem (1.5MB). The video can be downloaded from this address:
http://www.zgadzaj.pl/temp/ClientSize.wmv
In this video you can see that location and size is stored i restored properly but
-
- Minimize program when a modal dialog is shown?
by PublicError
- 4 Replies
- Last post
by nobugz
- Hi
In my main-form I open another form using:
new AnotherForm().ShowDialog();
AnotherForm has these properties set to "false":
- MaximizeBox
- MinimizeBox
- ShowIcon
- ShowInTaskbar
Now if I open this "AnotherForm" using the code above, is it then possible to minimize
both forms (mainform and the opened AnotherForm), by pressing the taskba
-
- DataBound DateTimePicker/ComboBox Events
by m_shane_tx
- 9 Replies
- Last post
by m_shane_tx
- Events on Databound controls that have their Visible Property set to false at DesignTime do not fire events. I was told this was part of their design. I accept that fact.
But controls that have Visible set to true at design time and then Visible gets set to false at runtime, will fire events even though Visible is false.
Question 1: Why does having Visible = false at Runtime and Design time
-
- How do I know when an item has been added or removed to the listview control?
by Paolo Ponzano
- 13 Replies
- Last post
by Damiaan
- Hello, I was trying to update the number of item present into a listview (in detail mode), but I was not able to find in the Listview an event that does what I need. I've item that are being added and removed and I wanted to show how many are still present. I've tried to use the event ControlAdded and ControlRemoved, also CacheVirtualItems. Do I need to extend the ListView control and add an event
-
- Is is possible to disable the mouse right click?
by Alexander75
- 3 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I need to disable the mouse right click when a control (non microsoft) is clicked. This control is supposed to open a dialogue when is clicked but instead I need to perform other operations like closing and resizing etc
Is this possible
Thank you.
-
- How do you supply basic authentication or userid/password to WebBrowser class or Document property programaticlly
by Anonymous556220
- 2 Replies
- Last post
by Anonymous
- So I have the following code.
What I am trying to do is to access a web page on my router and click buttons programaticlly. Everything seems to working fine accept I get a dialog or popup and have to supply userid password via basic authentication. My question is how do you supply this in the code below or programatically so that I would not get a popup asking for credentials. Or if there
-
- How Can I show some details when mouse over DataGrid ??
by John Morad
- 1 Replies
- Last post
by Ken Tucker
- Hi all,
Here is the business secnario,
I have small app with one section for Employees, I show all the employees in DateGrid View, what I want to do is this:
I have another small form with bounded details from tthe Employee table,
1. When the user will mouse over the DataGrid on particular Row, I want to show the small Employee Form Details with the currect Employee record!
-
- Urgent! ListViewGroup Colours
by яeverser
- 4 Replies
- Last post
by ?Ramjet
- Hi all,
Can anyone give me a clue as to how I can change the foreground colours of the ListViewGroup objects
Using the owner draw option, I can control how ListViewItems and Headers are displayed but not the ListViewGroups.
Urgent assistance needed as need to fix and behind schedule (again)
Thanks.
-
- Database Woes!!!!
by philknight
- 4 Replies
- Last post
by Ken Tucker
- I am trying to enter data collected by an I/O card connected to the computer into a database. I have a data set and table adapters, no problems there. I can add the rows one at a time while the data is collected, to the dataset and when a specific number of new rows(in this case 25) has been reached the data set is appearently sent back to the database with a call to the Update() method in the tab
-
- Adding multicolumn data into Listbox in C#
by Leefri
- 10 Replies
- Last post
by fcoder
- How can you add multicolumn data into Listbox using C#
I want it that a user clicks a button and the button event adds 1 row of 2 columns of predefined data. I've already defined the listbox as multicolumn. Surely there should be a way to state what column you want editing.
Otherwise is only a datagrid good for this
Code Snippet
public partial class Form1 :
-
- Combobox
by hooman.tadbiri
- 5 Replies
- Last post
by hooman.tadbiri
- Hi! First I want to set my program to expand the combobox when a person started writing in it. How can I do it And second is how can I show and item which is needed (E.g. I have a combo box with 5 items; ¡®a¡¯, ¡®ab¡¯, ¡®abc¡¯, ¡®abcd¡¯ and ¡®abcde¡¯. When a user taped ¡®ab¡¯ I want to select it.) Exactly I need the system which visual studio uses when the user is typing code, but just for a combobox in my fo
-
- Bitmap.MakeTransparent() throws Out of Memory Error()
by EoF
- 2 Replies
- Last post
by EoF
- Hi, I am trying to create a masked bitmap by using Magenta as a transparent color. I am loading the image from a file and all's ok until I call MakeTransparent(Color.Magenta) when I get an Out of Memory exception. I am using Visual Studio .NET 2003 and the following code to load the bitmap and create the transparency mask:
Code Block
System.IO.Stream BitmapStream = System.IO.File.
-
- how to make two buttons, which are into tablelayoutpanels, exactly the same in all the app
by creaturita
- 3 Replies
- Last post
by Karthik Simha
- Hello,
I want to make two buttons, exit and save buttons, exactly the same in all the forms of the app.
The problem is that they are into tablelayoutpanels, so putting it in the same position in all the app is very very hard.
I want to make a function that should do the following:
make the buttons the same size (i know how to do it)
make the distances between them and the distanc
-
- multiple comboboxes on a form
by Lint316
- 5 Replies
- Last post
by Lint316
- Hey guys. I was wonderng if anybody could help me with this problem. Im new to c# and im not really sure how to do this. my form has two comboboxes.. one called select team and the other called select team member.. the thing is, after select team is chosen, the results of which team was chosen is displayed in the second combobox. So depending which team is chosen, its members will be displayed in