Answer Questions
Sidon ClickOnce file extension registration
In the ClickOnce FAQ at http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=17&CategoryID=24&tabindex=2 it says: "Some low impact tasks such as file type registration can be achieved with first time app-startup logic in your application" How can I register a file name extension which will invoke my ClickOnce deployed application If one can find the .exe on disk and register this one then ApplicationDeployment.IsNetworkDe ...Show All
Tito Jermaine Resizing a control problem in design mode
I have created a UserControl and a designer for it and I am having problems with the adornments drawing incorrectly when resizing the control in design mode. When resizing the control, the adornments are drawn to the original control bounds and not to the resized control bounds. If I select something else, and reselect the control, the adornments draw correctly. Here is how I am declaring the UserControl: [ Designer ( typeof ( UserControl1Des ...Show All
Kaan Demirtas Custom TreeView
Hi I'm trying to create a custom TreeView using C#. What I want to do is to paint the background of the TreeView with fill gradient colors. The problem is, even when I override the OnPaint event, the control still has the white, original, ...Show All
perry yukon ssis Switch connectionstring for TableAdapter
TableAdapter is great. But, each TableAdapter needs itself connectionstring. Now, I need to switch Sql Server database, do I need to reset connectionsstring for my more than 50 TableAdapters Is there a better way to do it Thanks I believe you should have put your connectionString in app.config. If not, try doing search and replace. Connetionstring in app.config doesn't work for TableAdapter in DataSe ...Show All
ed_narayanan Using Primary Keys in Dataset's DataTable
Hi, I have a dataset that has one table and 5 columns in it and I have set 2 columns in the dataset table as primary key Columns. Now, how can I make use of these primary key columns For eg: If I want to say that get me all rows where PrimaryKeyColumn1 = '11' and primaryKeyColumn2 = '44' then how would I say that Would I have to use DataTable.Select method Dataset.Datable(0).Select ("PrimaryKeyColumn1 = 11 and primaryKeyColumn2 = 44) ...Show All
Martin999 dataGridView - RowHeader slection problem
If I select a row in my dataGridView by clicking on it or by navigating to it by kexboard arrows - the appropriate rowHeaderCell is also selected and an arrow appears in that row. However, if I select a row in my code via dataGridView1.Rows .Selected = true ; the row is selected but the appropriate rowHeaderCell does not display the arrow in that row. Instead, the arrow is displayed in the row that was selected before. How can I move the a ...Show All
Parakooper How to Show Image in Datagridview cells
HI, I am stuck with a problem that how to display an image in the datagridviewimagecolumn As when i m trying it shows a X mark. Not the Image My Code is: Dim ArrowIcon As New Icon( "..\Images\Icon1.ico" ) Dim IconColumn1 As New DataGridViewImageColumn Dim IconColumn2 As New DataGridViewImageColumn IconColumn1.ImageLayout = DataGridViewImageCellLayout.Normal IconColumn1.Image = ArrowIcon.ToBitmap ...Show All
ptah Open a file in default viewer
What is the API call to open a file in the default registered program System.Diagnostics.Process.Start("path to your file"); ...Show All
billmac3 Modify a control from a different class in the same project
I have a DummieApplication with the following classes: MainWindow, MessageWindow, Provider, Notifier. Now I want to acces the text in a textbox, from Mainwindow, in the class provider. I want to change the text of the Mainwindow.txtBla from the class provider. How can I do this "MainWindow.txtBla" isn't the answer. I allways use a startup class, which has a public prop named MainForm. It is initi ...Show All
Long Tan Publishing a C#.NET project.
Does publishing a C#.NET 2005 project automatically build a release version or does it publish the current build (whether debug or release) How do I go about changing the current configuration in Visual C# Express The publish will happen on the current configuration, whether debug or release. Great! Thanks for you help. ...Show All
Gordon Hogenson - MSFT Want to merge owc context with my context menu
Hi... In my application I use OWC11 (Office Web Component) for plot the chart and I want merge the Chart context menu with my new context menu. If you have any idea of this please let me know. pemmawadu ...Show All
Luke P Action Cancelled and IE
When trying to view a word doc via a stored link i am getting an "action cancelled" error. this is happening on several different systems. i have sucessfully opened the link using different Operating systems and browsers . HELP!!! Can you provide more information how are you launching the link Is the link available if you type it manually into a browser Can you connect to the resource where the link is Do you run an ...Show All
ghelobytes Advanced Questions?
Hi all. I have read around and downloaded the .chm that Henrik Yllemo kindly compiled. While writing a creature I have come up with some questions that I could not find answers to. I will try and test some of these, but its probably a ...Show All
SBoyd Style question
I'm new to .NET Windows Forms development. I'm developing an MDI app (let's call the main MDI parent MyForm) with the standard kind of controls: MainMenu, ToolBar, StatusBar, TreeView, etc. I add all of these controls through Visual Studio t ...Show All
Vadim Tsyganov Converting C# code to VB.Net - need help with integers!
Hi, I have a piece of C# code I found on the web to get a color at the pixel under the mouse pointer on the screen. It uses GDI32.dll and returns an integer which holds a windows COLORREF. For example if the pointer is ove ...Show All
