|
Thanks for a very fine and serious answer. 5 from here.
I can't wait to get back to work monday.
Cheers
|
|
|
|
|
Hi all,
I wonder if i can program in c# only so the framework enviournment will net be needed on deployment ?
what if i have made a .NET package with forms/API/system tray and now i dont want the .net thing? can i use the code to be compiled in a non framework enviournment?
Thanks,
Ran.
R.Z
|
|
|
|
|
ranzask wrote: I wonder if i can program in c# only so the framework enviournment will net be needed on deployment ?
It will be needed, always.
ranzask wrote: can i use the code to be compiled in a non framework enviournment?
No, sorry. But you can write your own compiler and class library. It would be great!
C# is a standard ECMA language, but all the available compilers (Microsoft and Mono) require a specific framework.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
I hope I understood you rightfully.
C# only exists for .NET (as I know). If you use C# you use .NET. If you don't want to use .NET you have to use another language (like C++). You can compile a C# Programm for other plattforms (Linux, Mac OS) but you use .NET.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
There are *expensive* 3rd party tools that can create a standalone executable by statically linking the needed parts of the framework into your app, there isn't a provided way to do so.
|
|
|
|
|
You're a little wrong.
C# is a (standard) language, so *theoretically* it can be compiled to any platform. You only need a compiler.
The problem is that all the real-world implementations of a C# compilers require the .NET Framework (csc.exe or the Borland something.net) or the Mono Framework (Mono compiler).
The 2 frameworks' BCL are not equal: many classes haven't the same name and/or aren't in the same namespace, so the same code won't compile on the 2 frameworks.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Hi all,
Because my internet connection is through proxy server so that I can't use the TcpClient to connect to the peer who is outsite from my network. Are there any solution to solve this problem ?
Thanks,
Ken
|
|
|
|
|
Hi,
If your network only allows http through a proxy server, then the answer is no.
You need to get your Network Admin to set up NAT on your router.
----------------------------
Be excellent to each other
|
|
|
|
|
Hello kendao,
It is not metter that you are through proxy or not. But it is metter that a peer has a real IP. Means peer is not inside proxy.
I hope you understand what i want to say.
And still there is another problem then i am sorry.
Regards,
Divyang Mithaiwala
|
|
|
|
|
I'm building an application and I'm trying to use my own class which adds a bit extra information to a TreeNode. But even though I override ToString() when they are rendered by the TreeView they seem to use the standard TreeNode.ToString(). I'm guessing this is because when the TreeView iterates the Nodes it contains it treats them as TreeNodes. That would make sense. So the question is what is there a way to override TreeNode.ToString() or get the TreeView to treat the objects as MyTreeNodes rather than ordinary ones.
|
|
|
|
|
Hi!
I guess you'd have to override the Text property of TreeNode, not the ToString() method.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi,
Mav is right - you need the Text property, but it is not declared as virtual so you cannot override it.
The displayed text can be set by using one of the constructors that takes a string, or you can set the value of the Text property directly. The TreeView just displays this value.
----------------------------
Be excellent to each other
|
|
|
|
|
Thanks guys...
Because i need my text to be somewhat dynamic I have done a RefreshText() method which will update the Nodes Text property to what it needs to be. I hoped there was a more elegant solution but it appears not.
Just means if I add a node I have to go down the tree and refresh all the nodes.. It seems to work.
Thanks for your help I'm still trying to get my head around virtual override new and derivation of classes and stuff.
|
|
|
|
|
Hello,
Had anyone tried to use TB_CUSTOMIZE message with WinForm toolbars. I have used SendMessage to display toolbar customization window but it just didn't help. Any suggestion/links will be appretiated.
Thanks in advance.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
I developed a LDAP concept in C#, Having Groups combo, under every group nearly 3,000 users are there. Under Groups combo selectedindexchange() event I am filling Users combo(having 3,000 users nearly). For filling it is taking nearly 2min. In between if we select another group, Blank screen is coming. That is system is hanged and performance is very slow. To increase its performace i want to use cache concept. For that I want to store users under particular group in cache, when the second time same Group combo is selected It should come from cache but not from LDAP server.
How to develope it? Any body help me...it is very urgent to my client....My code is:
private void cboGroups_SelectedIndexChanged(object sender, System.EventArgs e)
{
cboUsers.Items.Clear();
Response.Flush();
try
{
LoadUsers("LS1");
}
catch(Exception ex)
{
if(ex.Message=="The server is not operational")
{
try
{
LoadUsers("LS2");
}
catch(Exception ex1)
{
if(ex1.Message=="The server is not operational")
RegisterStartupScript("script","alert('LDAP Server seems to be down, please contact City Insight administrator.');");
else
throw new Exception(ex1.Message);
}
}
else
throw new Exception(ex.Message);
}
}
private void LoadUsers(string ldapServerID)
{
string IPassAddress,IPassUsername,IPassPassword;
if(ldapServerID=="LS1")
{
IPassAddress=ConfigurationSettings.AppSettings["IPassAddress"].ToString();
IPassUsername=ConfigurationSettings.AppSettings["IPassUsername"].ToString();
IPassPassword=ConfigurationSettings.AppSettings["IPassPassword"].ToString();
}
else
{
IPassAddress=ConfigurationSettings.AppSettings["AltIPassAddress"].ToString();
IPassUsername=ConfigurationSettings.AppSettings["AltIPassUsername"].ToString();
IPassPassword=ConfigurationSettings.AppSettings["AltIPassPassword"].ToString();
}
cboUsers.Items.Clear();
if(cboGroups.Items.Count >0)
{
string ou=Session["ou"].ToString();
//string AdsiPath="LDAP://211.114.211.31/l="+cboGroups.SelectedItem.Text+",ou="+ou+",o=Managed iPass,dc=sc-m.net";
string AdsiPath=cboGroups.SelectedValue.ToString();
DirectoryEntry de = new DirectoryEntry(AdsiPath);
//de.Username="cn=LDAP";
//de.Password="LTDldn51";
de.Username=IPassUsername;
de.Password=IPassPassword;
DataSet ds=new DataSet();
DataTable newTbl=new DataTable();
DataColumn dc1=new DataColumn();
newTbl.Columns.Add("uid");
newTbl.Columns.Add("path");
ds.Tables.Add(newTbl);
foreach (DirectoryEntry ce in de.Children)
{
// //if(ce.SchemaClassName.Equals("inetOrgPerson"))
// //{
// ListItem newItemList = new ListItem();
// newItemList.Text=ce.Properties["uid"].Value.ToString();
// newItemList.Value = ce.Path.ToString();
// cboUsers.Items.Add(newItemList);
// //}
DataRow defRow = ds.Tables[0].NewRow();
defRow[0] =ce.Properties["uid"].Value.ToString();;
defRow[1] = ce.Path.ToString();
ds.Tables[0].Rows.Add(defRow);
ds.AcceptChanges();
}
DataView view = ds.Tables[0].DefaultView;
view.Sort = "uid";
cboUsers.DataSource = view;
cboUsers.DataTextField = "uid";
cboUsers.DataValueField = "path";
cboUsers.DataBind();
ListItem newItem=new ListItem();
newItem.Text="[Select One]";
newItem.Value="0";
cboUsers.Items.Insert(0,newItem);
de.Close();
}
}
Kiran
|
|
|
|
|
How can i show the y axis values on the curve i added to the graph
jeyakumar_indian
|
|
|
|
|
Dear All,
I need to convert the Excel file in the Following format to XMl file Specified Below..Please Help me to come over from this difficulty...
Taskid Name OutlineLevel Colvalue
110i Design 3 L4_R_D04.002
111i Coding 3 L4_R_D04.004
112i Testing 3 L4_R_D04.006
<tasks>
<task Taskid="110i" Name="Design" Oulinelevel="3">
<colValue>L4_R_D04.002</colValue>
</task>
<task Taskid="111i" Name="Coding" Oulinelevel="3">
<colValue>L4_R_D04.004</colValue>
</task>
..........
</tasks>
Thanks n Regards,
Ramya.R
|
|
|
|
|
Chk these links
http://forums.aspdotnetstorefront.com/showthread.php?p=4424#post4424
Another method
http://www.pointercorp.com/Excel2XML.htm
You need to do some changes to get the required output
|
|
|
|
|
how do I convert from one image to another using C#???
ex. from bmp to jpg or vice versa
|
|
|
|
|
Load the image into an Image object and save it to the new format.
---
b { font-weight: normal; }
|
|
|
|
|
Take a look at the code in BitmapManip[^] class.
Jon Sagara
Look at him. He runs like a Welshman. Doesn't he run like a Welshman? Doesn't he? I think he runs like a Welshman.
Sagara.org | Blog | My Articles
|
|
|
|
|
I want to get all img tags from local html file to edit src properties?
Can I use mshtml to do this?
Please suggest me some codes.
Thank you.
|
|
|
|
|
|
hai iam having two tables having a field id , the id should exist in the first table and it should not exist in the second table.i have used reader to check the first table(when id exists in the first table it should move to next table) and then i moved to the second table but its giving an error that reader is already open,first close the reader how to handle it?
|
|
|
|
|
This error comes because reader works in connected mode.
Sol 1:
You have to make two connection objects use first connection object to read using data reader and insert using the other connection object.
Sol 2:
Use a datatable and insert all the data from data reader to a datatable.
Now close data reader and now make a loop on datatable get every record and insert into next table.
(if u want to check id of record from the first table and then insert into second table then these are the solutions else please explain this question)
Do good and have good.
|
|
|
|