|
thanks alot Expert.... your quick responce is highly appreciated.
|
|
|
|
|
How to print Test Page using PJL Command in C#?. Could tell me some steps to connect network printer and how to send PJL Command to network printer for finding the document name and current printed page in c#?
Regards
Rajesh
rajesh
|
|
|
|
|
hi all .
I have 3 Tabels in SQl Server 2005
The first table Have A PK Name Loc_ID
And the Secound and Thaerd Tabel have A Fk Return to the PK On Tabel Number one
How i can Delete From Table number one Without Delete From The Secound and Thaerd Table ??
How i can Delete From Tabels One And Tow And Thared Tabels by Using One Quere ??
the Language I Using It C#.Net
Thanks For All Hellp me
Thaer
|
|
|
|
|
Thaer Hamael wrote: How i can Delete From Table number one Without Delete From The Secound and Thaerd Table ??
You've probably got the foreign keys set up to 'cascade on delete' this means that a delete will roll along the foriegn keys deleting everything to ensure referential integrity is maintained. If you turn this off (Change it to 'no action' on delete) then you won't get this behaviour, instead, the deletes will be blocked unless you delete all references at the same time.
Thaer Hamael wrote: How i can Delete From Tabels One And Tow And Thared Tabels by Using One Quere ??
By keeping the foreign keys set to 'cascade on delete' and deleting the primary object, the delete will cascade to all the referencing objects. If you change the foriegn keys to 'no action on delete' you will have to ensure you delete the items in the correct order to maintain referential integrity. Just put the three delete statements in the same query. Make sure you get the order right though.
Simon
|
|
|
|
|
how can i refresh the desktop ? like right click > Refresh
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
"your Syntaxt Of Your Language Is Not Correct .
Rwrite your Question By Using English Language !
Thaer Hamael"
first i will say, correct your english, there is no word "Syntaxt", your sentence has full stop problem, no space before full stop and there is no word "Rwrite" too, if you are writing post, only first character of sentence sould capital not every first character.
and after all i will say "shut your mouth"
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Call SHGetSpecialFolderLocation[^] and pass CSILD_DESKTOP[^] to get the desktop folder location. Then call SHChangeNotify[^] passing SHCNE_UPDATEDIR and SHCNF_IDLIST and the IPL for the desktop that was returned from SHGetSpecialFolderLocation.
Ignore that fool. Your English looks fine to me.
Simon
|
|
|
|
|
thanks, i tried but it didnt work, here is code :
[DllImport("shell32.dll")]
private static extern uint SHGetSpecialFolderLocation(IntPtr hWnd, CSIDL nFolder, out IntPtr Pidl);
[DllImport("shell32.dll")]
private static extern void SHChangeNotify(long wEventId, uint uFlags, IntPtr dwItem1, IntPtr dwItem2);
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
{
IntPtr tmp_Pidl;
SHGetSpecialFolderLocation(this.Handle, CSIDL.CSIDL_DESKTOP, out tmp_Pidl);
SHChangeNotify(0x0018, 0x0000, tmp_Pidl, IntPtr.Zero);
}
i'm not sure with values of SHCNE_UPDATEDIR and SHCNF_IDLIST
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
|
Glad to help you
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi,
I am in need of a MTA (Multithreaded) COM component for one of my application.
I would like to know if VC# can be used to develop the MTA COM component instead of VC++? If possible, how? or any info regarding it will be helpful.
Thanks in advance.
|
|
|
|
|
hello..
does anyone know a sample code for saving a text from a textbox to a textfile example .doc then save it to database..
thanks..
ginji
|
|
|
|
|
|
|
Hi All,
I want to create plugins for visual Studio 2005. I used Addin project option and create plugin for VS2005. I also want to know how to register/integrate my plugin into VS2005. Send me exact steps to create plugin for VS2005.
Thanks
Atul Mahajan
|
|
|
|
|
Atul23 wrote: Send me exact steps to create plugin for VS2005.
English is probably not your mother tongue, but this is still a rude thing to ask for, no one will do this work for you.
You can find an article here[^] that shows how to build a VS plugin.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hello
im not a c# expert thats why i came here!!
okay i am using virtual earth in a browser control.
i can call the javascript functions in it from a button with no worries, it works...
such as
executeScript(SetCenterAndZoom,lat1,long1,zoom1);
and if its in a button it works.
but when i make my own function like this..
private void addanotherpoint()
{
executeScript(SetCenterAndZoom,lat1,long1,zoom1);
}
this throws an System.InvalidCastException
i am sooo stumped how do i fix this???
i need to put the javascript function call in my own function not in a button......
!!!!!!!
please help.
thanks guys.
|
|
|
|
|
Hi All,
When your building applications and you don't want all the required assemblies in the root installation directory how do you configure the app to look in a subdirectory of the main apps install location?
like:
\Program Files\App\app.exe
\Program Files\App\External_Libs\data.dll
Cheers,
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
You need to use AppDomain.AssemblyResolve[^] event. Handle it and load the assemblies in the event handler. Something like
static void Main(string[] args)
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
}
static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
string assemblyName = args.Name;
return System.Reflection.Assembly.LoadFrom(assemblyName);
}
Hope this helps
|
|
|
|
|
Thanks for this ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Hi guys, How can i build this relationship class
ClassA intializes ClassB and ClassC if i add ClassA to my Form1.cs it should put ClassB and ClassC objects on the form. So there are only 2 objects displayed on the form. If I want to delete either ClassB or ClassC objects from the Form.cs it should delete all the instances created by ClassA.
I don't know how to start any kind of boosted answer will be appreciated. Thanks
|
|
|
|
|
Your question is not clear. How can you put class instances into form ? Are you developing any componenent that can be sited in the designer ? If yes, derive your class from Component class.
netJP12L wrote: ClassA intializes ClassB and ClassC
Something like this ?
class ClassA
{
private ClassB instanceB;
public ClassB InstanceB
{
get { return instanceB; }
set { instanceB = value; }
}
private ClassC instanceC;
public ClassC InstanceC
{
get { return instanceC; }
set { instanceC = value; }
}
public ClassA()
{
instanceB = new ClassB();
instanceC = new ClassC();
}
}
class ClassB
{
}
class ClassC
{
}
|
|
|
|