|
If you want to achieve this in C then it is wrong forum. If you want it in C# then use SendKeys class
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Okay, I was cornered by deprecation. I must handle large images in my application, and System.Drawing is just not fast enough. Graphics.DrawImage() with source and destination rectangles seemed to be the best way, but even that slows down terribly when much zooming is involved.
I remembered that DirecrDraw would solve this problem, but that's deprecated, and the docs told me I should do it in 3D instead. Not that it matters, since my Managed DirectX is deprecated in favor of XNA anyway. Now, XNA doesn't work together with Visual Studio as I understand it, and the user would need to download extra framweorks anyway.
So, is there a way to use up to date hardware acceleration technologies in Visual Studio under .net? What is supported and what is not? I'll need this software running for years to come, and I might even want to modify it in the future. It would be very unpleasant if the technology it's built on would turn obsolete anytime soon.
|
|
|
|
|
Well on the form you can set DoubleBuffered to true. I've noticed that in one of my games it decreased drawing by quite a bit.
|
|
|
|
|
Hi every body,
I am having a problem in using IN operator to filter data in crystal report.
I have tried with selection formula as
<br />
recordSelectionformula1 = "{viewCrystRepSalesOfProductbyCustomer.CustomerID} IN ("+1+","+2+")";<br />
The following error has occured.
The ) is missing.
Any body who have idea about this thing.Then please reply me as soon as possible.
with regards
sureshthedude
Hello man Check it Out
|
|
|
|
|
Hi I need some help for ploting some signal processing data in a 3d graph for my student project. I am working with C#. I have searched in the net but it's not possible for me to buy some tools for serving my purpose. Please help me in this regard with some links. As I am a beginer in C#, plz also tell me how to use those class library.
Faysal
|
|
|
|
|
There are several powerful 3D charting controls available on codeproject.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Plz give me some links..I am really strugling with this. I have tried some from code project but could not work out my problem.
Faysal
|
|
|
|
|
Search the articles for "3d graph" and you'll come up with some.
|
|
|
|
|
I have a ListView set to details mode, which contains file paths. Is it possible to truncate the cells from the left hand side instead of the right?
For example:
If a cell contains a string (C:\Windows\Some directory\file.txt), then if the column is too small, the cell just reads C:\Windows\So...
I need it to truncate from the other side, so it reads ...ctory\file.txt. Is this possible?
|
|
|
|
|
It's not supported natively. You'd have to come up with your own implmentation of the ListView control and replace the drawing code to support this.
|
|
|
|
|
|
What is the use of MVC architecture
|
|
|
|
|
Clean separation of model,view and controller. Easy to maintain and many more.
|
|
|
|
|
|
|
|
Hi All,
in one (windows)form im binding the table to datagridview ,with check box
column . if i click check box in one column , i want to display the
content of that row in a new window ...
in which event we have to write the code .., give me samples or tell me how to write ..!!
thanks .
|
|
|
|
|
Hi,
You can use the CellEndEdit() event for DataGridView. You can probably take a look at the given code.
Lets say we have a grid with first column as boolen column. You have another form2 with a property
GetDataRow() to receive the DataGridView row. In this scenario, you can put the following code under
CellEndEdit() event.
<br />
if (e.ColumnIndex == 0) <br />
{ <br />
<br />
DataRow dr; <br />
<br />
if (DataGridView1(e.ColumnIndex, e.RowIndex).Value == false) <br />
{ <br />
<br />
Form2 frm = new Form2(); <br />
frm.GetDataRow = DataGridView1.Rows[e.RowIndex];
frm.ShowDialog(); <br />
<br />
} <br />
} <br />
I hope this helps.
Regards,
Allen Smith
Software Engineer
ComponentOne LLC
www.componentone.com
|
|
|
|
|
thanks ,
i will try this code
regards,
csn.
|
|
|
|
|
Hello friends,
I am developing an windows application setup project using setup wizard.
now what i want to add uninstall feature in setup application.
So how can i add uninstall feature to setup project...
|
|
|
|
|
Add the Following to the beginning of your Applications Main()
<br />
# region For UnInstaller<br />
string[] arguments = Environment.GetCommandLineArgs();<br />
foreach (string argument in arguments)<br />
{<br />
if (argument.Split('=')[0].ToLower() == "/u")<br />
{<br />
string guid = argument.Split('=')[1];<br />
string path = Environment.GetFolderPath(Environment.SpecialFolder.System);<br />
ProcessStartInfo si = new ProcessStartInfo(path + "\\msiexec.exe", "/x " + guid);<br />
Process.Start(si);<br />
Application.Exit();<br />
Environment.Exit(0);<br />
}<br />
}<br />
# endregion<br />
Go to the Installer project and add a shortcut to the Primary output and rename it to
Uninstall <Application Name>
Go to the Properties of the newly added shortcut and Set the Arguments property to
"/u=[ProductCode]"
Place the shortcut in the user's programs menu.
Create a build and your application is ready with Uninstaller.
thanks
kss
|
|
|
|
|
hi friends....
i am used one single line textbox for getting values.. When the enter button press the single line textbox is changed to
multi line textbox and also create one new line... but the cursor always gets back to right upper corner of the textbox instead of staying in the new line position...How can i set cursor position to new line....
|
|
|
|
|
Aravinthan wrote: When the enter button press the single line textbox is changed to
multi line textbox
No, it's not. The user hitting enter does not change the behavior of the TextBox. Are you sure you didn't set the MultiLine property of the TextBox to true, and then in the design make it LOOK like it's only one line high??
|
|
|
|
|
i set the MultiLine property of the TextBox to true at the time of key(Enter key) down and i create one new line txtbox1.Text+Environment.NewLine.....but the cursor is in upper left corner of the textbox...
|
|
|
|
|
Aravinthan wrote: i set the MultiLine property of the TextBox to true at the time of key(Enter key) down
OK. I fail to see how this is useful. Why would you do something like this?
Did you also set the TextBox's AcceptsEnter property to true?? Did you look into the TextBox's SelectionStart property? This sets the position of the insertion point (blinking cursor).
|
|
|
|