|
do i really need to use the find method?
because i am able to go through the information(of staff) row by row; which is by dragging the datasource out.
i just need to delete the row which is currently shown.
|
|
|
|
|
hi all,
is it possible to convert an aspx page to PDF file?
for example, i have default.aspx page in that user will key in some info.
at the end if he clicks on convert to pdf button, the whole page should have to convert to PDF and
have to store somewhere
|
|
|
|
|
anithasalavadi wrote: is it possible to convert an aspx page to PDF file?
Yes, you can put it's output in a PDF. Easiest solution would be to print to PDF[^]
|
|
|
|
|
|
1. What is the problem ? Just create in array in "User" class and give get/set property to it. Then you can use it also from Main.
2. Get a random number, add it in an array. Next time if you get random number, compare it to that array, if number exists, then get new one.
|
|
|
|
|
Ok..after that how will make the random class generate numbers maximum of 6 numbers?
ex. 10, 36, 12, 1, 38, 21
|
|
|
|
|
I just give you a hint :
I will not do the homework for you.
See No. 2 how to avoid creating double random number.
To create 6 random number, just use :
Random random = new Random();
int myNumber = random.Next();
Just call random.Next() 6 times.
|
|
|
|
|
How to add a toolbar using windows forms programming of c#
|
|
|
|
|
|
I just created a brand new site, it's called Google. It's neat, give it a try!
Google: C# toolbar[^]
|
|
|
|
|
If i want to run code at runtime from string (Something simple)
How can i do it?
for example , i want something that does "operateThisString" function :
public int X
{
get { return this.Y * this.Z; }
}
public int Y
{
get { return (int)((Math.Sin(new Random() * 10))*52); }
}
private void button1_Click(object sender, EventArgs e)
{
string codeExpressionThatReturnInt = "return (this.X*this.Y%2);";
int numbber = operateThisString(codeExpressionThatReturnInt);
if (number == 0)
MessageBox.Show("This number is Even.");
else if(number==1)
MessageBox.Show("This number is Odd.");
}
the string codeExpression can come from the user in some way.
What is the simplest way to do it?
|
|
|
|
|
|
bonzaiholding wrote: What is the simplest way to do it?
The MSScriptControl - that would allow you to run JavaScript/VBScript dynamically. The good news is that there are lots of articles on this subject.
The bad news is that it's "old", and you'd prolly want to offer the user VB.NET or C# to extend the application. That means offering an editor, embedding the compiler, and loading the generated assembly during runtime.
This[^] article would get you started on the first technique, this[^] article if you go for the second option.
|
|
|
|
|
Can you please give me an exmaple how to do it?
|
|
|
|
|
The two links that I posted point to examples, with explanation;
MSScriptControl example is here[^], the other example is here[^].
|
|
|
|
|
Ha! The article I submitted yesterday might help with that.
Or try this[^] --
int X = 2 ;
int Y = 3 ;
PIEBALD.Types.Rational r = PIEBALD.Types.Rational.ParseInfix ( string.Format
(
"{0}*{1}%2"
,
X
,
Y
) ) ;
Then test for zero.
|
|
|
|
|
|
|
thanks,
i am using "Setup Factory 8.0" software,
Best Regards,
Saber Ahmadi
d
|
|
|
|
|
i am using c# dot net MSHTML webbrowser i have an issue if i have restrict internet security settings due to necessacity now when a web page is loading it is giving a message popups with ok button. below
"Your current security settings prohibit running ActiveX controls on this page. As a result, the page may not display correctly"
that require activex control to be installed that i not allow to install on workstation machines.
I need how if this message occur than press ok button automatically using c# code.
Any suggestion.
Affan Saied
|
|
|
|
|
Hi,
my datatable contains the following columns...
resultsView.Columns.Add("Fam.", typeof(string));
resultsView.Columns.Add("Component", typeof(int));
resultsView.Columns.Add("Description", typeof(string));
resultsView.Columns.Add("Quantity", typeof(double));
resultsView.Columns.Add("Unit", typeof(string));
resultsView.Columns.Add("Unit Price", typeof(double));
resultsView.Columns.Add("Total", typeof(double));
i have a datatable,
I use IEqualityComparer to get distinct rows.
Im able to get the distinct rows...
What my problem is If i find same rows, i need to increase a columnValue in this datatable.
I mean i have column named "component" in my datatable, so if two rows are same, then i need to get one row with component value increased by 1 using IEqualitycomparer. What i get now is only one row with component column value not increased...
cud anyone plz help me to solve this problem??
|
|
|
|
|
Please don't cross post questions.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I was not sure, whether my question comes under .net framework or c#. Thats why i posted it under both the topics.
|
|
|
|
|
Hii
i am working with windows application and i want to change the datagridview cell value's color to red color if that cell value is less than the current value which comes from a datatable or datagridview cell value's color to blue color if that cell value is greater than the current value which comes from a datatable.
plzz help me and send me code for the same
thanks in advance..
Nitin
|
|
|
|
|
this should help you
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellendedit.aspx
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview_events.aspx
|
|
|
|