|
Oh yeah - that's funny, I'm absolutely rocking in the seat here. You're the next Robin Williams.
|
|
|
|
|
Dear All,
I would like to integrate SQL Express 2005 with my c# application and install it before my applcation gets installed while running c# application setup.
I am trying to find out a way to run SQL Express installation wizard before my c# application and i am stacked here. the question is how can i do the task.
Your cooperation is fully appreciated.
Abdul Rahaman Hamidy
Senior Student Student in Computer Science
Kabul, Afghanistan
Software Developer
|
|
|
|
|
|
If I have a class:
public class Column
{
private int _columnWidth;
[Category("Columns")]
public int ColumnWidth
{
get { return _columnWidth; }
set { _columnWidth = value; }
}
}
How can I expose the property 'ColumnWidth' for design time use please?
|
|
|
|
|
Hi all,
I also have the same issues if anyone can help he/she
forward the answer to my e-mail address:omekings2000@yahoo.co.uk
cos am currently building a project at hand now.
|
|
|
|
|
use browsable attribute.
[BrowsableAttribute(true)]
|
|
|
|
|
Nice thought. But, however, this did not work for me.
|
|
|
|
|
Works for me - [System.ComponentModel.Browsable(true)]
It definitely isn't definatley
|
|
|
|
|
That's interesting. Mmm ... so in the code shown below, exactly where are you inserting the [System.ComponentModel.Browsable(true)] please?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MultiColumnComboBox
{
public partial class MultiColumnComboBox : ComboBox
{
public class Column
{
private bool _autoWidth = true;
private int _columnWidth;
public bool AutoWidth
{
get { return _autoWidth; }
set { _autoWidth = value; }
}
public int ColumnWidth
{
get { return _columnWidth; }
set { _columnWidth = value; }
}
}
public MultiColumnComboBox()
{
InitializeComponent();
}
public MultiColumnComboBox(IContainer container)
{
container.Add(this);
InitializeComponent();
}
}
}
|
|
|
|
|
As an attribute on the property - in my code:
<br />
[System.ComponentModel.Browsable(true)]<br />
public string DataItemLabelTitle<br />
{<br />
get<br />
{<br />
return this.lblDataItem.Text;<br />
}<br />
set<br />
{<br />
this.lblDataItemText = value;<br />
}<br />
}<br />
It definitely isn't definatley
|
|
|
|
|
Yes, this works for me in your context. But when the property is contained within my class 'Column' it fails. Any ideas would be much appreciated.
|
|
|
|
|
When you place an instance of your combo box onto the designer window, the Property pane shows the browsable properties of that object. Your 'Column' class isn't a property - it isn't even an instance. What exactly are you expecting to see here? By entering a value in the property pane, what behaviour are you expecting?
It definitely isn't definatley
|
|
|
|
|
I was expecting to see the additional properties 'AutoWidth' and 'ColumnWidth'.
|
|
|
|
|
You missed the point I was making - you can only display and change the properties for an instance of a class. What you're asking to do doesn't make any real sense.
It definitely isn't definatley
|
|
|
|
|
Your are right (of course). I realise my error now that I have had another jolt of coffee. Thanks for your patience. Mondays .....
|
|
|
|
|
|
I am creating a custom control.
|
|
|
|
|
Hi all... and Happy new year!
I already posted but got and found no solutions, I'll try to explain in a easier way:
When I launch my XmlWriter.Serialize(MyType), it doesn't work. Usually when .NET uses the dll MyType.XmlSerializers.dll, which is compiled together with MyType.dll. At run time, if .NET does not find MyType.XmlSerializers.dll it creates at execution time.
Now my problem is that it seams like .NET is using a completely different xmlserializer. And it always throws a
System.InvalidOperationException, There was an error generating the XML document.
String cannot have zero length at System.Reflection.Assembly.nLoad()
Does somebody have a tip?
P.S.: My app is an addon, so probably .NET is invoking an xmlserializer of the main app. When I run the addon by itself everything works.
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
I found the solution on my own:
In the addon binding I have to add the following event:
<br />
AppDomain currentDomain = AppDomain.CurrentDomain;<br />
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);<br />
In that event I can specify the path of the dll I wish to use.
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Hi,
When I went to setup 'AdoNetAccelerator-10', I was prompted to provide with a SQL server name. I do not know if that's also OK against an Oracle 10g DB.
I actually have a problem with 'SqlNetFramework' for this line
IDataReader reader = SqlNetFramework.Management.DbManager.Instance.ExecuteReader(0, conn, paramValues);
The error is
Error 1 The name 'SqlNetFramework' does not exist in the current context
Bst Rgds,
HuaMin
modified on Monday, January 5, 2009 5:14 AM
|
|
|
|
|
wmedwardc wrote: When I went to setup 'AdoNetAccelerator-10', I was prompted to provide with a SQL server name. I do not know if that's also OK against an Oracle 10g DB.
Either try it or ask the vendor.
wmedwardc wrote: Error 1 The name 'SqlNetFramework' does not exist in the current context
Have you added a reference to the relevant dll?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks.
What is the exact reference name of 'SqlNetFramework'?
Many Thanks & Best Regards,
HuaMin
|
|
|
|
|
Again, its a 3rd party product so ask the vendor - SqlNetFramework is not a native .net component.
They have a website with example code, so why not look at that?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi All,
I am using C#.net to develop a web application. I have a gridview and a table displaying two different lists of data. I want to have the backcolor of the cell (of both gridview and table) to blink between two colors, say for example the cell background color must blink (two colors using yellow, green).
Is this possible ? I am able to only set the backcolor property with just one value.
Can anyone help me with some ideas on how to get this working ?
Thanks.
|
|
|
|
|
First, I think you may get better responses if you post in the Web Development forum. I would like to preface my input by saying that I'm not 100% certain on how you intend the 'blinking' to function. Will it blink on some time interval, toggle between postbacks, or in some other manner? That is very important, because if it will be happening on postbacks, then it can be done in ASP.NET page code just toggling the color properties of the objects; however, if this needs to occur without postbacks then you're going to have to do it with client-side JavaScript. So, your solution can be drastically different depending on how you need it to work.
Keep It Simple Stupid! (KISS)
|
|
|
|