|
|
Richard,
I want solution or logic to send emegency message from one system to other using windows application.
Thanks,
Sh
|
|
|
|
|
Your problem concerns how to send messages between networked computers.
This has nothing to do with Windows Forms specifically. You may implement your solution within a Windows Forms application, but that is not the question you are asking.
|
|
|
|
|
Hello,
I have tried PureComponents and DevExpress. The PureComponents has an excellent filtering feature, but I ran into some bugs, like horizontal scrolling stopped working. The DevExpress is excellent and is reasonably priced.
Thanks for any feedback.
Tom
|
|
|
|
|
Hi,
Please could any one tell me any free recommended library to skin UI in my WinForm application. I am developing application C#, .netFramework 3.5 and Visual studio 2008.
thanks,
Umrahi
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
Take a look at RCM v1.2 - Theming library: Customize the Appearance of Forms and Common Controls[^] from here on CP, this is just the most recent article that I could find, there are loads more just search the articles for skinning form.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Objective: Modify a dll(binary) to either
1. Call another exe
2. Call another dll (function)
3. Modify the Dll binary by inserting code(Asm/Binary) and generate a shell(cmd.exe)
I know it sounds stupid but I hope you guys got the idea. Please feel free if you need more clarification...I have been trying to do this but no info is available. Now Im wondering is it even possible?
Dll injection/hooking/tampering...any(all) concept is ok, just want to know whats the roadblock to achieve something like this.
Eg:
I have a 3rd part dll called Game.dll. now I want to modify it somehow/anyhow and make it call calc.exe....alrite you guys can laugh !!!!
|
|
|
|
|
This is the second repost of this question and has nothing to do with Windows Forms (or managed C++). Please read Forum Guidelines PLEASE READ[^] before asking questions.
|
|
|
|
|
Newbie!!
I am developing a database-oriented windows application in a certain stand alone machine and would like to deploy it in another machine that is also a stand alone computer.
Do I have to copy the entire database in the second machine (I would think "YES" because of the database dependancy) or is this brought forward from the dlls that I would be copying by way of OneClickDeployment?
Also, is this any different in ASP apps?
Thanks
|
|
|
|
|
which db r u using at backend can u xplain a little
Best Of Regards,
SOFTDEV
Sad like books with torn pages, sad like unfinished stories ...
|
|
|
|
|
Hi.. I have one link(URL) in my win form. When i click on that one window(in 1 tab) will open in IE7. But when i click on same link on win form instead of showing same form which is opened previously it opens in different tab of browser. It continues as per the number of clicks. How to avoid this problem?
Here i have used System.Diagnostics.Process.Start(["Link"]) in win form link. Please help me in regarding this..
Thank you..
|
|
|
|
|
I expect it will behave according to your settings inside your default browser.
If you browse to a page, then click a link and click it again, does that cause two new tabs to open up?
|
|
|
|
|
Hi.. How to display sort Icon in each column of Data Grid View in Windows Forms(Windows Application)? I have set Sort property to automatic. But how to display sort icon when form loads or grid loads? Please mention C# code to solve this.. help me in this..
Thank you..
|
|
|
|
|
AFAIK the SortIcon (I assume that you mean the little triangle thingy) only appears on columns that are sorted. If you want it to appear for all columns you will have to Sort the DataGridView in the Form_Load event handler and sort it on all columns. The problem is the built in Sort routines only cater for sorting on one column.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I've tried googling this although I'm not exactly sure how to ask google what I'm trying to do, heh.
I have a databound form that displays 2 different types of business objects (they inherit from the same base class). I would like the form controls to change depending on the type of object the form is displaying.
I suppose I can redesign the form at runtime depending on which object I'm displaying although something tells me this might not be the most efficient way to do this.
If there is some major concept I'm missing here please point me in the right direction, I can probably figure it out from there. I've only been working with C#/.net for 6 weeks so there are surely plenty of things I don't yet know.
|
|
|
|
|
This become a design issue, I assume there is a bunch of data in the base class and different data in the other classes. I would split the form into 3 panels, the subclass will determine which one is displayed. I usually design them side by side and move the visible on into position at runtime.
|
|
|
|
|
so essentially I just change the visibility property of my container? Thats going to be rather messy in the designer eh?
|
|
|
|
|
Sure, that's why I double the width of the form and make the adjustment and visibility immediately after InitializeComponent is called in the constructor.
I don't really care what the designer looks like - it is the runtime that I want to be good. I have one form where I use 5 such panels and have to use bringtofront in the designer to work with them, a complete PITA but the users don't know.
|
|
|
|
|
You can make the class specific UI portion into seperate forms or user controls, ie FormA for displaying ClassA object, FormB for displaying ClassB object.
A main form to display your common fields, in the main form a container (panel) shall hold either FormA or FormB, depending on the conditions that you want.
If it's ClassA, create an instance of FormA, and put it into the container (panel), call the necessary object passing and binding on FormA, vice versa for ClassB.
That way you don't need to mess around all the controls on the main form.
To put a form into a panel
formA.TopLevel = false;
formA.Dock = DockStyle.Fill;
formA.FormBorderStyle = FormBorderStyle.None;
panel1.Controls.Add(formA);
formA.Show();
|
|
|
|
|
yep. that's what I sometimes do in such cases.
The alternative is designing Panels, not Forms.
That takes less property settings to get it working.
|
|
|
|
|
Oi, that's cheating, I had not thought to use a form as a sub control. That will make the development much simpler. Have another 5
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
darkelv wrote: To put a form into a panel
Hi Darkelv,
Fascinating !
I don't think I've ever put a Form inside a Panel, although I've certainly put Forms inside Forms (and a pet peeve is that a Form placed inside a Form doesn't automatically stay in the bounds of the Parent Form, although once you've written code to handle that (as I have [or created your own sub-classed Form where 'staying inside the Parent' is implemented]), you can just re-use that code).
I'm very curious as to what you think the strategic advantages of putting a Form in a panel (compared to a UserControl, or another Panel) would be; what type of scenario would this add value to.
Appreciate your thoughts.
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Hi Bill,
You can set the form's dock to Fill when putting Form inside Form's Control property, for auto fitting in the parent form.
One advantage is you can easily change your presentation from one way to another, for example from above, instead of putting FormA or FormB in panel, you can easily change it to show FormA or FormB as popup forms.
Also, I can easily test the form without needing to create a form to host the user control or panel, wire up all the events, etc.
Though using Form, the application may get a bit heavier.
|
|
|
|
|
This is a rant not a question.
I have 2 DGVs with approx 1000 rows each on a single form, each has 14 columns and I need to format the alignment and text of the last 6 columns.
I created this utility event that uses the cell format event to set the alignment based on the columns underlying data type (ValueType) and assigned it to both grids. Performance is not good, there is an appreciable delay when loading and filtering the grids, about 3-5 seconds
public static void dgCellFormat(object sender, DataGridViewCellFormattingEventArgs e)
{
DataGridViewColumn oCol = (sender as DataGridView).Columns[e.ColumnIndex];
string vt = oCol.ValueType.ToString().ToLower();
switch (vt)
{
case "system.int32":
case "system.int16":
case "system.int64":
e.CellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
if (!oCol.HeaderText.EndsWith("ID"))
{
e.CellStyle.Format = "#,#";
}
break;
case "system.decimal":
e.CellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
if (!oCol.HeaderText.EndsWith("ID"))
{
e.CellStyle.Format = "#,#.00";
}
break;
case "system.datetime":
e.CellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
break;
}
}
So I thought if cell formatting is slow then formatting the columns defaultcellstyle should be better performance. WRONG , setting the defaultcellstyle instead of cellformatting resulted in a delay of approx 50 seconds when loading. I suppose b/c the grid formats all the data instead of just the data on display.
[edit] Thanks to comments from darklev I moved the above formatting into the column creation process, removing the AutoGenerate columns and formatting the columns to meet my requirements. Work perfectly without the overhead. [/edit]
Last modified: 123hrs 51mins after originally posted --
|
|
|
|
|
Are you using AutoGenerateColumn=true?
Why not define the columns as what you would like, before populating the data onto the DataGridView?
|
|
|
|