Doggo120
Members-
Posts
23 -
Joined
-
Last visited
About Doggo120
- Birthday 09/27/1988
Personal Information
-
Occupation
Musician
-
Visual Studio .NET Version
Visual Basic .NET Express
-
.NET Preferred Language
VB.NET
Doggo120's Achievements
Newbie (1/14)
0
Reputation
-
I was looking at the possible issues and it was the parent form refresh method (as u said snarf... u are awesomely awesome). Is there any way to trigger a sort of Parent.Invalidate method within a user control? I've tried it and it gives an instance object error.
-
Hi again snarf! You're always so kind to hear my (and everyone elses) questions. The ultimate goal is to make a music score usercontrol (I managed to do it before, but I'm rewriting all the code to make it more efficient and organized) like picture 1 (lately I've been using a lot of pictures right?). BTW -> The labels in the pictures are normal labels, with transparent background and "sent to back" on the form. :) The thing is, if I want to make a chord, the labels would overlap and I would only be able to see the first one or the last one (this is because the font I use (called Sonora) combined with the size I use it (52 pts) takes a lot of "space" (like picture number 2, where u can see that behavior in the label's size) and that extra space is the one that does not allow the other labels to be seen :( The solution would be something like making the label be as big as the character, but I don't know if it's possible to achieve that. But..... thanks to dear snarfblam, I'm thinking I could manage all of that with the Form.OnPaint method. I will give it a try for sure! :p
-
Hi snarfblam! Yes, I'm trying to achivieve transparency. The thing is, labels and controls support transparency but only at a certain level. If I set two or more labels on top of each other the only transparent one is the one at the back (like picture 1). If the area surrounding the text is smaller (that is, if I make every label a little smaller) it would work. I searched on the web and found a project named TransparentLabel -> http://www.sourcehints.com/articles/creating-a-real-transparent-label-in-vb-net.html With this project I can create truly transparent labels and even place them in front of other labels and controls. I did the exact same thing of picture 1 with the new label and got picture 2. The only thing is the fact that it does not automatically clear the text that was before, and I don't which method or event or whatever to call. That's why I chose this new label! :)
-
Hi hi, yo yo! Hi everybody, I'm using some code to make a transparent label, but as soon as I change the text or the text align properties the previous text remains intact! (like the image) When I move it around though everything goes back to normal, but I'm wondering if there's something I can do to fix this issue. The OnPaint method is overriden like this: Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Try MyBase.OnPaint(e) e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias e.Graphics.DrawString(Texto, MyBase.Font, vPincelDeColorDeTextoLabel, vPropiedadesDeRectánguloF, vFormatoDeTexto) Catch vError As Exception Exit Sub End Try End Sub I tried using e.Graphics.Clear method but it doesn't work the way a want to. Any ideas or solutions? Thanks again!
-
haha, I wanted some specific structures and variables to have unique methods, for example: Dim HappyVariable as Byte (I wanted to convert a byte variable into let's say, some kind of string depending on its value) HappyVariable.ConvertToHappyString -> Here my extended methods come into work because I can convert any byte variable into what I want :) I mentioned the ToString() method because it behaves like that, it appears on pretty much everything you declare :)
-
Hi Plausibly, thank u for the response :) Actually I found out what I was looking for: Extension Methods!!! That way I can achiveve things like the one I posted before: MyStructure.Name.MYOWNMETHOD1
-
Hi again and again and again! I would like to have methods that behave like ToString: Let's say I have a structure or class that has some properties like 'Name' and 'Value'. How would I implement some methods like this: MyStructure.Name.MYOWNMETHOD1 MyStructure.Value.MYOWNMETHOD2 Is there a way to achieve this? I know I can do it this way: MyStructure.Name = MYOWNMETHOD1("Hello") But I was wondering if there's any way to do this like the first example. Any ideas awesome guys? :D
-
No worries, it had to do with minimum and maximum size hohoho
-
Hi again! I have a quick question. I dont know why, but every time my project builds for debugging the user control I made keeps getting smaller by 2 pixels. If I debug and then I try to make changes to my user control it shrinks. Weird and it does not make any sense to me!!! :confused: :(:( Thanks again!!! :)
-
Thank u soooooooooo much for your time! I couldn't open the file though, I have Vb.net :P But with the localization thing I have a better idea on how to tackle this issue. Thanks again! :D
-
Hey guys! I'm wondering what would be the best and most efficient way to write my program with two languages (english and spanish); so depending on your selection the *entire* thing would display text, information and such in the corresponding language (something like the picture). Thanks!
-
Thank u so much! :D You guys are awesome!
-
Yoooooo! I'm writing a user control and I have XML comments on almost every method and property. When I load the control for debugging the properties I created appear in the property window, but not their description (I uploaded a pic). If I could also change the name "Misc" by something else would be great too. Thanks guys!
-
Re: Altering Button down state ("pressed") with key Thanks both of u guys, the checkbox is an awesome solution :D
-
Re: Altering Button down state ("pressed") with key Ok, I tried it... it's ok, but I would like to see the 'real' button pressed state (because it changes very drastically from a Button to a square)