|
This is due to CAS. Code access security in .Net. There are restrictions set for each zone (You could see it in intranet option or .Net configuation Cosole in control panel). Usually it is Organiasation wide. or enterprose wide settings. and governed by policies by network managers. You can also change this usign caspol.exe, a net command line tool. But better is to either copy it to your local machine or Remote login to that server. rather than accessing it through shared drive
|
|
|
|
|
Using System;
public Class Class1
{
Public Void Hello()
{
Console.WriteLine("base");
}
}
public Class Class2:Class1
{
Public Void Greet()
{
Console.WriteLine("derived");
}
}
Public Class Demo
{
static Void Main()
{
Class1 C1=new Class1();
C1.Hello();
Class2 C2=new Class2();
C2.Hello();
C2.Greet();
Class1 C3=new Class2();
C3.Hello();
}
}
while executing this code in command prompt it is showing the following error
source file inh.cs could not be found
no inputs specified
is there any error in the syntax if there please rectify
modified on Thursday, February 26, 2009 1:07 AM
|
|
|
|
|
Public public
Class class
Void void
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-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
how to display datagrid in combobox ?
thanks
|
|
|
|
|
You can't display anything inside a combobox bar text unless you're using WPF. You'd have to build your own control.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thanks
may be give an example with wpf
i do not work with wpf
|
|
|
|
|
I need to dynamically add a flash object to a C# desktop application. Could someone give me some overview on how to do this. I have been able to add it statically but when I go to try to create it dynamically I come up with unhandled win32 exceptions. Also I need the background to be transparent and having troubles with this too.
Thanks for any help
|
|
|
|
|
A flash control is not going to draw itself transparently, ever. What do you mean by adding it dynamically ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a .skin file that the app reads and it needs to know what to load from there. The skin file is built through and editor which contains all the information that it needs to build the form. everything is working well except my flash. See I will never know the exact object or the ammount of objects that need to be loaded. some forms may have 1 flash object were others may have 3 or more or none. Since I will not know I cant go to the front of the form and add my flash object there it will need to be loaded in the back. like all my other controls. And Im not sure how to go about this.
I've seen it done in vb so I'm sure I can do it in C#. the flash object is a circle and when pulling the shockwave flash control onto the form it makes a white box. setting this white box to transparent was also done in vb.
|
|
|
|
|
Heres what windows adds when you pull it into the form.
private void InitializeComponent() {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HighCapacity));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.myFlash = new AxShockwaveFlashObjects.AxShockwaveFlash();
((System.ComponentModel.ISupportInitialize)(this.myFlash)).BeginInit();
this.SuspendLayout();
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// myFlash
//
this.myFlash.Enabled = true;
this.myFlash.Location = new System.Drawing.Point(39, 34);
this.myFlash.Name = "myFlash";
this.myFlash.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("myFlash.OcxState")));
this.myFlash.Size = new System.Drawing.Size(192, 192);
this.myFlash.TabIndex = 0;
//
// HighCapacity
//
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.myFlash);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "HighCapacity";
this.TransparencyKey = System.Drawing.SystemColors.Control;
this.Layout += new System.Windows.Forms.LayoutEventHandler(this.HighCapacity_Layout);
((System.ComponentModel.ISupportInitialize)(this.myFlash)).EndInit();
this.ResumeLayout(false);
}
I need to beable to load this dynamically. kinda like how I do this with a picture box
foreach (object obj in sk.IMG) {
imageButton = new PictureBox();
ImgButton imgBtn = (ImgButton)obj;
arLocation = imgBtn.Location.Split(':');
arSize = imgBtn.Size.Split(':');
this.imageButton.Image = new Bitmap(imgBtn.PathOff);
this.imageButton.Name = imgBtn.Name;
this.imageButton.BackColor = Color.Transparent;
this.imageButton.SizeMode = PictureBoxSizeMode.StretchImage;
this.imageButton.Size = new Size(Convert.ToInt32(arSize[0]), Convert.ToInt32(arSize[1]));
this.imageButton.Location = new Point(Convert.ToInt32(arLocation[0]), Convert.ToInt32(arLocation[1]));
this.imageButton.Cursor = Cursors.Hand;
this.imageButton.MouseDown += new MouseEventHandler(this.ImgButtonKeyDown);
this.imageButton.MouseHover += new EventHandler(imageButton_MouseHover);
this.imageButton.MouseLeave += new EventHandler(imageButton_MouseLeave);
this.menuOff.Controls.Add(this.imageButton);
}
|
|
|
|
|
|
sridhar887 wrote: it shows the compiled file and also file of my applicationname.exe... i think tat is a virus
ROTFL !!!!
sridhar887 wrote: even i format my system
Oh, this is too funny....
The file you're seeing is the config file that is generated by the compiler. It's not the source of your problem. You need to set breakpoints in your code to try to work out where it is blowing up.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
That was hilarious. I got the priviledge to read the post.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
I tried to copy the key components for the benefit of those who missed it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
sridhar887 wrote: ma prob
sridhar887 wrote: wenever
sridhar887 wrote: as usual nothin n t
sridhar887 wrote: t shows de compiled
You're an idiot. Learn to speak English, then come back.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: You're an idiot
hehe what about twerp
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-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
i want to parse the SQL code using C#.
Specifically is there any parser freely available which can parse the SQL code and generate a tree or any other structure out of it? it should also generate proper tree for nested structures.
As well as it should return to me which kind of statement the node of this tree represents.
e.g.
if the node contains loop condition then it should return to me that this is a "loop type" of a node.
Or is there any way by which i can parse the code in C# and generate a tree of the type i want?
Thanks
|
|
|
|
|
I think GoldParser[^] has some plugin for SQL. Please check their site.
|
|
|
|
|
|
|
Voice conference homework ? I doubt it. It's rentacoder work.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
yesu prakash wrote: .i dont want to know ur doubt
Funny, I don't want to know that you've committed to jobs you have no idea how to do. And yet, here you are....
yesu prakash wrote: .if u know u to develop voice chat reply me
Yes, I do. And, if you were to show any signs of doing some research and writing some code, when you asked specific questions, I'd be the first to help you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i am doing research now...how can u help me??
|
|
|
|