|
Seraph_summer wrote: t is necessary to clarify this conecpt.
Why is it ? .NEt works fine, if you understand it's inner workings or not,.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Seraph_summer wrote: hat .net languages (VB,c# and c++)
You might very well want to mention C++/CLI instead! The native (the original) C++ does not mix with any of these (has nothing to do with the .NET framework).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I'm not sure in all of this if you got the full answer. Put your VB control in a dll, import the dll into your C# project, and it will work fine. You cannot mix languages in a single project.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Thanks for all the 1 votes to my posts in your thread. Good to see you finally;
1. Realized how screwed you are in programming
2. Admitted your malicious intent
3. Rised to the occasion to univote me.
4. Realized you can't trick people by reregistering your name
Looking forward to your future failures in the programming industry,
Eliott A.
|
|
|
|
|
“A true man hates no one.”
I know nothing , I know nothing ...
|
|
|
|
|
Perhaps mad, syphilitic Frenchmen aren't the best source of quotes?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
It's not about the source , it's about the effect !
P.S :
Find the source for this one
I know nothing , I know nothing ...
|
|
|
|
|
Stark DaFixzer wrote: It's not about the source , it's about the effect !
P.S :
Find the source for this one
It's you!! (Or at least Google thinks so...)
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Last time I checked Barcelona was in Spain, not France.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
modified on Thursday, June 4, 2009 5:23 PM
|
|
|
|
|
And Corsica is not near Barcelona...
http://www.napoleonguide.com/ajaccio.htm[^]
Would you accept "mad, syphilitic Frenchmen Corsican honorary French dicators"?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Corsica???[^]
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Sorry for confusing you - I assumed you were refering to Napoleons' lack of Frenchness by refering to Barcelona. Hence the Corsica reference, that being where NB was born.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Maybe if we close the curtains and turn off the lights, he may think we're not in.
My failometer has shot off the end of the scale!
I seem to have misplaced my ban button.. no wait... found it!
|
|
|
|
|
Just ignore him. I reported him via the Microsoft MVPs I know last week, and they were delighted to get this information - I suspect they've been in touch with Chris; they do guard the MVP status rather well.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Do you know what, if any, action will be taken? Simply wondering out of curiosity. I would imagine that got them quite upset.
|
|
|
|
|
Knowing Microsoft they'll probably send Steve Balmer round to dance at him.
Mind you that would scare the hell out of me...
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I'm not sure what they could do, to be honest. Not much, I doubt.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
That's what I figured.
Pretty hard to stop the entire internet from adding a line in a signature on every forum that exists.
|
|
|
|
|
Hello,
Can somebody provide me a code snippet "To Change Windows Theme Programmatically using C#"
I know i have to work with UxTheme.dll and its Export Functions. Could you guys tell me what function to use and How to use it.
DllImport[UxTheme.dll , XXXX, XXXX]
Thanks
Aady
|
|
|
|
|
For uxtheme implementations, check http://www.pinvoke.net[^], scroll down the list on the left to find it
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
I got the functions list but thing is i donno how to implement these functions with correct Arguments ... so looking for some basic snippet.
Thanks.
|
|
|
|
|
You could do worse than learn to use google or CP search.
Here's a start.
Advanced UxTheme wrapper[^]
Find more for yourself.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
public static System.Drawing.Drawing2D.GraphicsPath Transparent(Image im)
{
int x;
int y;
Bitmap bmp = new Bitmap(im);
System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
Color mask = bmp.GetPixel(0, 0);
for (x = 0; x <= bmp.Width - 1; x++)
{
for (y = 0; y <= bmp.Height - 1; y++)
{
if (!bmp.GetPixel(x, y).Equals(mask))
{
gp.AddRectangle(new Rectangle(x, y, 1, 1));
}
}
}
bmp.Dispose();
return gp;
}
Then in your form load event handler
System.Drawing.Drawing2D.GraphicsPath gp = Resources.Images.Transparent(pictureBox1.Image);
pictureBox1.Region = new System.Drawing.Region(gp);
I know nothing , I know nothing ...
|
|
|
|
|
First, don't use PictureBoxs. Next, Color.Transparent is not really Transparent as you're expecting it to be. Transparent only tells the control to take on the background properties of the control that contains it. In other words, there is no true Transparency.
Having said that, in your example, the control in the middle will NOT be visible in the transparent areas of the top control. It'll disappear behind the borders that makes up the top control window.
A better option would be to drop a Panel control on the form, resized or docked as needed, then just draw each image yourself in the Paint event of Panel control. You'll have much greater control over the transparency.
|
|
|
|