-
- DataGridViewLinkColumn
by sl5
- 1 Replies
- Last post
by Ken Tucker
- Hello there
I am working with datagirdviews and have bumped into a problem,
I have a column to display the type of file, i have linked that column to the file path, i made the subprocedure for cell click event, and tried opening the file using openfiledialog, and setting the filename to the path of that file, but that didnt work. still when i click on the link, the file doesnot open automati
-
- PropertyGrid DropDown List
by TrevorW
- 11 Replies
- Last post
by Mukesh Kumar Soni
- This seems like it should be very easy... I am tired and maybe just too slow.
I have a control implementing IExtenderProvider and I have a List<T> within the control. At design time, I wanted the simplest of functionality and for the life of me cannot find a single example.
How do I get the property grid to display a drop down list of the List<T> items so that (at design
-
- Image Resources
by Keith Chapman
- 1 Replies
- Last post
by Dennis Dietrich - MSFT
- I created 2 image resources in the frm.resx file. I added them by selecting to use an existing image in the project root. When I tried to use them:
new Bitmap (GetType(), "NotifyBG.bmp" ), Color .FromArgb(255, 0, 255)
It keeps throwing an exception saying the resource does not exist. The name of the resource is "NotifyBG". I tried using "NotifyBG" instead o
-
- Problem update record in datagridview, textbox data bounded controls when datagridview is sorted
by Rick Shaw
- 2 Replies
- Last post
by Rick Shaw
- Hi, I am having this strange problem updating a record when the user change the sort on a column in the datagridview (column sorting). Here is the setup.
On the form, I have a datagridview and textboxes. Controls are bounded to a datatable in a dataset. The datagridview is ReadOnly. When need to edit, the user click the change button and make changes to the textboxes whi
-
- How to bind an arraylist to combobox without a nullvaule
by pacratm
- 2 Replies
- Last post
by pacratm
- I am real new to visual basic and I am creating a list of time to dislpay in a combobox. This is what i have so far:
I have made a class that contains a 24 hour period of time in 5 min. incriments. This is only a few of the current list.
Public times As New ArrayList
Sub ReadTimeArray()
times.Add( "12:00 AM" )
times.Add( "1:00 AM" )
times.Add( "2:
-
- Customizing the CollectionEditor
by EvilPenguin
- 3 Replies
- Last post
by Mei Snyder
- Hi, I have an object being presented in a PropertyGrid, which has a generic List<T> property. This gets the default CollectionEditor, but I would like to customise this a bit, specifically by adding a 'sort' button. Is this possible, or would I have to derive from/rewrite the collection editor Thanks
-
- ImageList 32Bit Showing in designer but not at run-time quesiton
by melegant
- 5 Replies
- Last post
by melegant
- Hi,
I have an imagelist that I am using with a treeview. My settings for the imagelist is Depth32Bit and 32x32 size.
In my vs designer it looks great and exactly like my 32bit 32x32 .png image.
At run-time...it looks like ***. =) My desktop is running at 32bit color.
I thought I saw something about this but I can't find it...argh. Graphics are not my friend.
Thanks!
-
- Form printing problem
by Darktide
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I have taken over a project that has passed through 5+ developers. On the form for this project there are 12+ Comboboxes that are populated from XML data and then based on the selection poupulate a lable with the matching Code. For example there are two ways the Combobox lists are populated. On the screen you see the DisplayMember in the ComboBox for your selection and the ValueMember in
-
- draw an image in original pixel size
by yaron-ct
- 7 Replies
- Last post
by nobugz
- Hi, I'd like to draw an image in original size (in pixels). According to doc DrawImage uses physical size by default. does that mean that:
Code Snippet
e.Graphics.DrawImage(image, new Rectangle(new Point(x, y), image.Size), new Rectangle(new Point(0, 0), image.Size), GraphicsUnit.Pixel); is the simplest way to do this, or am I missing something here
-
- Fade Image Animation
by shred444
- 1 Replies
- Last post
by Peter Ritchie
- I'm working on a script to fade a piece of text in and out using C#. I've started by drawing the text using e.Graphics.DrawString(); in the OnPaint() function. Then when i want to fade, i created a loop to place multiple strings, but incrimenting the Alpha value. [code lang="csharp"] using (Brush textBrush = new SolidBrush(Color.FromArgb(alpha_tween, 0, 0, 0))) { e.Grap
-
- notify icon
by nikos_22
- 1 Replies
- Last post
by Damiaan
- I have a form and a notify icon related. How can i minimize the form and only the notify icon to be dislpayed
-
- Help regarding thumbnail images in listview
by Anu_81
- 7 Replies
- Last post
by Anu_81
- hi all, I am using a listview to display thumbnail of images with some text. i have used largeicon view to display them. i have created the thumbnail images and its displayed. as in explorer, i need to have the thumbnail image displayed as a folder. (like a border to the thumbnail and text). How can i do it i saw a article here in Codeproject but the code is in VC++.and i am not aware of VC++.
-
- combobox Autocomplete reverse order
by Chrissie1
- 2 Replies
- Last post
by Chrissie1
- I'm using VB.Net with VS2005
There seems to be a problem with the autocomplete and reverse orering of items.
I have my items in the list reverese ordered something like this
TEX00119C
TEX00119B
TEX00119
And I have the combobox Setup as such
Autocomplete = true
autocompletemode = suggestappend
autocompletesource = listitems
Now when I click on TEX00119
-
- How do I Print and preview Dynamically generated Form Controls?
by Hmmmmm
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- I have a scrollable panel that dynamically generates textboxes and buttons, (with the text property displaying the associated DB Entry).
How would i go about generating a print document that displays this panel (and the controls it contains), for the purpose of print preview and print
-
- PropertyGrid - Visible and Enabled Properties
by Paula M
- 6 Replies
- Last post
by Malacki
- Hi,
I have an application that uses the properygrid object to display properties of a custom class - the custom class inherits a button. After the user sets the properties, they are allowed to save them. The problem is the visible and enabled properties are always set to true even if they set them to false.
Is this a known issue
Thank you in advanced! Paula
-
- Flattening entity collection for display in Grid
by Dinesh Upreti
- 3 Replies
- Last post
by aybe
- hi, consider the following entities. public class Address { string street; } public class Customer { private int _name; Dictionary <string, Address> _addresses; public int Name { get { return _name; } set { _name = value; } } } As shown, Customer entity has a collection of Address entity. (a customer has more than one address). The problem is that when i want to show the data in grid (its a
-
- secondary window allways focused
by JGLP
- 2 Replies
- Last post
by JGLP
- hi everyone! i have a main window that fills the entire screen, and another that is smaller. when i focus the main window, the secondary obvios disapeer... is there any way to put a window allways focused thanks
-
- Setting the value of a DataGridView Column
by BexM
- 7 Replies
- Last post
by Fábio
- Hello
I am relatively new to windows development, and for some reason I am finding that the things I found unbelievably simple in web, I can work out for windows.
I have a datagridview and a dataset that I want to bind to it.
I know how to go Datagridview.datasource = my dataset and then datagridview.databind(); This will display all columns in the gridview, but I want to set
-
- GetEnvironmentVariable not returning new value
by JRQ
- 4 Replies
- Last post
by JRQ
- When a variable is changed outside the current program, Environment.GetEnvironmentVariable doesn't seem to reflect the new value without restarting the program. This is a problem with disconnected RDP session from one machine and the user reconnects using another machine. The new machine will just pick up the existing session with running program still intact, thus some of the current program's ca
-
- How to edit a row in a DataGridView
by johnstonb
- 4 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Normally I do web applications and this is why I'm lost.
I have a winform that has a datagrid view which is bound to a BoundDataSource control who's source is a class that comes as part of a intra-department web service. When I want to edit a row, I don't want to continually hit the web service for each cell as it's updated, I want to do something like:
OnRowEnter() { gvData.CurrentRow.Beg
-
- Error in AddNew
by Nirav KAKU
- 2 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I am using .NET v1.1 with VS 2003. I am facing the following error when I call myCurrencyMgr.AddNew() if the DataTable is empty. DataBinding could not find a row in the list that is suitable for all bindings How do I resolve it
-
- MS Chart Help
by eusanpe
- 2 Replies
- Last post
by eusanpe
- I am working with MSChart. I took the example code off of Patric Johansson tutorial about MSChart and trying to make mine do the same thing. Here is a piece of his code: ------------------------------------------------------------- axMSChart.ChartData = new Object[5, 4] { {null, "Computer A","ComputerB", "Computer C"}, {"10:00 AM", 123131,
-
- Values not updates consitently
by .net sukbir
- 0 Replies
- Last post
by .net sukbir
- Dear All,
I got a simple application. Where I have a text box and the user insert the serial number then I will check if its status in the database is 'y' then I able to selected and sets a new status as 's'. The problem here if I do it 2 for different serial number for ex .00123 and 00124. The problem is that 00124 is updated with status 's' and the status of 00123 remains as 'y'. The c
-
- .exe prereq not being downloaded
by theNetSmith
- 8 Replies
- Last post
by theNetSmith
- I have created an executable console app that needs to run as a prerequisite during the installation of my primary application in order to create a SQL Express database and database user and a DSN.
With the Bootstrapper Manifest Generator, I created the package for the .exe (with .Net 2.0 and SQL Express dependencies). Next, I added this package as a prerequisite for my ClickOnce deployment
-
- Naming class instances at runtime
by Brian Wood
- 9 Replies
- Last post
by OmegaMan
- I've been trying to figure an answer to this one for a while now, as you might have guessed I'm pretty new to C#. The scenario I want to solve is this. I'm writing a windows forms application, in which a user will add instances of a defined Person class. On adding the name via a form, i want create either an instance of the class with that name, or an enumerated instance name and then store the in