|
I am trying to set a userdefined dataset as report datasource.
Ans actually my problem is, I am adding one column to a dataset table, and I am sending data to this column. Now I want to add this dataset to report datasource.
rosenvas
|
|
|
|
|
I have a big Problem with an Word Export from C#. I want to create a Table where I write two words in a Cell. I want to have the first one Bold = 1 and the second one Bold = 0, but I can´t seperate the two words. When I write Cell(1,1).Range.Bold = 1 then the whole Cell is Bold 1. Is there a posibility to write two different Words in one Cell with different Bold.
Cell like:
Word1
Word2
-- modified at 11:32 Wednesday 19th April, 2006
Kann auch Deutsch
|
|
|
|
|
Hi.
I need a sample code for running two threads simultaniously that each of threads fill own progress bar?
Best wishes
|
|
|
|
|
There are two discussions of threading within one page of this post, a tutorial in MSDN on threading, a help topic on your own machine if you installed the help files, etc. etc. Are you getting a feel for what you should do FIRST before asking questions on the forum? Once you have the basics, then ask questions about the parts you can't get working.
|
|
|
|
|
hi^^ I'am korean student.
I want to know software information( include software version ) that is installed in window.
( you can see Start - Control Panel - Program Add/Remove ^^;;
i.e Internet explorer, Microsoft word 2003, Microsoft powerpoint, etc..)
I knew how to get a hardware information. I searched code project site.
But I didn't search a software information.
Can you teach me how to get a software information? or related site.
please^^;;
Nothing!! But gonzo!!
-- modified at 10:59 Wednesday 19th April, 2006
|
|
|
|
|
|
thank you^^
It's nice hint^^b
"You can access the registry via the Registry class in the Microsoft.Win32 namespace."
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
Nothing!! But gonzo!!
|
|
|
|
|
I use visual studio .net 2003
but I don't have Microsoft.Win32 namespace^^;;
make project - SolutionExplorer - Reference - Reference Add( translate Korean )
I can't see it.
How to get Microsoft.Win32??^^;;
System.Environment too...^^;;
Nothing!! But gonzo!!
|
|
|
|
|
It is not in a separate assembly. Although named with a different namespace these classes (Registry etc) is located in mscorlib (this one is normally always referenced - its the base for every .Net app). Putting a using Microsoft.Win32 at the top of your class(es) should just be fine.
|
|
|
|
|
thanks!!
I didn't know.
Everthing is very good!!^^b
Nothing!! But gonzo!!
|
|
|
|
|
Hi.
How can I manage the close button of a form ?
I want when user clicks the close button(in title Bar of a form), I determine what happenning(instead of closing form).
Best wishes
|
|
|
|
|
Catch the Closing event or override OnClosing within the form. It provides CancelEventArgs which you can use to cancel the closing (and instead do something else).
|
|
|
|
|
Hi,
I was trying to create a print dialog via System.Drawing.Printing.PrintDialog, but it seems to be the old bad one common dialog as in MFC,WinAPI. Windows 2000 and XP must have more estetic version of that because notepad, IE a some another commercial application have it. But I cannot find where
Could you help me ?
thankx, Wizard_01
|
|
|
|
|
|
I didnt say Print Preview, but Print Dialog, it's where you can chooose the printer
Wizard_01
|
|
|
|
|
Whoops my bad
What functionality exactly do you want?
Ed
|
|
|
|
|
Would it be difficult to convert an existing C# windows program to be a web application?
Basically the program, as it now exists, requires the user to fill in a form which is submitted and that produces an output screen. Most of the logic within this program exists in stored procedures, rather than in the program itself.
This to me means that all that needs to alter is the "screen I/O".
Am I over simplifying ?
Regards,
Alf Stockton
-- modified at 9:51 Wednesday 19th April, 2006
|
|
|
|
|
Simple answer: You will have to recreate the whole GUI. If you separated the business logic from the UI than you can use it easily in your new 'frontend', because .Net web applications can use the same libraries (with some limitations like the GUI components of winforms) as normal apps.
|
|
|
|
|
I want in my textBox enter characters in the following way:
private void textBox2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)<br />
{<br />
int i = this.textBox2.SelectionStart;<br />
<br />
if(i<this.textBox2.TextLength)<br />
{ <br />
this.textBox2.Text = this.textBox2.Text.Remove(i,1);<br />
this.textBox2.SelectionStart = i;<br />
}<br />
}<br />
which is mean that every single character which is entered should replace existing character unless the cursor is on the end of the text.
This sample code doesn`t work I want.
Speaking gennerally I want in my text Box to replace all characters with new entered unless the cursor is on the end of the text.
Can anyone help me?
-- modified at 9:54 Wednesday 19th April, 2006
|
|
|
|
|
Try replacing your KeyDown code with:
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
int i = this.textBox1.SelectionStart;
if (i < this.textBox1.TextLength)
{
this.textBox1.SelectAll();
}
}
When I did this, I had a value in the textbox, keyed a value, and it replaced everything in the text box. When I keyed values at the end, it just added it on. I think that's what you wanted.
|
|
|
|
|
I know what you mean, but it isn`t the action I want. I don`t want replace all characters in my textBox but I want replace only that character which is curently selected by the posision of the cursor. For example text:
12345
when the cursor is (for ex.) between 3 and 4 by enter new character a want replace character 4 by new one.
This should work like insert key in Microsoft Word.
Anyone know the answer?
|
|
|
|
|
use the Key_Press event instead of the Key_down event...that should work with the same code..
|
|
|
|
|
we have this command for DataGrid
dataGrid1.SetDataBinding(MyDataSet, "MyTable");
Do we have the same command for DGV ? Or something equivalant that does the sam thing ?
Mr.K
|
|
|
|
|
|
Hey guys I use C# to creat Win Forms, I was talking to a friend of mine, he believes that in terms of Graphic, Delphi is much more powerful that C# !!!
I'd like to make my Form more attractive, do you have any sujjestions ???
thanx
Mr.K
|
|
|
|