|
You can use -in your derived class-:
public override ICollection Columns = null;
|
|
|
|
|
It's ok... The property name in the designer was just remplaced ba the attribute
[DisplayName("Column")]
the original property is named "ColumnStyles" and it just have another name in the designer.
Thanks for your help!
|
|
|
|
|
Hi, how i can insert command in my context menu, so when i click on any file in windows and click context menu i see my command such clean, delete this item or scan it.
What i need exactly as what u see in winzip menu!
|
|
|
|
|
This may be done by invoking the platform methods,try this site[^].
|
|
|
|
|
can u provide more information about what u say, i dont understand!
|
|
|
|
|
If I call a javascript using ButtonGo.Attributes["onclick"] = "MoreInfo()"; in c# code, can i return a value from javascript to use it in c# code again ?
|
|
|
|
|
Is this an ASP.NET question ? It's almost always a bad idea to mess with the jscsript that ASP.NET generates.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
What exactly are you trying to do?
What are you trying to return?
How are you going to use it?
--
|
|
|
|
|
Hi,I write Antivirus program in c#.NET, and i have problem, i dont know when to decide when to CLEAN or DELETE virus when I found one, in another phase, when Antivirus go to DELETE choice.
|
|
|
|
|
try
{
}
catch(Exception ee)
{
}
|
|
|
|
|
hi all,
How to check value of a Text Box is a String or Float?
this.textBox4.Text
I want to check above value is a String Value or Float Value..
please help..
Thanks in advance.
|
|
|
|
|
In a short I can only tell about the "dirty" way..
bool isFloat = false;
float value = 0f;
try
{
value = float.Parse(this.textBox4.Text, System.Globalization.NumberStyles.Float);
isFloat = true;
}
catch
{
// isFloat is not set to true so it's not a float value.
}
By trying to parse the input text as float, you can determine wether the input is a valid float as string or not. If not, an exception will be thrown upon "float.Parse(string)" and isFloat will not be set to true.
Someone correct me, if I missed something on that example *cough*
Daniel Monzert
|
|
|
|
|
Zarrab wrote:
In a short I can only tell about the "dirty" way..
bool isFloat = false;
float value = 0f;
try
{
value = float.Parse(this.textBox4.Text, System.Globalization.NumberStyles.Float);
isFloat = true;
}
catch
{
// isFloat is not set to true so it's not a float value.
}
There is a neat way to do this: the static method Double.TryParse . You can bring it back to a float (or integer) afterwards if you want.
|
|
|
|
|
Hi!
Does anyone have a clue what this exception message means?
The system I'm working on consists of one client and two servers, all on separate computers. The client communicates with Server A by means of .NET Remoting. And Server A in turn communicates with Server B also by .NET Remoting.
Now, my client application invokes a remote object on Server A. Then, Server A invokes a remote object on Server B. Server B shall then fetch some information from the database. The exception occurs when the Open() method on the Oracle Connection object is called on Server B.
I've checked the connectionstring and it is correct, and when I create a connection object in the client and query the database on Server B directly it returns data. So there the database in itself seem to alright. I've also ran the client and servers on my local computer with a successful result. But when I want to go the correct way from the client to Server B I get this weird message. By the way, it is an Oracle 9 database.
Any suggestions would be helpful, thank you
|
|
|
|
|
Found the solution. Take a look at: http://dotnetjunkies.com/WebLog/rtgurskevik/archive/2005/01/19/45958.aspx
|
|
|
|
|
hi all,
I am developing a C# Application.I want to read Network computer file.In here I can not use open File dialog.I want to hard code all the thing..
Can any body please tell me how to do it?
First I want to know how to access Network computer using C#.?
where can I hardcode Network computer Name and Password in C# Application?
regards,
pubudu.
|
|
|
|
|
I have designed a sample chat server application. then I converted into a windows service and test it on my machine. It was working properly without giving any errors. but when I install the service in a machine that has o be connect through the internet that server side application automatically closes within a minute or two. May I know the reason for that. it gives the error "Remote machine( server) refuse acccepting the connection". PLease help me. if you have a solution for this I will appreciate it also.
Dilan
|
|
|
|
|
Hi all,
I need to create word document from a web application on the client not the web server. What do I have to use? and after I created the document can I run a spell check on my web page using the word spell checker?
Thanks in advance
Ben
|
|
|
|
|
I apologise for being light on specifics, but I know it can be done ( I've seen it done in a classic ASP app ), but the user obviously needs Word installed on every client machine.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for that, any more info to specify how it can be done would be greatly appreciated. The client has word installed
regards
Ben
|
|
|
|
|
Hai,
I am having two C# applications.I need to use some functions of second application in First application.
How I can do this.I need to know complete steps.
I am sure somebody can show my way.
Thank you,
Rahul.
|
|
|
|
|
One option is at design time:
If the other application's EXE name is called 'app.exe', copy it to 'app.exe.dll' and add it as 'Reference' to your project.
Right-click on "References" in the Visual Studio's Solution Explorer, choose "Add Reference..." and "Browse..." for the 'app.exe.dll' .NET tab of the dialog.
If app.exe has a class "MyClass" in the namespace "MyApp.MyNamespace" you can use it in your application with "MyApp.MyNamespace.MyClass myClass = new MyApp.MyNamespace.MyClass()", for example.
/EDIT: The reason for renaming the app.exe to app.exe.dll is, that Visual Studio allows only .DLL files as file references.
|
|
|
|
|
Another option at runtime:
You can load a .NET Assembly at runtime.
Assembly assembly = Assembly.LoadFile("app.exe");
Type type = assembly.GetType("MyApp.MyNamespace.MyClass");
object obj = Activator.CreateInstance(type);
"type" may be -null- if the given type name wasn't found in the assembly.
You can create an object without loading the assembly through the "Activator.CreateInstanceFrom" method.
Just search for some articles on how using Assemblies that are loaded at runtime and/or the Activator class. I prefer the implementation at design time though.
|
|
|
|
|
Hai Zarrab,
Thanks much for your incredible help and information.I will follow the way that you have specified .
Thank you,
Rahul.
|
|
|
|
|
I want to know whenever a system is asked to restart, shut down...in order to control them to do what I want (e.g. forbid user to restart). What should I do.
Thank you
|
|
|
|