|
you are welcome
|
|
|
|
|
hi
how to add winform in workflow ??!??
|
|
|
|
|
Please Don't post repeated question with subject
Cheers!!
Brij
|
|
|
|
|
You could have used same post to ask two (one liner) questions.
In a way that would have helped you and the other members.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi
how set ifelse activity in workflow ??!??
|
|
|
|
|
I want to know some of the most advantages and disadvantages of WPF in comparison to the Forms . now i started to develop a audio converter and compresser application ,which application is sutiable for this
thank U
|
|
|
|
|
Hello,
i think that when you are developping your application presentation layer have to be (must be) independent of your buisieness/datamodel/audio converter,compresser core layers...
Then when you have finished to developp your converter/compresser core, then you have to think about presentation/GUI.
Well Well
in WPF you can do some very beautiful things (à la vista gadgets, transparency, shaped forms, easy animations if your are using Expression suite...)
with WinForms you can also skin your application and make the strangest user controls you want.
but still your to keep in mind : Usability !
a beautiful/magic/whaou GUI doesn't mean a usabe GUI
|
|
|
|
|
lisan_al_ghaib wrote: vista gadgets
Actually, Vista Gadgets are not WPF, they're some weird DHTML thing.
However, WPF is very cool, but (imo) very complicated. I am still trying to learn it, but there's a steep learning curve. WinForms was much easier to pick up, even if it is rather limited in comparison.
My answer is if you want it done quickly, use WinForms. If you want this to be a mainstream modern "wow" interface, look into WPF.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
Sorry I thought that vista gadgets were made with WPF...but DHTML
ouch ouch ouch
When MS released their .net 3.0 and visual studio 2008 i feel a little bit lost !
So many things ! Sooooo many new things
I agree with you that WPF is a complicated !
|
|
|
|
|
HI ALL ,
I'd a small form program it's showing a error is: The name of the 'form1'does not exist in current content(line:41)
Can u help me.
Advance thanks 'U'
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace painthello
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Form form1 = new Form();
Form form2 = new Form();
form1.Text = "Paint Event";
form1.BackColor = Color.MidnightBlue;
form1.Paint += new PaintEventHandler(MyPaintHandler);
form2.Text = "Paint Event2";
form2.BackColor = Color.MistyRose;
form2.Paint += new PaintEventHandler(MyPaintHandler);
form1.Show();
form2.Show();
}
static void MyPaintHandler(object objectSender, PaintEventArgs pea)
{
Form form = (Form)objectSender;
Graphics grp = pea.Graphics;
String str;
if (form == form1)/// here the error:The name of the 'form1'does not exist in current content
{
str = "hello from the first paint event";
}
else
str = "hello from the second paint event";
//str = "hello from the" + form.Text;
grp.DrawString("HELLO,WORLD!", form.Font, Brushes.BlanchedAlmond, 3, 8);
}
}
}
madhu
|
|
|
|
|
madhu Rao wrote: I'd a small form program it's showing a error is: The name of the 'form1'does not exist in current content(line:41)
Seems like you had change the form name, but it does not get reflected in code, check the name of form in code.
regards
|
|
|
|
|
Hello,
how can i minimize, maximaze, show, hide or close a Window from a Process?
I know how to list all Processes, or the Processes which have a MainWindow, but how can i access that Window and do something with it?
Thanks
|
|
|
|
|
softwarejaeger wrote: how can i minimize, maximaze, show, hide or close a Window from a Process?
P-Invoke ? If you have the window handle, you can use SetWindowPlacement[^] function to set minimize, maximized or restored states.
|
|
|
|
|
OK, thanks but...
how do i use this in c#? i get everytime a lot of errors
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
struct WINDOWPLACEMENT
{
internal int Length;
internal int flags;
internal int showCmd;
internal System.Drawing.Point ptMinPosition;
internal System.Drawing.Point ptMaxPosition;
internal System.Drawing.Rectangle rcNormalPosition;
}
[DllImport("user32")]
public static extern int SetWindowPlacement(int hwnd, ref WINDOWPLACEMENT lpwndpl);
public class TestClass
{
}
The Debugger told me, that in the line public static extern int a class,delegate or something else is expected, it underlines me the "int"... what to do? And when i delete the int it told me that "extern" isn't valid for this item...
|
|
|
|
|
|
Hi,
Set WindowState property of your form to
FormWindowState.Maximized or
FormWindowState.Minimized for maximizing and minimizing the Form.
Refer to this [^]
To Show/Hide and Close the form, use use Form.Hide/Close/Show.
E.g. to show the current form, use this.Show()
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
hi
this is about process not about Forms
I see A Code Snippet in vs.net 2008 about this but Not remember that code
tanx
|
|
|
|
|
Importing user32.dll and using ShowWindow function with window handle is another solution:
Here is a piece code u may use:
[System.Runtime.InteropServices.DllImport("User32.dll")]
static extern long ShowWindow(int windowHandle, int nCmdShow);
private const int SM_SHOWMAXIMIZED = 3;
private const int SM_SHOWMINIMIZED = 2;
Always keep the Murphy Rules in mind!
|
|
|
|
|
|
I have used the caching and logging application block. It worked well.
|
|
|
|
|
Hi all,
I've added multiple tab pages in a form and set some data to each using a list view. Basically I've added data to the list view using a open dialog. Initially I'm added data to the tab page one. If I add another data to the form, if the tab page 0ne contain data, want to added data to the next tab page.
How can I do it.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I dont think I understand your question.
open dialog and get the data.
after dialog closes create a new tab, add it to the tab collection,
add the controls to the tab and load them with data.
Natza Mitzi
|
|
|
|
|
Ok, I'll explain more. On a button click event I add data to a tabpage as follows.
<br />
private void OpenLocalFile()<br />
{<br />
BackgroundWorker backgroundWorkerOpenFile; <br />
OpenFileDialog fd = new OpenFileDialog();<br />
<br />
fd.Filter = "Word File (*.doc)|*.doc|Text File (*.txt)|*.txt|All supported File|*.doc;*.txt";<br />
fd.FilterIndex = 3;<br />
fd.RestoreDirectory = true;<br />
if (fd.ShowDialog(this) == DialogResult.OK)<br />
{<br />
CloseFile();<br />
backgroundWorkerOpenFile.RunWorkerAsync(fd.FileName);<br />
FileInfo fi = new FileInfo(fd.FileName);<br />
tabPage1.Text = fi.Name;<br />
}<br />
}<br />
On the first button click call this function and added data to the tab page 1. In the next click I want to check on the all tab pages and add data to the first empty content tab page.
Hope it's clear now.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi guys.
I want to put a checkBox in menuStrip.
Do you know how can I do it ?
Thank you
|
|
|
|
|
Mohammad Dayyan wrote: Do you know how can I do it ?
Yes I do. Thanks for asking.
Well you could always set the CheckOnClick property of a menu item to true.
|
|
|
|