|
Like when you press a button, can I imittate someone pressing it?
(And I dont mean just to run the code for the button press)
|
|
|
|
|
Button has a PerformClick method, but that wont animate the button being pushed.
|
|
|
|
|
Hi Everybody,
Can we use DLLs developed in VC++ 6.0 into C#.net
Thanks.
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
Yep (i guess), a DLL is A DLL, no matter where it was made.
If i'm wrong you can shoot me
|
|
|
|
|
What sort of DLL is it? eg. COM/Vanilla/MFC extension....
Regards,
Rob Philpott.
|
|
|
|
|
DLL is ordinary one. It contains C functions.
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
|
in shortcuts when we put &Open then O becomes underlined. I have around 20 forms. and on all those forms I made toolbar but on some forms & does not make the chracter underline instead it shows like & in the text.
can any one guide me how ..
Problem 2.
I have made icon on left and text on right. now in some forms like I have written "Save" it shows it like S... Can any one guide how to make it fix.
Rizwan Bashir
-- modified at 6:26 Tuesday 15th November, 2005
|
|
|
|
|
hi,
first of all i am new to this reflection.
i am writing a simple code (Compute.cs) that will be compiled & executed on runtime. i have no problem if this Compute.cs class does not refer to any other classes or dll. when the compute.cs class calls a method referring to another dll then when i compile it in runtime it says the referred dll or classes could not be found. (are you missing a using directive or an assembly reference?).
how do i specify in the Compute.cs class that the class that compiles it on runtime uses this extra dll?
regards,
rnv
|
|
|
|
|
|
thanks,
have not used these yet. i did not knew. i am new to these.
will really appreciate if u can provide a simple example.
regards,
rnv
|
|
|
|
|
How can i handle graphic object such as line, circle,... to catch click_event, etc? Thanks
Nothing
|
|
|
|
|
hi everybody ,
i'm trying to call a global function from another file in the project.
In Vb i usually create a module and put into my global public functions so i can access them from any other page.
Can anybody help me to make this working in C# ?
Public Module General
Public Function MyFunction(...,...) As Integer
......
return theInteger
End Function
End Module
the call:(from another page)
Dim xyz As Integer = MyFunction(...,...)
Charbel from Lebanon
|
|
|
|
|
There is no modules in C#. You can use namespaces:
namespace TestingNS{
//some declarations here
}
If you have one namespace defined in several files (or even projects, if they are referenced), all declarations are combined.
Also, there can be no global functions in C#, as all functions must be methods of some class. So you can use static methods:
namespace General {
public class GlobalFuncs {
public static int MyFunction(...,...){
...
}
}
}
then call it from other file:
General.GlobalFuncs.MyFunction(...,...);
if this ^^^ statement is located in the same namespace (General), then it can be written shorter:
GlobalFuncs.MyFunction(...,...);
Offcause you must decide, if this method must be static or instance.
|
|
|
|
|
Thank you Vitaliy , that's what i want.
By the way
when i try to create a new instance of a class in C#
private ClsCompany IVComp = new ClsCompany();
it gives me this message during the building
(The type 'ClsCompany' has no constructors defined)
#region "Constructors"
ClsCompany()
{
}
#endregion
while in vb :
Private IVComp As New ClsCompany
#Region "Constructors"
Sub New()
End Sub
#End Region
it creates the object.
Charbel from Lebanon
|
|
|
|
|
You could make the constructor public
modified 12-Sep-18 21:01pm.
|
|
|
|
|
given what you've shown there, i would have thought you'd get a message saying the constructor was inaccesible due to its protection level. I haven't used a module since vb6, but if they do what i assume they do in the new version i would be tempted to do the following
namespace <namesspace definition="">
{
public class Utils
{
public static string SomeUtilFunction()
{
return "Hello World";
}
}
}
In the cs file where you want to use the function:
do the using thing if it's a different namespace
then something like:
Console.WriteLine(Utils.SomeUtilFunction());
hth
Russ
|
|
|
|
|
Hi, All.
Here's the problem: I have an image and I need to clear portion of that image. How can I do that? I've tried FillRectangle with transparent and translucent colors with no luck. Graphics.Clear does the trick, when called with KnownColor.Transparent, but it clears all image.
|
|
|
|
|
Look don't get mad if im asking this coz im very new in c# ok so don't get MAD ok..Very Rookie
now to start this question how can i get the value of the textbox using C#.. in inserting a new Record.... please help meee
|
|
|
|
|
Hi its like this inserting a new record...
sqlConnection1.Open();
SqlDataAdapter sda = new SqlDataAdapter ("", sqlConnection1);
DataSet ds = new DataSet();
sda.Fill(ds);
//dataGrid1.DataSource = ds.Tables[0];
sqlConnection1.Close();
how can i insert a new record if i need to get the value of the textbox...
how can i do that? wtf:
|
|
|
|
|
I dont think the question is clear....
var = textbox1.Text
will give u the value. ie the text that you type inside the textbox.
if its a number you could convert it to int by
int i=Convert.toInt32(textbox1.Text);
is that what u asked ?????
Leejo
|
|
|
|
|
I need code and project about "reduce dfa" (with Graphics) .Please help me!
Thank a lot!
|
|
|
|
|
Yeah, just hand over and entire project, prewritten for you. Sure! Not!
Get out your credit card and try http://www.rentacoder.com[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can i change nfa to dfa in C# or VB
|
|
|
|
|