Answer Questions
visent Updating data files
Hi all, I have a winforms app that I want to deploy via clickonce, largely because there are 3 large xml data files that will be periodically updated. These files are lookup only, and WILL NOT change on the client. First, I'm running the RTM of visual studio, not beta or RC in case that makes a difference. Now, when data is changed in a table on our sql server db, a trigger will force these xml files to be recreated, and then the files must be r ...Show All
tropics43 Scroll Bar Look and Feel
Hello. Does anyone knows a way to change the look of the ScrollBars from its boring blue on controls I can share with you want I have found out until now... (which is not really positive ) 1. There is no support in .NET for custom painting of the scrollbars, other than the Visual Styles support. 2. Some months ago, I have found a thread of someone who customized the scrollbars by painting over them. I didn't find his solutio ...Show All
pelazem Inserting Multiple Rows With Identity and TableAdapter
Hello, Using VS 2005, Sql Server 2005. I need to create and insert several rows. The table has a primary key which is an identity column. My problem is, using the below code, every row is getting assigned the same PK value. For example, the first row gets inserted fine, but an exception is thrown on the second row: Column 'PrintEditionPK' is constrained to be unique. Value '1' is already present Here's my code: public static ...Show All
Simranjeev Icons on buttons do not appear the first time appcilation is loaded
Hi, Icons on buttons do not appear the first time appcilation is loaded Thank's Alexei If you can reproduce this problem please use the MS product feedback to report it as a bug: http://lab.msdn.microsoft.com/productfeedback/ ...Show All
BlogusMaximus DataGridView - dotted selection rectangle
Hi, when I click on a cell in a DataGridView, a dotted selection rectangle is drawn. How can I prevent that Also, when reordering columns, a selection rectangle for the header cell is drawn How can I prevent that as well as I do my own drawing for column reordering. Thanks, Tom I guess you meant OnRowPrePaint In OnCellPainting e.PaintParts is read only You can handle the Cell ...Show All
Eissing Visual Inheritance Issues
Ok, when I first read about visual inheritance I almost started drooling. I've been mimicking this behavior for years with controls that I would include on the "inherited forms". I've only just inherited my first form today so nothing fa ...Show All
NEROeS What is the AddNew method of BindingContext???
I need to try this question again: Does anyone know what the AddNew method of BindingContext Class is It is not documented in the Class Members. Here is the code that generated this question. This code is found on a form displaying one ...Show All
Dave Anson How To Call Mdi Function From Dialog Form ?
Hi All , I Want to call to fnUserExist function From the frmLogin dialog form code. This is the code that I have in the mdi form Form frmChildLogin = new frmLogin(); frmChildLogin.ShowDialog(); public bool fnIsUserExist(String sUser , String sPassword) { return true ; } Please Help Thanks. Do something like the following: In your frmLogin class, have a field and constructor ...Show All
Soar Opening a File
Hi, I want to open the read stream to read a file at given URL... Like I have a File http://example.com/mydata.txt file and now i want to read this file from my Program in vb.net. I have tried this code Dim file As FileStream file = New FileStr ...Show All
George J. Capnias Properties window keeps giving me "Object reference not set to an instance of an object." error
Howdy folks, When attempting to change some of the properties in the Properties window for some components within the main form of my windows application (e.g. the DataSource property within a DataGridView, the DataSource for a BindingSource, etc.), the following error message pops up in a message box without any further information: "Object reference not set to an instance of an object." All the properties ...Show All
DBizFoShiz opening a form by name in a multiproject solution
In a multiproject solution, I need to use the GetType function to find the type of a form, by its name. It works in a single-project solution, but in a multi-project one, the type is never found. I tried to browse all the types, but looks like the search was limited to a "first level" (the name of the project, but not downwards Any help on that My goal is to open a form by knowing its name, (in a string variable) thanks well, thanks Ho ...Show All
CytoTech ListView Item can't show Icon
I have programatically and set the ListView item using Visual Effect, but it cannot shown the icon after visual effect being applied. ListView1.View = View.LargeIcon ListView1.LargeImageList = imgIcons ListView1.Items.Add("Item 1", 0) ListView1.Items.Add("Item 2", 1) If I didn't using Application.EnableVisualEffects() routine, everything workout normally. But if I code it at Routine, it will not shown out the icons being display. Ple ...Show All
Bono not! How to change selection box around disabled ToolStripMenuItem
Folks, I have a disabled ToolStripMenuItem in my MenuStrip object in VS2005. Even though it is disabled, there is a black box that outlines the item when the user mouses over it. I want it to have a completely disabled look and feel.. similar to Word or Outlook.. i.e. no visual difference between mouse over and not. I've looked around at all the options, and can't find a way to do this. Am I missing something Appreciate any help you ca ...Show All
Vashi open login form like in taskvision
hi, i see that in the taskvision application the login form open simultaneously the main form.. how i can replace it with my application i see the code on the main form and it call the DisplayLoginForm() on the load event.. if i try, my mainform not open first i've closed (with cancel or ok dialogresult) the loginform.. how i can thanx ...Show All
alumni Prevent my Component from appearing in component tray?
I have derived a class from the Component base class and then implemented a collection. The collection is exposed as a property of my control and has the DesignerSerializationVisibility atttribute defined as Content. This all works fine in that the default collector editor comes up and I can add/remove entries and it generates the correct code etc. All well and good but there will be 10's and maybe more instances in the collection and I do no ...Show All
