|
So if my MDIChild window open, how can I make shure they don't click
on the menu, etc.. without disabling it. So to make it the same
way as when you trying to click away in the modal form and it makes this
"Ding" sound?
Thank you
|
|
|
|
|
zaboboa wrote:
how can I make shure they don't click
on the menu, etc.. without disabling it.
"menu, etc, ..." of what? Your explanation isn't very clear at all.
An MDI Child window is a Multiple DOCUMENT Interface window. It's meant to edit documents, like having multiple editing windows open in Word, each editing a different document. It's not meant to be a modal window for anything.
I don't get why your MDI Child window has to be modal. I can't think of a single reason why you would want to do this.
What are you trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
you can't make it a modal but you can play a trick like I did. Do not make it a MdiChild. Set its ShowInTaskBar to false.. open it modally.. (ShowDialog) that will do exactly what you want..
Regards
|
|
|
|
|
how do i map tablestyle to dataview? ..its easy with dataset table names,
or how do i fill dataset table with dataview..
bye
|
|
|
|
|
Hello all,
I have a winform which I want to hide just after the InitializeComponent method is called.
I tried using Hide() to no avail.
Any insights?
Thanks.
Alberto Bar-Noy
Software Engineer
http://www.certagon.com
|
|
|
|
|
Override the form's OnLoad procedure and change the Opacity to 0.0. You can't really Hide() or use Visible = false to do this. WHen you need to show the form again, change the Opacity back to 1.0.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When Application.Run(myForm) is called, myForm is made visible. By this point the form has already been created and therefore its constructor and the InitializeComponent() method have already been called.
Use Application.Run() instead of Application.Run(myForm). This will start the message loop without making any form visible. You will likely then want to add Application.ExitThread() to an event handler for the Closed event of your main form.
-Chris
|
|
|
|
|
Hi,
I can open a MSWord document from C# code, but
is it possible to automate a Word document that is
not opened from the C# code ?(i.e. the Word document
is already opened before the c# code run ) If yes, how ?
Thanks
|
|
|
|
|
Hi,
I want to call webservice in the Trigger. How to call the webservice from CLR Triggers?.If anybody knows teh detail let me know.
And i worked out the following Example code for CLR Trigger.
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Data.Sql;
using System.Data.SqlTypes;
using System.Data.SqlServer;
namespace CLR
{
public class Class1
{
public static void InsertTrigger()
{
SqlTriggerContext sqlTrigger = SqlContext.GetTriggerContext();
SqlPipe sqlPipe = SqlContext.GetPipe();
SqlCommand cmd = SqlContext.GetCommand();
if (sqlTrigger.TriggerAction == TriggerAction.Insert)
{
cmd.CommandText = "Select * from Inserted";
SqlDataRecord dr = cmd.ExecuteRow();
string Subject_uri = dr[0].ToString();
string predicate = dr[1].ToString();
string Obj = dr[2].ToString();
sqlPipe.Execute(cmd);
sqlPipe.Send("You Selected Subject_uri ::"+Subject_uri+" Predicate ::"+predicate+" Object ::"+Obj);
}
}
}
}
After that i created Assembly and Trigger and clr enabled
create assembly CLR from 'C:\Inetpub\wwwroot\Vinoth\CLR\bin\Debug\CLR.dll'
CREATE TRIGGER InsertTrigger
ON Triplets
For Insert
As
External Name
CLR.[CLR.Class1].InsertTrigger
sp_configure 'show advanced options', 1
RECONFIGURE
sp_configure 'clr enabled', 1
RECONFIGURE
insert into Triplets values('test','_2','Testing1')
When i insert the values it is inserting into table .But why ican't get sqlpipe.send Message.
How do i know whether my CLR trigger is working?
Thanks,
Vinoth
|
|
|
|
|
hi there
I would like to have my windows service, which normally run under LocalSystem account to access a network share from where I need to copy to text files and later delete these to files.
I have tried to change the account under which the service run to NetworkService and this has not helped. Does anyone know how to solve this problem ?
|
|
|
|
|
You can't use the NetworkService account and expect this to work. Create a normal user account with the rights that it needs and run the service under that account.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to draw string, but in specific way... I got a curved line, for example sinusoid, and i want to draw text on it exactly... How to do it?
|
|
|
|
|
First, create a System.Drawing.Graphics object.
Then draw your curve onto it using Graphics.DrawCurve() method, or if your curve is an image, use the Graphics.DrawImage() method.
After that, use the Graphics.DrawString() method to write the text you want onto the curve.
> whoami
The system is unable to identify you when you don't even know your name!
|
|
|
|
|
You didn't understand me... i want my text be curved on line...
|
|
|
|
|
you did not understood him... thats what he is trying to teach you ... better rephrase your question if you have a point...
its me =Þ
grim zax
|
|
|
|
|
Ok, let me explaine....
For example if i got horizontal line, i draw the text horizontally on it...
If i got a vertical line, i draw the text vertically...
If i got curved line, i draw each letter exactly on line... So if i got sin function and word "Hello World!", i need the 'H' at the start, 'e', next step on line... and so on... Let words dancing on line....
|
|
|
|
|
Please anyone help me i still new in this C# development.
I'm trying to have two classes e.g Customer, Account classes and the Account class must inherit the Customer class, but i don't know where to start.
please help
|
|
|
|
|
sosodev wrote:
but i don't know where to start
The best place to start is down at your local bookshop. Look for a book aimed at beginners, and not one aimed at teaching a programmer a new language. Go through tthe book writing out the examples and building on them as necessary. This will help you to understand the underlying principles of programming.
|
|
|
|
|
|
hi there,
try with this: public class Account: Customer
u can follow the walkthrough in MSDN to get familiar with C#
<< >>
|
|
|
|
|
|
Hi,
Can u tell me to make one set up exe for both the project Currently i have made two installer one for WIndows Service and another for my project. I can install the project set up and after that i am able to install Windows Service(This is user defined service)
My client wants to integrate into one set up exe
can anybody help me
Thanks
|
|
|
|
|
Hi,
I have made set up for user defined Windows Service and tested with Window2000 It working fine
but when i install the windows service in Windows XP, i get error while running the windows service
can any one tell me is there an\y difference in making Windows service in Win2k and Win XP I am making WIndows service (User defiend) in c#
regards,
Sanjeev
|
|
|
|
|
There are differences in what's supported, but it's usually what 2000 doesn't support that XP does.
Since you didn't mention what the error was, of what your coding is doing when the error occurs, it's impossible to tell you anything useful.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
I have installed dotnetframework in Win XP and Win2k
when i run Windows Service and click on desktop of my product
its showing me the following error
Commn Language Runtime Debugging Services
Process id=0xb50(2896),Thread id=0xb54(2900)
click OK to terminate the application
Click CANCEL to debug the application
What should i write in my Windows Services(User defined service) so that it should not
show the above error
When i run my product exe from the desktop and after that i run my windows services it
shows that only one instance of application is allowed at a time
This program should identify if any man.exe exist it should stop that instance and start
another instance of man.exe but this program as a windows service does not work
protected override void OnStart(string[] args)
{
// TODO: Add code here to start your service.
Process[] aProcesses1;
if (aProcesses1.Length > 0)
{
if(rd1==true)
{
// The last excel process is the orphaned process which is killed
aProcesses1[aProcesses1.Length-1].Kill();
rd1=false;
}
}
int intExcelPID;
aProcesses1=Process.GetProcessesByName("man");
string strProc="These are the processes running \n";
for (int i = 0; i <= aProcesses1.GetUpperBound(0); i++)
{
intExcelPID = aProcesses1[i].Id;
strProc+=intExcelPID.ToString()+ " ";
}
//Retrive from registry the value of Path
RegistryKey hklm =Registry.LocalMachine;
hklm=hklm.OpenSubKey("SOFTWARE\\man");
Object obp=hklm.GetValue("Path");
string file=obp.ToString() + "\\man.exe";
Process.Start(@file);
}
When i write the above program it does not work even it does not start when i start my
computer
Regards
sanjeev
|
|
|
|