I am working with graphic methods. I am trying to create a piano using brushes, pens, and rectangles. I have 14 white keys and started making the black keys. For some reason I cant get the black keys to overlap the white ones. Is there a command to send the black rectangles to the front?
I'm trying to bring a transparent user control (being used as a drawing layer) to the front, over a page that will be playing video.Me.BringToFront() didn't seem to work, and when I tried Me.SetTopLevel(true) in the load, this gave me an InvalidOperationException. Here's what I have so far, sorry for the commented lines.. lots of trial and error (I'm very new, just an intern at the moment)[code]
Given a rectangle of width w and height h. and a coordinate x,y in that rectangle I would like to identify which triangle I am within.
i.e. the function should take parameters(x,y) and return a,b,c,d or a zero based number representing that triangle index i.e. (0=A,1=B,2=C,3=D) if they are in that order.
I think this would be something like >= the formula of the red line and >= the formula of the green line?
I'M creating a kind of photo viewer, and I cannot figure out how to orient the scroll buttons with the photos I want to draw because they all are different sizes.This is really hard to explain so please ask questions if you don't understand.I'M thinking if i could draw every photo on a single rectangle and then the scroll bars will position that rectangle up or down. but is there a way to make a rectangle inside another one so it only shows inside that rectangle?
The project im working on for school im setting up a bill statement..depending on what letters are put into the textbox's should change to the num that is set for the variable letter. This is the code i have right now and its giving me 2 issue's. One is that when it gets to the line changing input1 to num1 it gives me an error saying that cannot convert from I to double or int type. Second problem im having is that the value's are not being converted to numbers. Its staying as lowercase letters and therefore not doing the math.
I'm trying to code a button, and I can't seem to get the addresses of the data fields within access. I have already linked to the particular database as a data source. I want to write new information into the data tables.
We've migrated the application from VB 6.0 to VB.Net If more than one MDI child form is open, a mouse click to an inactive form will not bring it to front unless I click on the Tiltlebar.
How do you bring values from one form to another? Ive a car price which i need to carry over to another form as i have check boxes which if selected will change the price. How do i solve this?
My project is in VB.Net 2003. Actually it is a converted project from Vb to Vb.Net. If we run the application windows is not in focus, window is going to background. How to resolve this error?
I don't know if this is the right area for this question or not...Whenever I click my asp button on my website it brings me back to the top of the page... Is there any way to change that?
I have the following query that should be bringing back a single date, however, it is bringing back the first date in the table, completely ignoring the Where clause.
'Get days pending Dim AgePC As String Dim sSQL As String = "SELECT [DateStamp] FROM [Activities] WHERE " sSQL &= "[ClaimNo] = '" & Me.txtClaimNum.Text & "' AND [Activity] = 'PCAC' OR 'PCTE'" Dim conn As New System.Data.OleDb.OleDbConnection(sConnectionString) Dim com As New System.Data.OleDb.OleDbCommand(sSQL, conn) Try conn.Open() [Code] .....
I'm having a problem when I'm bringing up a hyperterminal session and using sendkeys.send I'm using process.start and it will show the first dialog to make the call....all is fine. You click OK and another dialog pops up with a DIAL NOW button.
I was wondering if there's anyway to color stuff in a textbox? example: I have a big textbox and if I type hi in that textbox I want that text to become grey, and if I type bye I want the text to become red, any ideas?
btw, I took your advice from my latest thread and installed a stable version of 2005
I did some thinking and come up with the idea "if textbox1.text ="hej" then" set a color but then I realized the whole text would become to coded text, hmm..
i'm trying to get a label to have 2 colors.ex. of label text: now editing: (written as the set color) trujade.html (in a new font color) that way, if i'm editing, let's say a css file, and i have have the .css file extension in a different color format from the .html extension, i can easily notice if i'm editing a html or a css file just by looking at the file name color.
I have a picture that is the map of a circuit [URL]. Now I want a Square to follow that circuit. I have tried some things but I couldn't get it right. How would you start? And how do you access the color values of the "line" to follow it with the square? Or is that even the wrong way to do it?
Private Sub lstKleur1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstKleur1.SelectedIndexChanged Dim Geel As String[code]....
i want the following: there are four items in my listbox: Rood, Groen, Geel, Blauw (these are dutch for red, green, yellow, blue). and when i click one of these, the button (Kleurknop1) needs to get the right colour. but when i click it now, it just keeps getting green, no matter which one i click.
I don't know how to add colored text to a richtextbox.
To make already existing text colored, I have tried things like:
RichTextBox1.SelectionStart = RichTextBox1.Find("colored word") RichTextBox1.SelectionColor = Color.Blue RichTextBox1.SelectionLength = 0 ..so it will change the color of the found word.
The problem is, when the "colored word" exists multiple times in the textbox, it will never change theirs color. It only searches for the first "colored word" and it wont affect the others.
It would be even better when someone knows how to directly add colored text instead of changing it when it's added.
I am trying to wrap my head around getting some blinking colored text and lasting for 3 seconds on the screen. I'm creating a game where you hit submit and if the answer is correct a label with popup and blink 3 different colors for about 3 seconds also a groupbox background color change. I have found many different ways on here how to do the blinking text. I just can't figure out how to do it for 3 seconds and then disappear. Here's a general idea of the code
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On the left side margin there are some colored lines (green and yellow). My program shows no errors, warnings or messages but when I execute the subroutine it seems to skip the rows with the colors in them.
On the left side margin there are some colored lines (green and yellow). My program shows no errors, warnings or messages but when I execute the subroutine it seems to skip the rows with the colors in them.
I have two listboxes. One for unselected bound to a datareader and one for selected. It can move all, some back and forth. I have the move buttons in an update panel and generate a report on a button click. I have this working fine. What I need to do now is color the items red or blue based on a third value from the datareader. Then add buttons to move all red >> / << or all blue >> / << Unfortunately, I can't post the code. I'm using VB.Net 2.0.
I do have the User Control from a previous Visual Basic 6.0 project that allows certain colors to become transparent. But what I'd like to find out is, how can I make a certain color combination transparent using a User Control in Visual Basic 2008 Express?