|
sorry but i have no ide how its works.. i read the articel but i did't understand.
|
|
|
|
|
Include a reference to his assembly in your project and then do the following:
ExpressionEval eval = new ExpressionEval(txtFunction.Text);
object output = eval.Evaluate();
if (output != null)
{
}
|
|
|
|
|
Please don't delete your message once someone has replied. It kind of dirties the forums.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hello all,
I need an example how to populate outlook and outlook express with html body.
The user can edit the mail within his client before submission.
The scenario would be like this:
====================================
1. In winform configuration the user will define his mail client.
outlook or outlook express
2. On winform user will click send mail.
3. New mail form of the user client will popup, filled with :
from: , to: and the messaqge body populated with html rendered at winform.
4. While new mail client is open, the user can edit the mail message and the submission action will be triggered by the user.
Thanks
Tsachi
|
|
|
|
|
Hi to all!!!
I have a class & in constructor I call for "webBrowser = new WebBrowser();"
There I get thread state exception (ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.).
The interesting thing is that the first time i call that class no exception is made.
Then I destroy that instance and make a newone that throws exception.
I use that class for some gdi+ stuff, I also use background worker.
thx
|
|
|
|
|
Hi,
I suggest you create all WebBrowser instances in the main or GUI thread.
Since your class constructor contains "new WebBrowser()" it too should only be instantiated
by the main thread, not by a BackgroundWorker thread.
|
|
|
|
|
There is a checkbox field in the datagridview control.
In the datagridview_cellclick() event I have a condition so that the user is allowed or not allowed to check this box.
Not sure why this does not seem to have any affect because the condition is met correctly but when the grid is populated then the checkbox does indeed appear as if the if statement has no affect.
This is what I am doing in the cellclick event
And there is nothing else that makes that field to have a check in the checkbox field.
if...
...
dgvSecurityPricing.Rows[e.RowIndex].Cells["Price"].Value = false
Not sure why in _CellFormatting event this gets set to true
Thanks
modified on Friday, December 14, 2007 5:44:35 AM
|
|
|
|
|
Do you have this working yet?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi everybody, i want to use CxImage with C#.NET. I've decided to make a manged c++ dll in order to reuse code in my C# code, but I have some problem in compiling/linking the whole stuff... Any hint?
|
|
|
|
|
I doubt you can easily, why would you need to ? Isn't it mostly for reading different formats ? Which ones does it support that GDI+ doesn't ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I what to serialize a class with Static Variables. But the Static variables are not serializing.
{
String fP = "\\SerializClass.txt";
Stream file = File.Open(fp, FileMode.Create);
SessionManager SM = new SessionManager();
IFormatter formate = (IFormatter) new BinaryFormatter();
Formatter.Seralize(file,SM);
file.Close();
}
SessionManager Class :
Clas SessionManager
{
SessionManager
{
}
Public Static String Name;
Public String RollNo
}
Here I can get the RollNo when I deseralize the file but not Name.
Plz Help me in Seralizing the Static Variables also .
B V KIRAN KUMAR
|
|
|
|
|
You are serialising the instance of the class, but the static variables are not instance members, they are class members.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
How to Seralize a Class Members. with out creating instance
B V KIRAN KUMAR
|
|
|
|
|
You can't serialise a class, as you can't create a class by deserialising. You can only serialise an instance of a class.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
thank you for ur response
B V KIRAN KUMAR
|
|
|
|
|
Hi all,
My question is very simple;
I have two arrays :
double[] arr1 = new double[] {1,2,3};<br />
double[] arr2 = new double[] {10,20,30};
I want to store to and than read these arrays back from an XML file.
Could someone please send a small piece of code written in C#.
Thanks.
Cengiz EKEN.
|
|
|
|
|
You're not going to believe this, but I spent 15 minutes writing code, and it got lost.
Basically, you can store the array as a string, use the Split method and double.TryParse to find the values, and I'd be putting them in a list, and create a list of lists.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi, using of this code,i make one doc file ,i want to show this file as report,so i want to grouping ,summetion & all things which is required for a Report,so give me code i.e.helpful to show this doc file as a report
protected void Button1_Click(object sender, EventArgs e)
{
DataSet dsDlist = new DataSet();
string sql;
string HeaderName;
string data;
sql = "SELECT dbo.aa.*FROM dbo.aa";
A.ClassGeneral a1 = new A.ClassGeneral();
dsDlist = A.ClassGeneral.GetList(sql);
StringBuilder htmlString = new StringBuilder();
htmlString.Append(" <table width="\"100%\"height=\"50%\"" border="\"0\"">");
htmlString.Append("<tr width="\"100%\"">");
// htmlString.Append("<tr>");
htmlString.Append("<img src="C:\\NewReport\\images\\Logo.gif">");
htmlString.Append("<th>RoadRunner Shuttle</th>");
htmlString.Append("</img></tr>");
//htmlString.Append("<td rowspan="\"0\"">");
htmlString.Append("<th>Employee id</th>");
htmlString.Append("<th>Salary</th>");
//htmlString.Append("</td>");
htmlString.Append("</tr>");
for (int i = 0; i <= dsDlist.Tables[0].Rows.Count - 1; i++)
{
htmlString.Append("<tr>");
htmlString.Append("<td>");
data = dsDlist.Tables[0].Rows[i] ["empid"].ToString();
htmlString.Append(data);
htmlString.Append("</td>");
htmlString.Append("<td>");
HeaderName = dsDlist.Tables[0].Rows[i]["sal"].ToString();
htmlString.Append(HeaderName);
htmlString.Append("</td>");
htmlString.Append("</tr>");
}
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/msword";
HttpContext.Current.Response.AddHeader("anant kasture", "1");
HttpContext.Current.Response.Write(htmlString);
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
}
thanks</table>
asp.net using c#
|
|
|
|
|
What is your problem?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
hi all
good morning.can anyone explain me about data manager class. i could not get any proper definitions of data manager class.
pintoo
|
|
|
|
|
chithra.r wrote: can anyone explain me about data manager class
I haven't heard about such a class in .NET framework.
|
|
|
|
|
Hey try this
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
There's no such class in the .NET BCL. You'll have to explain what you're talking about, where you saw it, what library you may have seen this in, ...
|
|
|
|
|
I've made an desktop application using asp.net, C#.
Now i want to launch it for only "Demo purpose (Trail Version) for only 30 days."
After 30 days application should promt a message "Your application has been expired". If you want to purchase it, plz click on a link given below.
Please somebody help me asap..
Pradeep Kumar Srivastava
GOLS Inc
www.golsonline.com
|
|
|
|
|
Hi,
you can check this link
Link[^]
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|