I see property Visible in "Property window" in my Visual Studio.
I also change it to -> False. Than, it turns to bold and it seems to be OK. When I build, designer reloads Form and property is again "True".
When I open Form.designer.c s, I dont see generated row for that
User Profile
Collapse
-
C# - Custom ToolStrip
Hi,
I have widely used ToolStrip in my application. I created a UserControl which contains this ToolStrip. I would rather like to use inheritance:
MyCustomControl : ToolStrip
Everything seems to work fine, untill I want to set visibility to one of ToolStripItem - there are maybe 20 buttons and not all of my ChildForms which contains this MyCustomControl need all of them. I open in designer mode in Property... -
DataGridView new row problem
Hi,
I have .NET 3.5 Windows Forms application which contains several DataGridView controls. Application also contains class Item (represents price list item) and ItemCollection with implemented IEnumerable, IList interfaces.
dataGridView1 has set AllowUserToAddR ows property = true;
When I set DataSource:
[code=cpp]
dataGridView1.D ataSource = oInvoice.Items; //returns ItemCollection. .[/code]
...Last edited by Frinavale; Dec 23 '08, 02:47 PM. Reason: Added [code] tags and Moved Thread to C# forum. -
If dont exist = are not present in app folder then yes. Program run until some of this DLL is needed to be used. That depends on user activity :)...Leave a comment:
-
I have solution with 24 projects. 1 is UI - Win Form project, other 23 are dll project referenced in first Win Form. One or two dll supports Office-related functions, which are useless if no Office version is installed. If they are called, COM Exception is thrown - there is missing reference to not existing library.
.NET doesn't load an assembly until it is used. It works exactly how it should work. Untill Office-related function...Leave a comment:
-
...at least you gave mi direction where to search :)
I use ClickOnce whole development (more than year) but this is first problem which was not solved by myself after few clicks...
I will be back in business if I force to ClickOnce deployment show user menu where will pick which - as you called that - groups will be installed.Leave a comment:
-
ClickOnce deployment problem
Hi all,
my application (C# WinForm .NET 3.5) is distributed via ClickOnce deployment. Application should check for updates on our company web. Problem comes when any part of application has reference to assemblies which are not installed (registered) on curent machine. In solution are some library projects which works with MS Office and therefore has referenced some MS Office libraries. If no MS Office (2000/2003/2007) is installed... -
So, at first - thank you for your advice. But - I added reference 12.0 to my project, compiled and run well. Then I posted new application publish on our updates web. I run application on Win XP with Office 2003 (publish was created on Win Vista with 2007). Application deployed on Win XP detected new version on interned and downloaded last update. I got error message that there is no Office 2007 instaled on mashine and thus no updates is downloaded....Leave a comment:
-
Yes, you right
12.0 - Office 2007
11.0 - Office 2003
So solution is install both Office 2007 and 2003 or both PIA (Primary Interop Assembly) for 2007 and 2003 office on developer machine and provide some application setting where user decides between 2003 and 2007 version. If user choose wrong version, not installed on client machine, app. will obviously throw an Exception....Leave a comment:
-
Project > References > Add > COM >
Microsoft Excel 12.0 Object Library...Leave a comment:
-
Versioned creating Excel from Windows Application (C#, .NET 3.0)
Hi,
My application should run on Windows XP or Windows Wista. App. also contains
functionality of exporting data into Excel files. I should consider of different
versions of Office instaled on client.
How can I create versioned Excel file? I found lot of web resources including
Microsoft Articles. I wrote code, compile as well and tried to run on XP with
... -
How to fill RDLC Report
Hi all,
Please, would anyone advice.. My database has more than 50 tables and more than 300 views. I have to also create about 30 reports. I want to fill these reports with data from views, which can (and will) change so it is not for me very usefull to use strongly typed DataSet-s - I will have to change definitions of them and thus program too much.
I have form which contains ReportViewer. This form has DataLoad method,... -
C# SerialPort ReadByte or Read?
Hi all,
I have 2 different read methods:
1)
public void Read()
{
while(true)
{
oSerialPort.Rea d(bytesToReadAr ray, 0, bytesToReadArra y.Lenght);
}
// and EventHandled method on event .DataRecieved..
}
2)
public void Read2()
{
oSerialPort.Ope n();
}
void oSerialPort_Dat aRecieved(...)... -
I am not ortodox ADO.NET fanatic, I will probably start to use LINQ, but I have few questions still:
1) other dev group works on database which dynamicaly change until first beta version of application is released. After that no. of changes will decrease (I hope so :-) )
That means I have to still re-generate my database class using SqlMetal.exe? After every database change?
2) I have user controls with high usage which...Leave a comment:
-
LINQ vs ADO.NET
Hi all,
I am developing an win form application (C#) which uses database almost in every opperation.
Question is, what kind of "communicat ion" with dbo would you suggest me?
Well, approximately 1/5 of application DataLayer is already writen with ADO.NET and I dont feel discomfortable if I have to write SQL Select ( or update, or exec stored proc etc) with ADO.NET, after already writen hundreds of this it does... -
User Control Constructor With Patameter
Hi all,
.NET 3.5, WinForm app, C#, Visual Studio 2008
I have created custom control comTextBox, I added it drag-drop to form. Done, compiled, run, all OK. Month ago I changed control constructor and I added to constructor parameter and I manualy changed all designer.cs files
Compiled, works fine, but components are not visible in design mode.
this is current constructor which works fine... -
Of course, but if you change culture from sk-SK to en-US, it will not just change output to database:
21.3.2008 = myDateTime.ToSh ortDateString()
to
3/21/2008 = muDateTime.ToSh ortDateString()
So, except database errors, it will also affect all input fields where an user types date in sk-SK format but application will throw exception because cannot convert from dd.mm.YYYY to mm/dd/YYYY...Leave a comment:
-
.NET DateTime format
Hi all,
in my application, I am using DateTime. Until I got in contact with SQL I did not try to solve this problem. Where is set DateTime format?
Will somehow change application DateTime format if I install my application on diferent computers with diferent localization and different language OS version?
Current format is dd/mm/yyyy (widely used in Europe). Is format "fixed" with compilation?
Seconds... -
C# - handling event from parent form
Hi all,
I have MDI form with lot of child forms. I have toolStrip in MDI parent form with buttons such as new/open/save/delete.
I have 2 types of child form - detail & viewer. Detail contains focus (new/edit mode) to one item and viewer contains collection (mainly in DataGridView) of items.
I want to work it this way - if I open child form Employees type of viewer, in toolStrip in MDI parent will display... -
I tried to convert mdb format to adp but it has failed. Previous programmer has solved it with ODBC conection. He deleted all tables in mdb and had linked new from SQL server through ODBC. Is this what you ment in first step? Well, I am little confused, I am relatively well experienced with .NET and C# stuff but this is something totaly new. In .NET with ADO I connect directly to server> database > (table|view|sto red p)
Sorry...Leave a comment:
No activity results to display
Show More
Leave a comment: