|
Yeah, Issue_Bill_To_Table is called on a non-UI thread, there are actually few of these thread running.
|
|
|
|
|
Then you must either use ShowDialog to display the form, which makes the form modal, or run a message pump using Application.Run. Basically, a window requires a message pump to process messages and your thread, because it's non-UI, doesn't have one.
void Issue_Bill_To_Table (...)
{
Form f = new AppForm();
Application.Run(f);
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I am working on a project that will store login/pw information and allow the user to assign a name to that login/pw. Then, I want to list the account names for the login/pw info in a drop down box and allow the user to select the account they would like to log into and launch the webpage and auto-login to the page. Is this possible?
I've been looking around and I can launch the website, I am just not sure how I could go about setting focus into the login and password fields and then hitting the submit button.
I am fairly new to C#, I go to college and am studying software development, only been doing C# for a few quarters now but I would really like to be able to develop this application.
Any help would be much appreciated.
Justin
|
|
|
|
|
Hi,
Using Strongly Typed dataset, I would like to refer to a column.
This is what I am doing at present:
//dsEmps is the .xsd
EmpBusRule.EmpService.dsEmps employeeDetailsData;
int intEmployeeIDColumn = employeeDetailsData.Employees.Columns[0].Ordinal;
int intFirstNameOrdinal = employeeDetailsData.Employees.Columns[2].Ordinal;
My intention is to use something like :
int intEmployeeIDColumn = employeeDetailsData.Employees.EmployeeID.Ordinal;
int intEmployeeIDColumn = employeeDetailsData.Employees.FirstName.Ordinal;
If I do this the the compiler error is:
'EmpBusRule.EmpService.dsEmps.EmployeesDataTable' does not contain a definition for 'FirstName'
Thanks
|
|
|
|
|
Can the richtextbox control in c# support mulitple fonts?
For example:
Hello, how are you?
I'm fine, thank you
I know you can set the entire rtb to be specific font but what about small pieces of text inside it?
Can someone point me in the right direction?
Thanks
|
|
|
|
|
|
thanks
|
|
|
|
|
Hi,
I was wondering about the font i am using in my Controls, are they being embedded in the assembly or The user must have that font installed in their Windows !!!
If Later is true, then how can i embedd the font that i use in my control in the assembly ?
|
|
|
|
|
Start your own thread next time.
No, the fonts are not being embedded in the controls. The user must have the font installed already. If not, then a default font is used borrowing from the system settings.
None of the controls support embedding fonts. This is best implemented in the installer for your application.
You could also use a PrivateFontCollection[^] to get the same effect.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there.
I was wondering if someone might know how drop down menues are done in a web page, like here on codeproject. If one points to “Message Boards” for instance then a drop down menu is displayed with various choices. How is this done? Could someone please explain it to me the HTML implementation and the code behind file?
How does one create tabs on a webpage? How does one create a tab on a webpage that then turns into a drop down menu when (www.pricegrabber.com is an example of this, the More tab) the pointer on the mouse is placed above it? Could someone please explain to me, both the HTML file and also the code behind file?
Any help and pointers are greatly appreciated.
Thanks,
FJ
|
|
|
|
|
i've seen numerous programs using HTML interfaces. What i mean is that these programs arent skinned, they run inside a normal window, but instead of displaying the form, it has an HTML interface e.g. Mcafee Security Center. How i make HTML interface in programs?
|
|
|
|
|
|
there're 3 types below i can't work out,please give the samples ,thanks
1、struct in union:
union Test1
{
struct
{
long m_time;
};
};
2、union in struct:
struct Test2
{
SCHead m_Head;
union
{
long m_tSumary[1];
};
};
3、complex union in struct
struct Test2
{
SCHead m_Head;
union
{
long m_tSumary[1];
struct {
char m_cClass;
};
};
};
|
|
|
|
|
gary.ruan wrote: there're 3 types below i can't work out,please give the samples
Can't work WHAT out? Give sxamples of WHAT? You haven't asked a question anyone can answer.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
sorry
i can't work these 3 types out on c#
|
|
|
|
|
gary.ruan wrote: i can't work these 3 types out on c#
And that means what???? You can't convert the code to C#???
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to send a WM_CLOSE message to a three running applications. I know the name of the executable so in order to get the main window handle i used Process.GetProcessesByName . This seemed to work for most of my progams. It retuned the main window handle but when i tried to close a particular program (which happens to be Trillian Instant Messenger), I couldnt get the MainWindowHandle . How can i send it the WM_CLOSE message if I dont know the handle. If i kill the process, it doesnt get time to do the cleanup. I've heard that when windows is shutting down it sends a WM_SHUTDOWN message to all programs. Windows must be sending it to Trillians main window too. I can find out the main window handle using Spy++.
|
|
|
|
|
Mridang Agarwal wrote: This seemed to work for most of my progams. It retuned the main window handle but when i tried to close a particular program (which happens to be Trillian Instant Messenger), I couldnt get the MainWindowHandle.
It is likely to happen with hidden 'trayed' applications. To be honest, I dont know how you would go about finding its handle An article would be nice if you succeed
xacc.ide-0.1.2.6 Now with even better keyboard customization - Emacs style
|
|
|
|
|
I have written a program that access an sql server 2000 database installed on a windows 2003 server machine. Sql server is setup with integrated security and i don't want to change this. if i install my app in a computer that is a member of the domain and logins windows with the credentials of a windows server user account works good. Is there anyway from a computer that is on the same network that logins using a local windows account and does not have access to network resources access sql server? the result i want to have is :asking username and password for a windows 2003 server user account within my app and authenticate the user against windows server when the user wants to access the db.
Thanks in advance
From Greece:
Dimitris Iliopoulos
dimilio@yahoo.com
|
|
|
|
|
Hi all,
I little bit confused about on what technique has to be used for event logging. My requirement is, there will be windows application which will invoke the dlls functions. each dlls should log there event/error information into a file(including the windows app). If the file execeeds certain amount/certain period i should automatically(programmatically) archieve file and put the file in some backup directory.
For that i have multiple options in c#
1. Logging data into System's Application Log
2. Using Trace Listners
3. Every dlls has to open the log file and write the entry and has to close the file.
Normally what the techinque the people will use for this requirement
(important there is a possiblity one or more dll can write an entry to a file)
Please help
Thanks and Regards
Srini
|
|
|
|
|
Create a logger files wich has an event called LogEvent, and it listens to it.
And your dlls should raise this event everytiem they have to log something.
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Thanks for ur reply,
What is mean by logger files. how to create it and link with .net.
Could you please give more input on that.
Thanks and Regards,
Srini
|
|
|
|
|
Well that is really up to you.
You can use simple txt files, or XML or even database.
And there is a loat of information about these topics on this site and the internet, so searh a little.
And I think there are even tutorials about logging on this site...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
i passed the value get from below:
-------------
///////////////////////////
C#:
[System.Security.Permissions.PermissionSet
(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
protected override void WndProc(ref Message m)
{
if (m.Msg == 55 && Drvloaded)
{
long test = dp.OnReply(Convert.ToUInt32(m.WParam.ToString()),
m.LParam.ToInt32());
}
base.WndProc(ref m);
}
/////////////////////////////
vc.net
long OnReply(UInt32 wParam,long lParam);
-------------
then after the process by vc.net,i want to pass back some vale(type about
"char/long/WORD..etc) to c#
how i can work this out on "vc.net",thanks
ps:
vc.net,CLR Project
|
|
|
|
|
Hi,
Have anyone tried to apply a custom debugvisualizer by decorating your target calss with the DebugVisualizer attribute?
I cannot use the global assembly:debugvisualizer way as all samples use because my types are runtime emitted.
so i figured that i could decorate my classes with the attribute instead and then reffer to the visualizer type as a fully qualified type name (which should should be possible according to the docs, i should just use the string based ctor)
however i get file not found when i do so , ive picked the fully qualified name from the type and also installed my visualizer in the "C:\Program\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers" folder as im supposed to.
but still no luck..
is there anything special I need to do in order to reffer to the visualizer type as a string?
http://www.puzzleframework.com
|
|
|
|