-
- When CheckForIllegalCrossThreadCalls == true, does the framework inform of ALL the control access errors?
by micha12
- 14 Replies
- Last post
by Xzion
- Hello,
When I set the Control.CheckForIllegalCrossThreadCalls to true, Visual Studio generates an exception each time I try to access a control from a thread other than the thread on which the control was created.
However, in some cases this exception is not generated. For example, I am using the ComponentOne Chart ( www.componentone.com ), and I am able to update the graphs of the chart fro
-
- How do I resolve this : -Cannot evaluate expression because a thread is stopped at a point where garbage collection is i
by Please help with my query.
- 1 Replies
- Last post
by EliGazit
- Greetings all,
I am using a datagridview control that has a number of columns and a variable number of rows. The datagridview control is passed to a second form. I need to obtain various cell values from each row in the grid. I am getting the following error :-
Cells Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly becaus
-
- Migrating application from Access/SQL to C#/SQL - Combo box issue
by Harpazo
- 1 Replies
- Last post
by BonnieB
- I've been tasked with converting all of the Access apps that have been used as frontends to SQL to web-based applications written in C# that will also act as frontends to a SQL server. While I've been successful in moving most of them, I've run into an issue with C# combo boxes.
Briefly...in Access the client has a form used as a frontend to SQL to add registration information to. It has many c
-
- Threading CustomControls from Windows.Form
by A J G
- 2 Replies
- Last post
by A J G
- After spending 10 hours Googling, I just can't find a solution to this.
I've created a CustomControl (in C#) that simply displays an image (named ImageFrame).
I then populate a FlowLayoutPanel with any number of these ImageFrame(s) (could be any quantity from 5 to 500). Initially they are displaying nothing, but contain a string with the full-path of the image they will eventually display.
-
- MDI parent background?
by artificer
- 5 Replies
- Last post
by artificer
- I would like to create an mdi child that is always presented and that ˇ°fillsˇ± the parent background. Others MDI childs will be on top of this one. I tried removing the borders of the child and setting its default state to maximize but it do not work as expected. I want to create an effect similar to Microsoft dynamics SL interface. Please take a look at this picture for reference:
http://en.w
-
- Distinguishing actual keystrokes and virtual keystrokes
by Eclipse
- 4 Replies
- Last post
by Eclipse
- I don't know if this is the right spot to ask, but I'' find out... ;-)
Is it possible to distinguish an actual key pressed on your keyboard from a simulated windows message The reason I want to do this is to check if cheats are used in a game; That is, did someone actually press a button when the weapon was fired ingame or did he use code to invoke the fire event
I'm currently trying
-
- Updating dataset with non-identity Output parms from a stored procedure.
by hodge
- 1 Replies
- Last post
by hodge
- Hi,
I am using the Data Access Block from Enterprise Library 3.1 to access SQL Server. All is working well except for one thing.
My update sproc has an output parm of datetime type called UpdatedOn. The sproc sets a variable to GetDate() and sets the UpdatedOn field in the db to this value and then sets the Output variable to the same value.
Here's the sproc:
ALTER PROCE
-
- Removing and Adding columns in a ListView
by AmazingAnt
- 6 Replies
- Last post
by AmazingAnt
- I found this amazing item today that I can add to a form called a listView. I can set it to view as details, and it shows up as a list of items with columns for different details to be added. The problem is for some reason I can't seem to find the way to hide a column. By a bunch of searching I managed to find that there isn't a way to hide them, and thus the only way to do this would be to remove
-
- DataGrid Delete Row Problem -- EditMode=EditOnEnter
by Ganesh Bansal
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hello Everybody I am using DataGrid in my C# Desktop Application. In this, I have set EditMode to 'EditOnEnter'. I need this EditMode as I am adding some combo box column in my grid. If i don;t use this EditMode, I need to click twice to open that combo box. But after making these changes, I am facing a new problem. Now I am not able to select the complete row for deletion. Although it selects th
-
- Detecting links in web Browser control
by &#169&
- 2 Replies
- Last post
by Timo S
- When I mouse hover over a link in my WebBrowser control, I want to show its target site in statusBar. How can I do that Timo Salomaki
-
- hyperlink in datagridview
by Shirisha Ganta
- 2 Replies
- Last post
by Shirisha Ganta
- I'm using a GridView in C#.Net 2005. One of the column of the GridView is Hyperlink Column.
When i click the hyperlink i want some message to be displayed in
another datagridview page and that should be retreived from database
based on the link message.
i know how to put the hyperlink to the text,but i dont konw how to
retreive information based on that link. How can i achieve this Where
-
- DatagridView ComboBox Column
by Claudeb1965
- 2 Replies
- Last post
by Claudeb1965
- Hi, I have a Datagridview in a form. I created the datagridview in design mode. At runtime, I load the data (some colums are visible, many aren't) in the Datagridview and it works fine. I have 2 problems due to the fact that the application can be in display info in many languages based on the user preferences: First, I would like to change the header of the visible columns at runtime. Second, I w
-
- Updating the underlying table of a views in datagridview
by KevinRevenueResearch
- 2 Replies
- Last post
by hrubesh
- I want to present data in a datagrid view from multiple tables, but have update work for one of them as follows:
Table EquipType has two fields: EquipID, EquipName
Table EquipQuant has two fields: EquipID, EquipQuantCount
I want to present the user with a datagrid view that shows two fields: EquipName, EquipQuant
and when they hit the save button I call
equipQuantTableAdapterInstanc
-
- how do u use Textbox AutoComplete Collection from a database/.txt file?
by matt ham
- 1 Replies
- Last post
by matt ham
- Is there a way to pull a huge Collection list for the AutoComplete Method used in Textbox's from a database or a .txt file so that there is no limit of the amount of options there are I noticed there is a cap on the collection of i believe 3000 or so. Does anyone know of a way to do this using like a .txt file or database file so it will pull the Collection options from that so there is no maximum
-
- Clickonce: Cannot Start Applicaton - download did not succeed...
by basementjack
- 2 Replies
- Last post
by Karol Rewera
- Any thoughts on what I need to do to fix this
Pretty simple app - did a deploy in visual studio, got all the paths right, copied the files to the IIS server, opened the publish.htm in the browser from the websites external URL.
Says something about a bad Cert or Secure Channel...
heres the 'details...'
PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runti
-
- Form Designer Control
by Vijayakumar.Y
- 2 Replies
- Last post
by Vijayakumar.Y
- How to create a Envelop, Label and barcode designer control I tried the designerhost sample and failed to convert it as a control in .net 2
-
- Rich text boxes and blocking edits (Visual Studio 2005)
by bkejser
- 2 Replies
- Last post
by bkejser
- Hi
Is it possible to lock portions of a rich text box
For example, if an image were embedded inside a rich text box and text was placed before and after the image, is it possible to prevent a user from deleting or resizing the image but still being able to modify the text inside the rich text box
Thanks
-
- Problem faced in AutoComplete code for TextBox
by Dev24
- 14 Replies
- Last post
by Dev24
- I have written Following code to do AutoComlete in textBox.
AutoCompleteStringCollection data = new AutoCompleteStringCollection(); data.Add("Mahesh Chand"); data.Add("Mac Jocky"); data.Add("Millan Peter"); textBox1.AutoCompleteCustomSource = data;
But i am geting error:
Cast is not Valid,
If anybody knows the reseaon, p
-
- Calendar Control Design issue
by rlcoach
- 0 Replies
- Last post
by rlcoach
- I am designing a custom calendar control that will have timeslots instead of time on the left. It will function similar to Outlooks Calendar, it will have a dayview, weekview, monthview and should be drag n drop. What I would like to know is what are the advantages or disadvantages to inheriting from the datagridview I cannot decide whether to write a control from scratch or to inherit from the d
-
- Common Tasks
by robinjam
- 7 Replies
- Last post
by robinjam
- How do I add the cool 'Common Tasks' section to my user controls
-
- TreeView Events Not Firing
by Rudedog2
- 2 Replies
- Last post
by Rudedog2
- The "Click" and "AfterSelect" events are simply not firing for me. Is there a bug I have placed breakpoints on my event handlers. They never break.
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1413301&SiteID=1
Every code sample I find does not work. I can add and delete nodes without problem. Just cannot make events fire.
http://www.c-sharpcor
-
- User control, designer says "The variable 'integratedSearchView1' is either undeclared or was never assigned"
by ps0118mj
- 0 Replies
- Last post
by ps0118mj
- I have a user control entitled 'integratedSearchView1', and I've been working with this control for some time with no problems. All of a sudden however, I can't load the form into the VS2K designer, because every time it is referenced in the "InitializeComponent" code, it hasn't yet been initialized. This is because the line of code, which I am sure the designer is supposed to insert, th
-
- MDI with new SplitContainer
by NitinDhall
- 5 Replies
- Last post
by GriffinSmith
- Hi, I have an MDI WinForms app that has a splitter to the left with a tree control in it and the MDI child windows show up on the right hand side of the splitter. I would have coded it with the Splitter control using .NET 1.1 In .NET2.0, the Splitter has been changed to SplitContainer. How would I get the MDI child windows to show up when the whole body is filled up with the splitcontainer Do I k
-
- making arrow with with borders
by bucz
- 4 Replies
- Last post
by bucz
- I wanted to draw an arrow on screen. I can do It easly using DrawLine with Linecap, but then I get arrow with only one color. I wanted to make arrow that would be, for example, yellow inside and black at borders. Is that posible in such an easy way as drawing single - colored arrow
-
- Science Fair Help
by Ryan Waite
- 5 Replies
- Last post
by Mark Dawson
- Hello, I'm entering a local science fair that my homeschool group is doing, and I need some help with code problem.
My Basic idea is to build a Windows Form, with buttons that when clicked play a .wav file (recorded by me) explaining the basics of computer programming and how it has advanced through the years. Because ideas like Binary language are hard to explain verbally, I included a read-