|
plz check-out mono...
Mono (OpenSource .NET implementation for multiplatform )
http://www.mono-project.com/Main_Page
hope, it helps..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
cool83 wrote: to run a c# application on solaris machine
You need .NET Runtime CLR. For Solaris, there should be a distribution from Mono.
|
|
|
|
|
hi i am currently trying to read/write data to an ms 2007 excel.
i already have some past experiance doing this with vb6 however i need to do it using vs.net 2005 c# console application now.
and the past code that i used be4 dont work can anyone recommand something?
|
|
|
|
|
|
hi,
My custom control property cant able to carry its value...when i pass that property in the query string...
my code is
OnClientClick="javascript:return window.showModalDialog('frmLookUpWindow.aspx?IQuery=PartnerProduct|'+document.getElementById('ctl00_ContentPlaceHolder1_LookUpTextPartnerDesc').Tag,'Look_Up','dialogHeight:442px;dialogWidth:588px;scroll ;status:off')"
please advice me!!!
Siva
|
|
|
|
|
maybe cuz of this "ctl00_ContentPlaceHolder1_LookUpTextPartnerDesc"
ct100 might be vary from time to time.. better u set the static value. in order to do this, set this.ID = "something" in page load..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I have a T-SQL Script file which i want to run without opening it and reading its contents. Please tell me how can i do it using ADO.Net or any other way.
Regards,
Wasif Ehsan.
|
|
|
|
|
try the following code from this post. http://blog.miseldine.com/?p=24
<br />
private static void ExecuteSql(SqlConnection ___conn, string ___fileName)<br />
{<br />
string[] __sqlStatements;<br />
Regex __r = new Regex("^GO", RegexOptions.Multiline);<br />
<br />
StreamReader __sr = new StreamReader(___fileName);<br />
string __sql = __sr.ReadToEnd();<br />
__sqlStatements = __r.Split(__sql);<br />
SqlCommand __comm = new SqlCommand();<br />
__comm.Connection = ___conn;<br />
<br />
foreach (string __sqlBlock in __sqlStatements)<br />
{<br />
if (__sqlBlock.Trim().Length > 0)<br />
{<br />
__comm.CommandText = __sqlBlock;<br />
<br />
try<br />
{<br />
__comm.ExecuteNonQuery();<br />
}<br />
catch (SqlException)<br />
{<br />
break;<br />
}<br />
}<br />
}<br />
}<br />
thks to original author.
here is another one... http://msdn2.microsoft.com/en-us/library/ms811086.aspx
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
wasife wrote: I have a T-SQL Script file which i want to run without opening it and reading its contents. Please tell me how can i do it using ADO.Net or any other way.
If you want to use ADO.NET you need to open it and read its contents. Then pass those contents onto to a SqlCommand.
If you want to use any other process then that will have to open and read the contents too. There is no way around that.
Why do you have an aversion to opening and reading the file?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi All,
I have developed a windows application in C#. Now, i want to make that application as an installer....
How Can I do that? Could any one plz help me.....
I have searched thru Google, but i didn't find one...
Thanks in ADvance.
|
|
|
|
|
You can make its installer by creating a setup project in Visual Studio. Or you can add another project of type Setup Wizard in the same solution which is a bit easier way. Then there is InstallShield which you could use. There are many many ways to create an installer.
On google, search how to create setup projects in Visual Studio.
|
|
|
|
|
|
Dear All,
i have a class A. Class B derives class A and class C derives from class B and class D derives from class c. Now i need to call a method of class A from class D. is it possible? if so how can i acheive this. Is there any facility in C# that helps me to call the methods any of the classes A, B, C from class D? very urgent
Thanks in advance
Ramesh.Kanjinghat
|
|
|
|
|
Have you heard About Inheritance. this will help you.
Inheritance[^]
Regards,
Satips.
|
|
|
|
|
Dear Satips,
I know very well what inheritance is. Here my problem class A has a method Method1 and Class B inherits class A and Class C inherits class B where Class C overides the Method1 and class D inherits class C. know when i call Methodi from class D the Method1 of class C will be called. but i want to call the Method1 of class A. We can use super keyword in C++. is there any thing in C# that helps us to acheive this? got this time you got it?
thanks in advance
Ramesh.Kanjinghat
|
|
|
|
|
Hello,
I think you have to do a little trick here.
In class C you need a additional method, which calls the base.Method (method from class A).
public override void MethodFromA()
{
}
public void BaseMethodFromA()
{
base.MethodFromA();
}
In class D you have to override the base method again and call the additional method in class C.
public override void MethodFromA()
{
BaseMethodFromA();
}
Maybe there is some cleaner solution, which I'm not aware of, but I think it will work!
All the best,
Martin
|
|
|
|
|
|
|
No, not once the method has been hidden (with override or new ).
|
|
|
|
|
I am developing a dynamic DataGridView Control but the default columntype is DatagridviewTextBoxColumn I want to change it to DataGridViewCheckBox column.
Need help
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Hi,
Here is the code snippet:
private void Form1_Load(object sender, EventArgs e)
{
DataGridView dgrid = new DataGridView();
DataGridViewCheckBoxColumn col = new DataGridViewCheckBoxColumn();
col.DataPropertyName = "check";
dgrid.Columns.Add(col);
DataTable dt = new DataTable();
dt.Columns.Add("check");
DataRow dr = dt.NewRow();
dr["check"] = true ;
dt.Rows.Add(dr);
dgrid.DataSource = dt;
this.Controls.Add(dgrid);
}
Thanks,
Gopal.S
|
|
|
|
|
Thanks for reply.......
Actually I have predefined no.s of rows and columns in a datagridview and all the columns are textboxtype I want that when i click a cell it will automaticaly convert to datagridviewcheckboxcell.
your help be truly appreciated...
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Greetings,
I am currently coding some small-scale automation tools for my department and have been running into some issues as I am a beginner to Win32 coding.
I need to read and parse the text from another application's StatusStrip. I am assuming it's a StatusStrip as sending either an SB_GETTEXT or WM_GETTEXT message to the control's handle retrieves nothing. However, it may be a custom control as getting the child windows of this control only returns a handle to a StatusBar Progress Bar control.
I am hoping that it is not a custom control and I am just missing some reason as to why the ToolStripStatusLabels are not showing up as children of the StatusStrip control.
I have also been having issues trying to read from a ListView in this app, but I believe it's a custom control as well because I have no issues reading from another app's ListViews by virtually allocating memory and all of that jazz.
I do know that the app I'm having difficulty with uses a lot of the newer .Net controls that the other app's don't.
So, if anyone has any insight as to how I would retrieve the text from another app's StatusStrip, I would be extremely grateful.
Thanks,
Damien
|
|
|
|
|
Please find the keyword "object inspector" in codeproject search. there are a lot of articles (eg: this one).
try to inspect StatusStrip Text by using those programs. if those programs can read the text that you want then you can find out how those programs work ...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
thank you so very much. was unable to find programs of this nature before. i guess i just didn't know where to look .
this will help a lot for everything i am doing.
once again, thanks!
|
|
|
|