|
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??
|
|
|
|
|
|
nobody know to explain about voice chat development.. thats y all giving useless reply...am i correct??... when i post any simple doubts.. i get sudden reply
|
|
|
|
|
nobody know to explain about voice chat development.. thats y all giving useless reply...am i correct??... when i post any simple doubts.. i get sudden reply
|
|
|
|
|
hi,
I have one problem can any one solve it.My aim is i want to view my .doc file which is saved in database using c# windows application.It must be in the same format when it was loaded .Please solve my problem.i tried very much but am not getting
Thanks
devinaren
|
|
|
|
|
devinaren, you made a statement as opposed to a queston. What is your question?
|
|
|
|
|
Your code is broken. If I could see it, I might be able to tell you where.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
private void ComboBox_KeyDown(object sender, KeyEventArgs e)
{
this.ComboBox.DroppedDown = true;
if (e.KeyCode == Keys.Up && this.ComboBox.SelectedIndex != 0)
{
this.ComboBox.SelectedIndex -= 1;
return;
}
if (e.KeyCode == Keys.Down && this.ComboBox.SelectedIndex != this.ComboBox.Items.Count - 1)
{
this.ComboBox.SelectedIndex += 1;
return;
}
this.ComboBox.SelectedItem = this.ComboBox.Text + "%";
}
Hello folks. I have this event set up to search/skip to the contents of a ComboBox by the text entered, however I want to make sure I can still use the up and down keys functionality... My problem is when I run this code in my project and press the up or down keys in the ComboBox my selection moves up or down two spaces rather than one. What am I missing?
Thanks in advance!
EDIT: Sorry, the code actually was slightly wrong due to my experimenting before posting. It's fixed how I meant it to be and the problem persists. The old code was as follows and has the same outcome:
private void ComboBox_KeyDown(object sender, KeyEventArgs e)
{
this.ComboBox.DroppedDown = true;
if (e.KeyCode == Keys.Up && this.ComboBox.SelectedIndex != 0)
{
this.ComboBox.SelectedIndex = this.ComboBox.SelectedIndex - 1;
return;
}
if (e.KeyCode == Keys.Down && this.ComboBox.SelectedIndex != this.ComboBox.Items.Count - 1)
{
this.ComboBox.SelectedIndex = this.ComboBox.SelectedIndex + 1;
return;
}
this.ComboBox.SelectedItem = this.ComboBox.Text + "%";
}
modified on Wednesday, February 25, 2009 6:10 PM
|
|
|
|
|
Well now I feel stupid. But I guess it's the learning process.
Turns out the built-in up/down key functionality was still running, so I essentially was repeating the process with redundant code. Removing the redundant code and leaving the return function to prevent the pseudo-search function on up/down works fine.
Thanks to anyone who read and considered this.
EDIT: Hahaha! Now I think I just realized this entire process was useless since the up/down keys don't act any differently without the extra code. I need more sleep, maybe? Someone put me out of my misery!
|
|
|
|
|
ps. index += 1 equals index = index + 1
|
|
|
|