|
You have to create the structures also:
localhost.StoredProcParam[] oParam = new localhost.StoredProcParam[3];<br />
oParam[0] = new StoredProcParam();<br />
oParam[1] = new StoredProcParam();<br />
oParam[2] = new StoredProcParam();
---
b { font-weight: normal; }
|
|
|
|
|
thanks a lot for your reply, it works very good.
i were badly stuck with this issue
thanks again,
fady
|
|
|
|
|
Hi and thanks to your reply, it works very good
i was badly stuck with this issue
thanks again
fady
|
|
|
|
|
Can i add a reference to them and include the Dll's with the app?
If so does anybody know exactly what dll's 'n' stuff that i will need?
Update: the message says "File or assembly name Microsoft.DirectX, or one of its dependencies, was not found."
|
|
|
|
|
That depends on which .DLL's your talking about. The DirectX .DLL's will have to be installed using the Redistributable installer. The Managed DirectX Interop .DLL's you can include with your app. These are the .DLL's you should be setting your reference to. You haven't done this judging by the error message you posted.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
Hello,
Is there a way to show an MDIChild form modally?
Thank you very much
|
|
|
|
|
No. MDI Child forms are not meant for this purpose.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
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....
|
|
|
|