|
Thanks Pramod
But my problem was actually i need it the way as it is in list box.
i have provided an Items property and when i click on the ellipsis button i want it to display the string collection editor. But for me it returns an error telling no component.
How can this be resolved
Thanks in advance again
Thanks and Regards
Madhu
|
|
|
|
|
i don't know hoe to display the ellipsis button u can surely show the String collection editor,
for this u can create a form with the FormBorderStyle = none and put a Richtextbox on that form and then set the items property by reading each line of the Richtextbox.
Regards,
Pramod
|
|
|
|
|
Hi every body cloud u tell me how to register ActiveX contorl for flash exacly
"shockwave flash object" the control give me this error "Field to import the ActiveX control.Please ensure it is property registred".How to solve this problem???
Thank's
bye.
|
|
|
|
|
The best way to use with flash in your application, is to actually install flash in your deployment. You can get a distribution license, and the distribution version at Macromedia. Once you've got the file, add an Installer class to your application, and define a custom action for Install in your deployment project. In your Installer class, you override the Install method, and you use the Process class to run the flash installer.
|
|
|
|
|
I have it flash install in windows but how to get destribution version at micromedia.
|
|
|
|
|
|
Hi,
I have a simple project in WinForms (C# Express) .NET 2.0:
vo form I have inserted panel (panel1) and in panel there is PictureBox1
Panel1 has property Dock = Fill
PictureBox1 has property Dock = Top
on Resize event for picturebox I have:
/*----------------------------------------------------------------------*/
1 private void pictureBox1_Resize(object sender, EventArgs e)
2 {
3 Image newImg = new Bitmap(panel1.Width ,panel1.Height );
4 if (PictureBox1 != null)
5 {
6 if (PictureBox1.Image != null)
7 {
8 PictureBox1.Image.Dispose();
9 PictureBox1.Image = null;
10 }
11 PictureBox1.Image = newImg;
12 }
13 }
/*----------------------------------------------------------------------*/
After maximalisation of forrm has PictureBox unchanged size, although there is Dock property set to "Top".
When I comment line #11, everything works fine.
Why? I need to create image in PictureBox dinamically after each resizing of picturebox. However size of picturebox is not affected, and the worse it do something bad with Dock feature..
In .NET 1.1. it worked perfectly, however in .NET 2.0 it doesn't.
projekt is saved here: http://www.tekl.com/testform1.zip
( has 36kb).
Thank you for any help. I don't know, what to do.
|
|
|
|
|
try changing pictureBox1.SizeMode property to AutoSize.
While you use SizeMode=Normal, pictureBox always keeps it's starting size, unless you tell it to change it.
AutoSize mode will resize pictureBox to fully show image, each time image changes.
Robin Panther http://www.robinland.com
|
|
|
|
|
thank You so much! this was the reason.. SizeMode is new property in .NET 2.0
|
|
|
|
|
Hi, in my project, i am dealing with Sanskrit and Hindi languages, how should i read it from textbox and manipulate.
How should i read data from textbox in unicode form,..
Pls help me,..
Thanks
|
|
|
|
|
I thought .NET strings were all unicode by default ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i need to store the string written in sanskrit language in sql server, so, i should retrieve in unicode format, is nt it.
So,how can i do this.
If i am wrong, pls correct me?...
|
|
|
|
|
I also think that .net controls are unicode compatible, but your datatype in sql server should be nvarchar to support unicode data storage. and dont' forget to pass string allong with 'N' (character N) while passing string from .net to sql server. eg.
insert into Tmptable values(N'Text goes over here',32)
this will store your text as unicode compatible...
-Malli...!
|
|
|
|
|
Thanks 4 suggetion malli,
I have one doubt, how should i enter unicode text into textbox.
Simply said, how can i enter hindi or saskrit text into text box.
am i need to get, language support toolbar in xp.
I hope, u got me.
pls help me out in this issue.
Thanks
Shiva
|
|
|
|
|
I thought all .NET strings were unicode by default ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
From the string class yes. But you can write to streams using other encodings.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
my procedure is writing to an csv file... i have more than 900 to write in the csv files. i am able to write but the last 4 lines i would get an error object reference not set to an instance of an object. it wouldn't continue. but the other lines (1-900+) was written perfectly. can any one help me?
|
|
|
|
|
Not without seeing the code. You're plainly trying to call a method or property on an object which is null.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I has a server program.The program natural run at console.
Now I create a Windows Service project and attach server program in.In ProjectInstaller class.I use NetworkService acount.
This server program can success runing.But it cannot natural send UDP data.
My client cannot receive data.
Please help me .thanks!
Ray Lynn
-- modified at 22:05 Tuesday 21st February, 2006
|
|
|
|
|
I'm using System.Configuration in .NET 2.0 to load in values
from an externally specified config file and deserialize
them into a C# class. During deserialization, I'm getting
an exception thrown by .NET It's having a problem with
the <connections> element seen below. I've tried different things, but
still I can't get the deserialize to succeed. Here's the problem in
detail below.
Can anybody tell me what I'm doing wrong? Shouldn't
[xmlArray] work?
Thx,
Tom
The app.config file looks like this:
<configuation>
<configSections>
<section name="dataAccessSection" type="Framework.Data.DataAccessConfig,Framework.Data,Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null"/>
</configSections>
<dataAccessSection configSource="DataAccess.config"/>
</configuation>
DataAccess.config looks like this:
<dataAccessSection>
<connections>
<connection name="fsa">
<connectionEnvs>
<connectionEnv envName="INT1" assembly="System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="System.Data.OleDb.OleDbConnection" connectionString="Provider=OraOLEDB.Oracle;Password={0};Persist Security Info=True;User ID=fiisbsvc;Data Source=dbenv022" connectionStringPassword="lttC8Hg29Nfks+3QPI8Hxg==">
</connectionEnv>
</connectionEnvs>
</connection>
</connections>
<commands/>
<maps/>
</dataAccessSection>
The C# class looks like this:
using System;
using System.Xml.Serialization;
using System.Configuration;
namespace Framework.Data
{
/// <summary>
/// Represents the root of all data access configuration information.
/// </summary>
public class DataAccessConfig : ConfigurationSection
{
#region Constructor(s)
/// <summary>
/// Initializes a new instance of the <see cref="DataAccessConfig"/> class.
/// </summary>
public DataAccessConfig()
{
_sectionName = _defaultSectionName;
}
#endregion
#region Config Manager
private const string _defaultSectionName = "dataAccessSection";
private string _sectionName;
#region Connection Config
private ConnectionConfigCollection _connections = new ConnectionConfigCollection();
/// <summary>
/// Gets or sets the collection of connection configuration items associated with this application.
/// </summary>
/// <value>The collection of connection configuration items associated with this application.</value>
[XmlArray("connections")]
[XmlArrayItem("connection")]
// [ConfigurationProperty("connections")]
// [ConfigurationCollection(typeof(ConnectionConfigCollection))]
public ConnectionConfigCollection Connections
{
get
{
return _connections;
}
set
{
_connections = value;
}
}
.
.
.
}
|
|
|
|
|
Hello all,
Does anyone know how to add commands to the bottom of a property grid at runtime? Let me describe my situation.
I've created a class called PropertyGridProxy that implements ICustomTypeDescriptor and can be initialized with any object. At the moment, most things simply pass through to the default TypeDescriptor implementation. However, that's soon to change, as I will be creating some attributes that help me in working with the property grid. This ICustomTypeDescriptor implementation will read those attributes to produce the list of possible values for some of the properties exposed in the grid (instead of just using the default implementation).
Now, I've also created a designer that should (theoretically) wrap PropertyGridProxy for the property grid's consumption. It inherits from System.ComponentModel.Design.ComponentDesigner and overrides the Verbs property, which should return a DesignerVerb collection. I've applied the following attribute to the top of the PropertyGridProxy class:
[Designer(typeof(PropertyGridProxyDesigner))]
This should work according to the (rather useless) documentation I've found so far on MSDN, but it doesn't seem to be picking up the PropertyGridProxyDesigner class. I even had the designer throw an exception in its constructor, but nothing ever came of it. I therefore suspect that it isn't being called at all. Needless to say, the verbs property is never being used. Have I done something wrong?
Oh, the code in the Verbs property is as follows. ActionVerb is a custom attribute class that lets you tack a string name onto a method for calling it from a UI:
<br />
public override DesignerVerbCollection Verbs<br />
{<br />
get<br />
{<br />
System.Diagnostics.Debug.Write("Verbs collection accessed.");<br />
DesignerVerbCollection ret = new DesignerVerbCollection();<br />
PropertyGridProxy pGrid = this.Component as PropertyGridProxy;<br />
if (pGrid != null)<br />
{<br />
Type t = pGrid.TargetType;<br />
foreach (MethodInfo mi in t.GetMethods())<br />
{<br />
foreach (object o in mi.GetCustomAttributes(true))<br />
{<br />
ActionVerb attrib = o as ActionVerb;<br />
if (attrib != null)<br />
{<br />
Delegate handler = EventHandler.CreateDelegate(t, this.Component, mi);<br />
EventHandler eh = (EventHandler)handler;<br />
DesignerVerb verb = new DesignerVerb(attrib.VerbText, eh);<br />
ret.Add(verb);<br />
}<br />
}<br />
}<br />
}<br />
<br />
return ret;<br />
}<br />
}<br />
Thanks,
Will
|
|
|
|
|
Hello,
I'm tying to create a form (form2) which has a label on it and is being activated from another form (form1). The catch is that form2 needs to be displayed for 10 seconds and then disappear. I have tried many methods including importing the sleep function from Kernel32.dll like this:
frm2 = New Form2();
frm2.Show();
Sleep(10);
frm2.Close();
but the result was and empty window the labelwas not seen.
I also tried to run a thread that acivated a function that launched the form then used Thread.Sleep(10000) but the results were the same.
I also tried to make a loop for(i=0;i<10000000;i++)... after frm2.Show()
and also the result did not change empty window.
Am i missing somthing here I'm getting real frustrated and would very much appreciate any help about this issue.
Thanks
|
|
|
|
|
|
Hi,
Thanks for the advice
Should i place the timer control in form1 or in form2?
Thanks
|
|
|
|
|
It Worked.
Thank you very very much KaptinKrunch you
are really a life saver.
God Bless You
|
|
|
|