|
I think it's not the suggested solution to your problem but i made all sorted of buttons like this:
You make the button in a applic ( like Photoshop or Paint LOL )
( You can even make 2 Button-Designs ( a highlighted and a non-highlighted ) )
Then you put a PictureBox on the form.
With the Picture of the Button( the background-color of the form must be the same as the background-color of the button-picture )
So, you can make a onClick-Event and an OnMouseOver and an OnMouseLeave-Event
On MouseOver you load the highlighted Button-Picture into the box and by a MouseLeave with the non-highlighted ...
There are certainly 10000 components of Buttons who changes the color, but in the do-it-yourself-way you can decorate the button as you want
Regards
|
|
|
|
|
Hi
i use a button.and put a image on it the image has a rounded button shape
and extra color appear to make a full image .the exrta color can be hide by alfa channel.
plz tell me how to create a rounded button with a rounded image
Parshant
|
|
|
|
|
Save your image as a format that supports alpha. For example, .png supports alpha channels. Once saved with alpha, displaying that image in a control will retain the alpha channel, no extra work required.
In order to do a rounded button, though, you'll need to custom draw a button. There are some articles on this website about drawing rounded rectangles, I suggest you do a search.
|
|
|
|
|
and plz tell me how to make alpha disable
|
|
|
|
|
how can treenodestate is related to treeview with accessing the check box in C# VS2005
dcjoshi2
|
|
|
|
|
I'm not sure I understand your problem. Could you elaborate?
|
|
|
|
|
Hello
I´ve got a static library lib that is compiled for running in MS-DOS(it must run in MS-DOS for detecting some drivers that are only in DOS). How can i call it from .NET or from C++? From C++, I would create a DLL that will be called from C#.
Best regards,
Borja
|
|
|
|
|
Look at PInvoke
only two letters away from being an asset
|
|
|
|
|
Please i need help and the code of the folloing specification bellow:
Make a function ReadNumber with the following specifications:
int ReadNumber(char g[])
{
// PRE : -
// POST : the variable g has been filled with character 0.. 9 ("digits only")
}
Functional requirements:
· there are no "leading" zero's
· the function ignores all "leading no digits"
· the function returns immediately as soon as "digits" are not followed by "digits" (THEREFORE THE FUNCTION DOES NOT WAIT FOR a RETURN or something like that)
· as one or more leading zero's are followed by a NOT "digit" the function returns 0
Non functional requirements:
· You are not allowed to use any temporary arrays
· The maximal length of the string is 100
remarks:
· Write down how you want to test the function.
· Give your test inputs to test all possible cases.
· The function must be fool-proof and protected against too long input strings.
· DO NOT START TO CODE IMMEDIATELY
· THINK ABOUT IT AND WRITE DOWN A PLAN TO STATE HOW YOU WANT TO TACKLE THE PROBLEMS.
Example main program:
void main(void)
{
char number[MAXSTRING];
ReadNumber(number);
printf("%s", number);
getch() ; // wait for a key to quit
}
Roland
|
|
|
|
|
Why dont you go ahead and try your own homework, posting specific difficulties as they arise.
|
|
|
|
|
I have a file that contains the following (code in functions removed for brevity). Let's call this file "EntityTable.cs":
using System;
using System.ComponentModel;
using System.Data;
using System.Reflection;
namespace MyApp.DataAccess
{
public abstract class EntityTable : DataTable
{
[DataObjectMethod(DataObjectMethodType.Select, true)]
public abstract DataTable Fill(object parameter);
protected DataTable GetDataTable(System.Collections.IList list, Type typ)
{
DataTable dt = new DataTable();
return dt;
}
}
}
I then have this file (again, code not dealing with this wquestion is removed for brevity). Let's call it "MyPage.aspx.cs";
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MyApp.DataAccess;
namespace MyApp.Data.Employee
{
public class CMyEntityTable : EntityTable
{
public override DataTable Fill(object parameter)
{
return blah blah;
}
}
}
The code won't compile because it can't find the EntityTable class, and Intelisenseless doesn't see it either. I'm new to this C# stuff. What the hell did I do wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is MyApp.DataAccess in another assembly? Do you have a reference to it in your web project?
only two letters away from being an asset
|
|
|
|
|
Yes, and yes.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John, if the other assembly (the one containing EntityTable) is referenced, you should be able to see it. For some reason you're not, so something is wrong.
There's a little keyboard shortcut that may help here. In your CMyEntityTable class, place the caret on EntityTable inheritance declaration. Hit Shift+ALT+F10. Does anything popup? If the type is available in some referenced dll, but you don't have an appropriate using statement to import the type, this key combo will drop down with options for adding a using statement.
|
|
|
|
|
John Simmons / outlaw programmer wrote: public class CMyEntityTable : EntityTable
see if this works
public class CMyEntityTable : MyApp.DataAccess.EntityTable
led mike
|
|
|
|
|
Hi!
I'm wondering if there's a way to read an application into memory from another one and launch it there?
The scenario is, we have two files, one is compressed. Can the other one uncompress it into memory and execute it (that is, without extracting it onto the disk)?
/ Mike
|
|
|
|
|
Hello
Uncompressing the exe file directly into a memory block won't be much of a problem. what really faces you is that you want to take over from the program loader, which is -I think- the biggest OS hack you can think of!!
Exe files aren't copied into the memory as it is. There is a part of the os that is called the program loader which reads the binary data in the exe, then allocates memory blocks accordingly. One line in the exe may allocate one byte, while another may allocate upto 4 gigabytes, or even more?!!
Doing this in pure C# is almost -if not really- impossible. You are asking for very low level programming. This means that you not only manipulate a free memory block to inject your exe -aftr modifying it as the program loader would-, but you have to manipulate some table -I don't remember its name at the moment- to register this block of memory as a working independent process!!
If you really found a way to get out of this mess, I'd be eager to read an article about it!!
Regards
|
|
|
|
|
Hmmm, okay, but is it possible to make the program loader load the program from memory instead of disk? That would solve the problem.
|
|
|
|
|
Well, again not in C#.. If you have some C++ backgrounds, you can look up CMemFile class in your MSDN. Maybe it helps.
Regards
|
|
|
|
|
Using code DOM there is the ability to create an application on the fly essentially. Don't know if it would apply to your situation
only two letters away from being an asset
|
|
|
|
|
hi,
i need to swap between forms, im looking at 3 screens on (yes realy screens attached to pc)
on each screen there is a different form, but in a menu i can choose diffent forms to look at, only the 3 most always remain the same,
so if i swap from form on the first screen it needs to close the form that was there befor and check if its not the form form screen 3,
realy a bit fussy....
i found a example but its in vs 2003:
http://www.codeproject.com/csharp/applicationcontextdemo.asp[^]
and i'm not sure how to implement this in my existing application.
any body has tips??
thx
|
|
|
|
|
faladrim wrote: (yes realy screens attached to pc)
I have 5
So you have several different forms in your app and you want to change which one has the focus ? Or you have several different apps running ?
If Marc's 2003 code does what you want, it will work in 2005 as well.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thx,
it's more like a perant child thing,
i have one app with several forms
one is a visualisation of a factory, this is the one that always should stay
and in a menu bar you can choose several others like:
logs, history, orders, alarms, .... these are changeble on the two other screens
i think for this i should work with parent child not?
the perant is the form with the menu bar, and all the others are the childern
you think this shoud work?
ill know it monday :p
-->> its weekend
|
|
|
|
|
Hello,
I have to made some application in which I'm using MDI forms. Like in first form I have two buttons say button1 and button2, from here I've to navigate to a MDI parent form and in it the child window regarding the respective button clicked should open. I'm struck here as i dont know how to perdorm this action.
Can someone help me please...
And yes Please give code rather than simple suggestion
Thx n regards
PARAG
|
|
|
|
|
Hello
I don't really think I get you!! Do you mean you want to activate a second MDIchild when a button on the First MDIChild is clicked?
Regards
|
|
|
|