|
It is definitely not a COM api... I am searching for the depends utility.. Wld be great if you cld tell me where to find this utility.
I tried dllimport with a dll called plugin.dll.. thought this wld contain my required api.. but i am not able to define the entry point to this...
Regards
Laks
|
|
|
|
|
|
Thanks Deepak. I tried it out with depends but could find out nothing definitive. Almost all the DLL's appear on the depends tree for this API.
However i found an entrypoint to a function within the api.I shall try to call this function somehow but i dont know anything about this, the parameters etc.. is there a tool to view this information too???
Moreover 'depends' highlights this api's subsystem as GUI so i don't know if i could really use it for my purpose. Thanks anyway i have definitely learnt a lot.
Regards,
laks
Yours Truly
SLNarasimhan
|
|
|
|
|
Hi,
This was what i found out. I tried to import the API and call the function, but i get a System.FormsException on returning from the function. And nothing happens on the function call.
Regards,
Laks
|
|
|
|
|
I'm developing a C#/WinForms application which features a desktop control (Panel) that contains child controls (also Panels). The child controls may contain Buttons.
Sometimes I need to draw arrows between a Button in one child control to a Button in another child control. This arrow drawing is handled by the desktop control's OnPaint method. In the current implementation, the arrows are behind all of the desktop control's child controls. What I would prefer, though, is for the arrows to be drawn in front of the child controls, i.e. above or on the child controls.
How can I do this? Do I have to trap for something in desktop's WndProc, and then paint the arrows after Control.WndProc handles it? Would that work? Is there a better way?
|
|
|
|
|
Sounds like just the arrow paint is happening before the children control's OnPaint().
I think you can fix it by modifying the order in which the OnPaint() handler's occur.
There are only 10 types of people in this world....those that understand binary, and those that do not.
|
|
|
|
|
Hmm, that's what I thought...
I had:
<br />
protected override void OnPaint(PaintEventArgs pe)<br />
{<br />
base.OnPaint(pe);<br />
<br />
}<br />
But that didn't work. Any other ideas?
|
|
|
|
|
Hi there,
I met the same problem as yours, would you please give me some suggestions?
thanks.
|
|
|
|
|
How can i create a Xor Pen.
|
|
|
|
|
dichen wrote:
How can i create a Xor Pen.
I don't beleive this is directly available in GDI+.
-Nick Parker
|
|
|
|
|
You could consider using System.Windows.Forms.ControlPaint.DrawReversibleLine(), or look into importing SetROP2() and using that. There's an article on CodeProject for the latter.
|
|
|
|
|
GDI+ does not support raster ops. What are you needing an XOR pen for, BTW?
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I have a override of the Panel control where I draw a dotted-line grid in it. But the painting is really slow whenever the control needs to redraw.
This is the paint code:
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
if (ShowGrid && !this.DesignMode)
{
this.SuspendLayout();
Graphics g = pe.Graphics;
Pen pen = new Pen(Color.Black, 1);
pen.DashStyle = DashStyle.Dot;
Point p1 = new Point(0,0);
Point p2 = new Point(0,0);
for (int x = BorderSize.Width; x < this.Size.Width - BorderSize.Width; x += GridSize.Width)
{
p1.X = x; p1.Y = BorderSize.Height;
p2.X = x; p2.Y = this.Size.Height - BorderSize.Height;
g.DrawLine(pen, p1, p2);
}
for (int y = BorderSize.Height; y < this.Size.Height - BorderSize.Height; y += GridSize.Height)
{
p1.X = BorderSize.Width; p1.Y = y;
p2.X = this.Size.Width - BorderSize.Width; p2.Y = y;
g.DrawLine(pen, p1, p2);
}
this.ResumeLayout();
}
}
|
|
|
|
|
Have you tried using ControlPaint.DrawGrid ?
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
ah thats much better. thanks.
|
|
|
|
|
Hi,
I would like to make a custom form class in c# (think Winamp). I am not sure where to begin; how low in the class hierarchy should i inherit to override the windows container?
I haven't found any attempts at this yet, but any direction to such would also be great!
|
|
|
|
|
I think Terrarium[^] will be a good start.
Cheers,
Kannan
|
|
|
|
|
Not sure what I did but the form controls in the Toolbox have dissapeared. The only remaining control is the pointer.
I am using Visual c#.net.... 2003 edition.
Does anyone know how to correct this ???
Thanks,
Ken
|
|
|
|
|
ken-l1 wrote:
Does anyone know how to correct this ???
Make sure you have a design surface active
<a TITLE="See my user info" href=http:
|
|
|
|
|
the toolbox has several sections in it including:
Data
Dialog Editor
Components
Windows Forms
General
if you are in the General section all you will see is 'Pointer'.. also make sure you have a dialog selected to edit like another user pointed out.
still a newb.. cut me some slack :P
-dz
|
|
|
|
|
I have a chunk of data that is pulled from a database. I want to insert a new column into the dataset, and have every cell in that new column have new values based on an existing columns values. IE:
-Price----Amt.------NewColumn
---------------------------
100 | 2 |
220 | 4 |
335 | 5 |
400 | 6 |
554 | 8 |
655 | 9 |
| | Say I want 'NewCol' to equal Price * 2.2, so the new data set would look like this:
-Price----Amt.------NewColumn
---------------------------
100 | 2 | 220
220 | 4 | 484
335 | 5 | 737
400 | 6 | 880
554 | 8 | 1218.8
655 | 9 | 1441
| |
I hope this isn't too confusing. It's really just like I would do using Excel. having a column's values based in part on another column.
How would I approach this?
Steve
McLenithan
Is Bert Evil? | Homer: "Hello, operator, gimme the number for 911!"
|
|
|
|
|
add an expression column. The way to do that is
Dataset.Tables["tablename"].Columns.Add("columnname",Type.GetType("the type like System.String"), "the expression like equal Price * 2.2")
so
Dataset.Tables["tablename"].Columns.Add("NewCol",Type.GetType("System.Double"), "equal Price * 2.2")
that's it
From Greece:
Dimitris Iliopoulos
dimilio@yahoo.com
|
|
|
|
|
Thanks for the reply. I am trying to do what you have shown but I am getting an error; Where you put System.String for the
'int' denotes a 'class' where a 'variable' was expected
I dont get that because intellisense is showing it should be something like you had shown.
Also how do I figure out the expression. Do I simply use the names of the database columns in a mathematical formula string?
Thanks for the help
Steve
McLenithan
Is Bert Evil? | Homer: "Hello, operator, gimme the number for 911!"
|
|
|
|
|
|
Completely new to C#.
can anyone give me a big picture on how Timer works in C#?
For example, what is the framework for me to do a certain job, say methodX(), every 5 seconds?
thanks in advance!
|
|
|
|