|
DataGridView dont have row limit, check your codes
Becoming Programmer...
|
|
|
|
|
Hi all :
I have a file it`s exetition is .dll I want to open it to copy some codes inside. How can I do it?????
<<<<<<<<thanks><<<<<<<<<
|
|
|
|
|
What sort of dll is it ? Is it a resource dll ? What files are you hoping to get out of it ? Where did it come from ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi :
Yes it`s a resource dll in two days ago I was download a project form this website it`s was great , it was about office vista buttons there is a function that response to give the attribute to the buttons I want to know how I can do a button like them .......
<<<<<<<<<<<<<<<<<<<THANKS<<<<<<<<<<<<<<<</codeProject$$>
|
|
|
|
|
Surely if it came from this site, the source code and the images are also there for download ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If the dll is written in one of the .NET Framework languages then you can use Reflector for .NET[^] to decompile it.
|
|
|
|
|
Sig size, reduce it now
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
yeah he used lots of Enters, XD
Becoming Programmer...
|
|
|
|
|
Hi
I created an windows application in C# which contains one form and one class file.In form I have one timer control and Timer1_tick event. In event I am calling a function in the class file. And in class file iam creating the object of form and calls the timer1.Enabled and Interval properties. When I refer this exe in other applications to perform Timer operations, I am getting two kinds of errors for two conditions.
If i am giving a "new" reference to the objects I created for the class and form in Timer exe, then - Stack overflow exception
If I am creating object without "new" and assigns null and uses to avoid Stack Overflow exception, then the error will be "Object refernce not set to an instance of object"
What is the solution to this problem?
NB: In VB they uses "friend" functions and Withevents to create object and avoids this situation
With Regards,
Abraham Chethuvelil
|
|
|
|
|
The 'friend' keyword in VB is just the same as 'internal' in C#. I don't see how that would solve your problem. Also, withevents is just a shorthard for assigning an event. You've obviously created a situation where your code just keeps calling itself. I'm not sure why your class is setting up a timer in your form, but if you set a break point you should be able to work out quick enough what is causing the endless loop.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
The exe is created to perform two tasks in another windows service application I created.
One to use the Timer_Tick event at particular intervals. This event calls the function(void OnTimerEvent()) defined in the class file which works as a wrapper class,
Second, this Wrapper class contains another user defined(delegate) Timer event that I created to perform some operations in Windows service appln. The issue is that OnTImerEvent() Method calls Timer event and the Enabled and Interval properties of TImer control I created in the form.
So I am forced to create the object of form in Class file, and in the form i have to create the object of wrapper class. This class is used in Windows services to define the Timer events
This is the problem I am facing, when runs This timer tick will be invoked at intervals and I get the errors I mentioned in the previous mail based on the use/removal of "new" "<constructor>"
Please help me in solving this
With Regards,
Abraham Chethuvelil
|
|
|
|
|
Arun Abraham Jose wrote: The issue is that OnTImerEvent() Method calls Timer event
The timer event calls itself ? Well, that would do it.
If that's not it, try posting some code, then perhaps I can see your error.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
In the form we have timer1_tick event. In that I am calling object of class.Function of class(); for this I created one object of class in form.
In class I am calling the timer1.Enabled property of form by creating the object of form. In the class I have my own timer event which I calls in the function called in the form. The properties and event I created in this class are used in other projects by referencing to this exe.
If I initialize the objects of form or class in this Timer exe, I will get the error "Stack Overflow Exception". If I dont give "new 'class name()'" in the form, I will get "object reference not set to an instance ob object" error when timer1_tick event, because it calls the function of class only.
With Regards,
Abraham Chethuvelil
|
|
|
|
|
HI,
My aim is to bind two tables data into a single datagrid with specific column names .if any one knows how to do this please do let me know ........database is access
regards
sindhu tiwari
Always Innovative
|
|
|
|
|
Write a query which returns all the data you need from both tables.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I tried the code below which I got from MSDN:
int counter;<br />
Match m;<br />
CaptureCollection cc;<br />
GroupCollection gc;<br />
<br />
Regex r = new Regex("(Abc)+");<br />
m = r.Match("XYZAbcAbcAbcXYZ");<br />
gc = m.Groups;<br />
MessageBox.Show(m.Groups[1].Value + " " + m.Groups[0].Value);<br />
MessageBox.Show("Captured groups = " + gc.Count.ToString());<br />
<br />
for (int i = 0; i < gc.Count; i++)<br />
{<br />
cc = gc[i].Captures;<br />
counter = cc.Count;<br />
MessageBox.Show("Captures count = " + counter.ToString());<br />
for (int ii = 0; ii < counter; ii++)<br />
{<br />
MessageBox.Show(cc[ii].Value + " Starts at character " +<br />
cc[ii].Index.ToString());<br />
}<br />
}
The original text to match was a little different and I modified it. Now I wonder why gc includes 2 groups; one is AbcAbcAbc and the other is Abc. Could please anyone explain this?
|
|
|
|
|
|
Hi,
I have created a nice effect using a Timer and changing form height in the tick event which its Interval is set to 1.
I each tick, the following code is executed:
this.Height += 2;
In my Form1_Load event I have:
this.Height = 0;
The form is flickering. I tried to set DoubleBuffered property to Yes but it didn't help.
How can I overcome this problem?
Your help would be greatly appreciated.
|
|
|
|
|
yeah and it must be flicker because you set interval to 1.
that work so rapidly and require lots of process in very little time
so increase the interval until you get the working one
Becoming Programmer...
|
|
|
|
|
Hi!
i want to add happy2.gif into Demo.resources and then use it when i click button like this:
public Form1()
{
InitializeComponent();
ResourceWriter rw = new ResourceWriter("Demo.resources");
rw.AddResource("img", new Bitmap("happy2.gif"));
rw.Generate();
rw.Close();
}
private void button1_Click(object sender, EventArgs e)
{
ResourceManager rm = new ResourceManager("Demo.resources", GetType().Assembly);
Bitmap b = (Bitmap)rm.GetObject("img");
pictureBox1.Image = (Image)b;
pictureBox1.Height = b.Height;
pictureBox1.Width = b.Width;
}
But it did not work. I also added file Demo.resources from debug folder (by add existing item...) . Here is error message:
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Demo.resources.resources" was correctly embedded or linked into assembly "Create_Resx" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Best regard!
|
|
|
|
|
Make sure your resources are set so their build action is 'embedded resource'. Then find an online tutorial and work through it, this can be tricky to make work the first time.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for replying!
|
|
|
|
|
Hello,
I want to know how to use the bar code scanner machine in my application is there any articles which speak about this topic?.
Thanks.
Dad
|
|
|
|
|
IT depends on your scanner. The hardware manufacturer needs to provide an SDK or a driver that gives you access to the hardware.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Barcode readers usually act like keyboards. You put the cursor in a textbox, read the barcode, and whatever the barcode contains (usually numbers but can also contain text), appears in your textbox as if it had been typed in the keyboard.
At least all the barcode readers I have used work that way.
|
|
|
|