|
http://msdn2.microsoft.com/en-us/library/t357fb32.aspx
http://msdn2.microsoft.com/en-us/library/7cz8t42e.aspx
seaching for ".net 2.0 new features" on google outputs DOZENS of articles.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Dear Friends,
How can i use Excel File Complete functionality(Formula's)through ASP.NET 2005 (C#) Coding. (Not HTML Coding)
Please Help ME Dear Friends.................................
Haridas.R
harisofttech@hotmail.com
"Achievement is not a destination, its a journey "
|
|
|
|
|
In my Windows Application How can i insert a Treeview datatype object into the Datagrid......
Help me its Urgent
Thanking you,
Mani
|
|
|
|
|
Dear Friends,
How can i call C#.NET Windows Application Function From JavaScript...................
Please Help Me Dear Friends................
Haridas.R
harisofttech@hotmail.com
"Achievement is not a destination, its a journey "
-- modified at 8:37 Wednesday 28th June, 2006
|
|
|
|
|
You Dont Need To Capitalise Every Word In A Sentence. Also The Word "Dear" Is Used In English When You Address a Very Close Friend Or Relative, eg You Wife Or Mother!
In answer to your question, you cant directly call a C# function from Javascript, as one executes on the client in a web app, and the other on the server.
Why dont you describe further what you are trying to achieve, there is always a way
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 8:32 Wednesday 28th June, 2006
|
|
|
|
|
Hi,
how can i develop in C# program which can fully use dual core processors?
How from code send some thread to cores etc?
Greetings
|
|
|
|
|
If you write your code into multithreading environment or more than one process, then it will be automatically split into 2 cores.
If you want to optimize your code to run into Dual Core Processor, then you must write your code in C++ and compile it using e.g Intel C++ Compiler.
If you want to try, just play with this code:
Run only thread1, or only thread2, or thread1 and thread2 and see cpu load in task manager.
using System;
using System.Threading;
namespace ConsoleApplication22
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Thread t1 = new Thread(new ThreadStart(Worker1));
Thread t2 = new Thread(new ThreadStart(Worker2));
t1.Start();
t2.Start();
}
static void Worker1()
{
int a = 0;
while(true)
a++;
}
static void Worker2()
{
int a = 0;
while(true)
a++;
}
}
}
-- modified at 8:45 Wednesday 28th June, 2006
|
|
|
|
|
Hello All,
With your help I came up to something like that;
foreach (GridViewRow grv in GridView1.Rows)
{
RadioButton cb = (RadioButton)grv.FindControl("RadioButton1");
if ((cb != null) && (cb.Checked))
{
TextBox1.Text = grv.Cells[0].Text;
break;
}
}
but even though I check the radio button it is always false and never goes into that if part.
What am I doing wrong?
Any suggestions?
|
|
|
|
|
johnes7779 wrote: foreach (GridViewRow grv in GridView1.Rows)
{
RadioButton cb = (RadioButton)grv.FindControl("RadioButton1");
if ((cb != null) && (cb.Checked))
{
TextBox1.Text = grv.Cells[0].Text;
break;
}
}
In which event this code is executing?
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
I made a function like above and I am calling it from a button's click.
protected void Button1_Click1(object sender, EventArgs e)
{
fill_textbox();
}
public void fill_textbox()
{
foreach (GridViewRow grv in GridView1.Rows)
{
RadioButton cb = (RadioButton)grv.FindControl("RadioButton1");
if ((cb != null) && (cb.Checked))
{
TextBox1.Text = grv.Cells[grv.RowIndex].Text;
break;
}
}
}
|
|
|
|
|
i have a windows application form which has a button up and button down.
a groupbox is provided wherein it indicates that it is the first value of the dataset with its corresponding detailed datas.
the functionality of the button up is to move that certain data in the 2nd groupbox to groupbox 1...
and the button down is to move a certain data in the groupbox 1 to groupbox 2.
how is this possible? thanks
|
|
|
|
|
By handling the button click events
I don't quite understand your question. If you mean to say you have two datasets, one that populates the upper group and one for the lower then it is a matter of moving a row from one datatable to another, provided that both have the same schema of course.
|
|
|
|
|
i have 5 groupboxes in one form.
each group box has 3 textboxes and two buttons
the first textboxes of each groupbox are from a dataset coming from a master lists.
for example a productcode.
the other two textboxes are the details of the productcode coming from another table from the database which primary code is the productcode
the two buttons functions as the following:
first button(arrow down)
it will display the data from that of the groupbox 2 to the controls of the groupbox 3
and the data from the groupbox 3 to groupbox 2
second button(arrow up)
it will transfer the data from that of the groupbox 3 to the controls of the groupbox 2
and the data from the groupbox 2 to groupbox 3
its sort of changing the displayed data either up or down of the other groupboxes
|
|
|
|
|
how can i make a C# windows application?
|
|
|
|
|
Write the code and compile it? What problem do you exactly have?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Create a new WindowApplication project from the File->New->Project Menu
|
|
|
|
|
Your previous questions are about complexe things. But you don't know how to create a windows application ?????
|
|
|
|
|
hi all,
i want to ask a few questions, and hope to get answers.
1. how can i find a process' owner? (like system or local service or network service or current user)
2. how can i find the cpu usage of a specific process?
3. to start a specific process, how can i list 'the installed programs' in a list or combobox to let the user select one to start ?
4. how can i check if a process is already started ?
many thanks in advance,
bye.
|
|
|
|
|
Hello
Mehmet Fatih Akbulut wrote: 1. how can i find a process' owner? (like system or local service or network service or current user)
Check the Process.StartInfo.UserName Property
Mehmet Fatih Akbulut wrote: 2. how can i find the cpu usage of a specific process?
I don't think you can -or maybe I just don't know!!-. CPU usage is variable over time. Yet you can get the memory usage. check the Process class members.
Mehmet Fatih Akbulut wrote: 3. to start a specific process, how can i list 'the installed programs' in a list or combobox to let the user select one to start ?
Check this Registry Key:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
Each subkey represent an installed application. Check the DisplayName value of each.
Mehmet Fatih Akbulut wrote: 4. how can i check if a process is already started ?
I've posted an article for this, but i deleted it recently -Sorry!!-. You can search CP for "single instance" maybe you will find something.
|
|
|
|
|
Hi,
Description: I had to create a C# ActiveX to work in IE (without an IIS server, so I can't use the option of showing window forms in IE). My final project output does not only exists out of the C#/ActiveX dll but also some referenced third party dlls (not ActiveX, just .NET).
The app works, when I compile it for COM interop and then add the right <object> tag in an html file it works fine. But in order to redistribute the app I need to enter something in the codebase parameter of the object tag. This is a CAB file.
Problem: I tried to add a CAB setup project to my solution, but when I compile my project, and the CAB gets build, it only adds the C#/ActiveX dll to my CAB file and NOT the referenced dlls (who don't have to be registered as a COM object but just have to sit in the same directory as the C#/ActiveX dll).
Pointers: Can I use some sort of normal setup, an exe file, as codebase? or how do I setup the inf file in the CAB to do what I want? Did anybody else run into this problem?
thanks,
Gidon
|
|
|
|
|
I wrote this code to populate a treeview with two different objects, customer and customer groups. My first ever "recursive funtion" and its awfull. In a few weeks it will take me a few hours to figure out what this all does, so could somebody help me clean this up...
<code>
(private customTreeNode node in class declaration)
private void createTree()
{
treeCustomers.Nodes.Clear();
if (customerGroups == null)
return;
else
{
foreach (customerGroup group in customerGroups)
{
if ((group.getGroupParentID() == 0) || (group.getLevel() == 1))
{
node = null;
node = new customNodeObject(group);
ArrayList list;
list = findClient(group.getGroupName());
if (list != null)
{
foreach (customNodeObject c in list)
{
customNodeObject newerNode = c;
newerNode.ForeColor = Color.Green;
node.Nodes.Add(newerNode);
}
}
loopNodes(customerGroups, (group.getLevel() + 1), group, node);
treeCustomers.Nodes.Add(node);
}
}
}
treeExpander();
}
private void loopNodes(ArrayList customerGroups, int previousLevel, customerGroup parent, customNodeObject node)
{
foreach (customerGroup group in customerGroups)
{
if ((group.getLevel() == previousLevel) && (parent.getID().Equals(group.getGroupParentID())))
{
int nextLevel = (previousLevel + 1);
customNodeObject newNode = new customNodeObject(group);
ArrayList list;
list = findClient(group.getGroupName());
if (list != null)
{
foreach (customNodeObject c in list)
{
customNodeObject newerNode = c;
newerNode.ForeColor = Color.Green;
newNode.Nodes.Add(newerNode);
}
}
node.Nodes.Add(newNode);
loopNodes(customerGroups, nextLevel, group, newNode);
}
}
}
private System.Collections.ArrayList findClient(String type)
{
ArrayList custTemp = new ArrayList();
foreach (customer cust in customers)
{
if ((type == cust.CustType) && (cust.UpdateStatus != "delete"))
{
custTemp.Add(new customNodeObject(cust));
}
}
return custTemp;
}
</code>
-- modified at 5:39 Wednesday 28th June, 2006
|
|
|
|
|
I'd like to draw something on a TabPage on PDA (using compact framework). I know that it can't be done the same way like in normal framework because there's no CreateGraphics function within the TabPage class (there is.. but it's not implemented). Is there any other way how to obtain Graphics object than to call CreateGraphics function ? or is it possible to draw on TabPage in completely other way ?
|
|
|
|
|
1. How can i create a folder in a particular path using c#.
2. I have sorted content in a dataview, how can i assign the content to data table.
Jey
|
|
|
|
|
Hi,
1. Directory.CreateDirectory(path);
2. You would have to manually crate a new DataTable and then copy the contents of the view row by row. What are you actually trying to do? You could for example directly assign the DataView to a DataGrid and it will show it like its currently sorted.
Robert
|
|
|
|
|
System.IO.Directory.CreateDirectory("c:\\one");
|
|
|
|