I know WPF is more complex an flexible so could be thought to do more calculations. But since the rendering is done on the GPU, wouldn't it be faster than Winforms for the same application (functionally and visually)?
I mean when you are not running any games or heavy 3d rendering, the GPU isn't doing heavy work, right? Whereas the CPU ...
If I'm using a ListView in virtual mode then, as I understand it, the list view only keeps track of a small number of items in the list. As the user scrolls it dynamically retrieves items it needs to show from the virtual list.
But what if an item is added or removed from the master list? If an item is added/removed outside of the range...
Okay so I'm trying to make a little gag program that will "run away" from the mouse.
So, to get the mouse coordinates for the whole screen and not just the form control I had to create a little helper:
static class MouseHelper
{
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool Ge...
Hi,
QUESTION: In .NET 3.5 WinForms apps, how do I access/call methods in UI thread from a separate thread, without passing a delegate?
EXAMPLE: Say I have some code I want to run both (a) manually when the user clicks a button, and (b) periodically called by a process which is running in a separate non-mainUI thread but without passing...
when I am editing a cell and press enter the next row is automatically selected, I want to stay with the current row... I want to happen nothing except the EndEdit.
I have this:
private void dtgProductos_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
dtgProductos[e.ColumnIndex, e.RowIndex].Selected = true...
Winform: Web browser Control
The web browser has the following displayed content, within a html table.
[Element] [Value]
Name John Smith
Email [email protected]
For the example above, the html code, might look something like this
<table>
<tbody>
<tr>
<td><label class="label">Name</label></td>
...
I have one form opening a second form which is meant to look like it's replaced the first form but it opens a bit to the right and down which ruins the effect.
If there a way to make it open wherever the first form may be?
I am using visual studio, in C++
...
A form contains many elements, such as labels, Textbox, radio options box etc
How do you detect the user has changed a textbox input value, or has choosen a radio option within the content of a web browser control? (not the winform itself).
Do you handle a winform event for when the mouse clicked or keyboard keys pressed? or is there a...
I am building a desktop application that needs to update current user's status frequently. This status will be available as RSS feed.
In order to do this, I think I can create a asp.net folder and secure it using form authentication. When the desktop application written as winform in c# needs to update status, it can set WebRequest.Crede...
I have a RichTextBox that I write a string to every time I click a Form button. The string ends with a newline so each time I add a string, it appends to the bottom of the RichTextBox. Each string begins with the string "Long" or "Short" and ends with Environment.NewLine. I'd like to color each line red if it beings with "Long" and blue ...
I used RollingFileAppender. And I want add a blank line to the log when my program launches. How to do that? Thanks.
Edit:
OK, thanks for you all. Sorry for the confused question I asked.
Let me make some explanation.
I config the log4net as follows:
<log4net>
<appender name="MyFileAppender" type="log4net.Appender.RollingFileAppender...
I programmatically create a Picture Box in c# windows program. I assign it with a value for the Tag property. I would like to print out that tag number programmatically, just for test purposes. so I try this:
private void Form1_Load(object sender, EventArgs e)
{
pic.ContextMenuStrip = contextMenuStrip1;
pic.ContextMenuStrip.Clic...
Hi,
we are starting a new smart client project, which is .net winform as client, connecting web service at application server in win 2003. currently, all developers are using win xp pro, to enalbe debugging at both client and server side, we try to get both client and web service installed on XP pc, but the web server require service ac...
I have a windows application in which a form is binded with the data.
The form loads slowly because of large data. I am also showing paging in form to navigate through the records.
How to increase the performance?
...
Is there any option in the html agility pack that can parse the tag which is like in the < and >.
If there is tag like <table> then html agility pack parse the information from the tag table properly.But if the tag is like < table < then it does not parse the information from the tag table here. So any option is there in the htm...
I'm implementing a custom control that inherits from Control. I want it to be focusable (it's a kind of list box).
In the constructor, I do
SetStyle(ControlStyles.Selectable, true);
I can now use Tab to navigate to the control.
However, when the control receives a mouse click, it does not automatically claim focus. I can work around...
Hello,
We have created a beautifully designed .NET WPF desktop application. We are installing the application with InnoSetup , and if .NET 3.5 is not present, it automatically installs it. However, the package to download .NET 3.5 is huge and we found out that about 30% of users do not finish instalation due to this.
The obvious soluti...
Can I draw a rectangle with mouseClick?My code is not working so far.Can you help me?
private void panel1_MouseClick(object sender, MouseEventArgs e)
{
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Black, 2);
g.DrawRectangle(pen, 100,100, 100, 200);
}
...
Microsoft MSDN site has next remark: "Any groups assigned to a ListView control appear whenever the ListView.View property is set to a value other than View.List."
My problem is that i like to have View set to SmallIcon.
In this mode ListView control is shifted left, and CheckBoxes are covered by left edge
How to solve this issue, or...
I am working on C# application which is like a small search engine. The user will enter a word and the program will return the files that contains this word.
I have an array of file paths (as strings) and I want to show these paths as links in a DataGridView, so that when the user clicks the file name the file will be opened.
Note: I ...