Making A Non-rectangular UI
Apr 15, 2009I'm making a non-rectangular UI and I've tried different approaches but still can't get the results I want. The following codes are for the user to move the form around.
[Code]....
I'm making a non-rectangular UI and I've tried different approaches but still can't get the results I want. The following codes are for the user to move the form around.
[Code]....
I'm trying to do a tic-tac-toe console application for practice. I created a case statement for the user to pick which square they want to fill in. [code]...
View 1 RepliesI would like to draw a rectangular outside the form using mouse position but so far, I only found out how to draw rectangular inside the form.
View 12 RepliesI'm currently using the following code to take a screenshot of my desktop:
Dim r As Rectangle = Screen.PrimaryScreen.WorkingArea
Dim bmp As New Bitmap(r.Width, r.Height)
Dim g As Graphics = Graphics.FromImage(bmp)
[code].....
I'd like some direction in taking a screenshot of just a specific area. The area I need is where the rectangle encapsulates. If 've played around with it for a while tyring to figure out how to just take a screenshot of the rectangular area, but can't seem to figure it out.
In a rectangular array which is correct or considered standard? dim array(row,column) as..or dim array(column,row) as. Not sure it actually matters outside of how it looks in your head.
View 4 RepliesPrivate Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
Label5.Text = "X:" & e.X
Label6.Text = "Y:" & e.Y
End Sub
Dim objectrect As Rectangle = rects(0)
Dim object_x As Integer = objectrect.X
Dim object_y As Integer = objectrect.Y
Label7.Text = object_x
Label8.Text = object_y
I discovered that these labels are not the same, the mouse move is more accurate. My mouse is currently pointing at the upper left corner of rectangular.
I'm working on a reporting section of code for an inventory app I'm making for my office.I call a text file, read every line into an array then populate information pages with what has been pulled from the text file.For reporting, I want to read every text file in the directory, reading each one into a multidimensional array.Thus I can call and report on each item, i.e.ItemArray(i,2) would be all systems with Windows 2008 EE..I have code that lists all files in the desired directory and counts each file, so I eventually get counts of how deep I need the first level of the jagged array to be. but not until after code execution. Basically how can I write each array of data to the jagged array.[code]But I get a null reference exception. "Use the new keyword to create an object instance".
View 8 RepliesThis is code i am applying for Draw a Rectangular on Form..same logic i applied for Panel it's not work..
[Code]...
I need some constant arrays to be ported like this one:
[3] - first dimension
[2] - dimensions in each first dimension
[3] size of string array is needed in the language i'm porting from, y - 0, o - 1, \0 - 2 = 3 new RevTable[3][2][3] =
[Code]...
I have a form that allows me to drag and drop pictures but I want it to check if the object is in the correct location
*curpic = the current picture that has been selected
If curpic.location.X > bx1.Location.X And curpic.location.Y > bx1.Location.Y Then
If curpic.location.X < bx1.Location.X + bx1.Width And curpic.location.Y < bx1.Location.Y +
[code].....
Is it possible to make a picturebox that is not rectangular? Such as a circle?
View 1 RepliesI'm trying to make a program where three race cars move around a track. with randomizers and timers, I only want to do one lap. My "cars" are pictureboxes. so the starting line's location is (400, 150). Here's the coding for the inside car:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TimerRight.Enabled = Not TimerRight.Enabled
[code].....
In languages like C++ and Java, it is possible to declare an array of an arbitrary size and then give it a specific size later in the code.
[Code]....
i read data from a textfile into a one dimensional array (string()) and refer to that later on to build a new list with just the lines i want. using chartData as New List (of String) I can load the List collection just fine. Now, I want to send the output to a table so I can bind it to a datagrid. using Split and AddRange breaks the one dimensional data up into new rows but I want this sort of thing:
"Row0 Cell0"->"Row0 Cell1 "->"Row0 Cell3";<line break>
"Row1 Cell0""Row1 Cell1"Row1 Cell3;<line break>
Note I provided for characters that can be used in a split function (-> and vbTab), which works, but the split in the List gives me a one dimensional array.
The VBA Code is
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 105.75, 54.75, 114, 65.25).Select
ActiveSheet.Shapes.AddShape(msoShapeOval, 441, 57, 117.75, 90.75).Select
For VB.Net, I tried looking the prefix for "msoShapeRectangle" or "msoShapeOval" in
Microsoft.Office.Core.MsoShapeType. But couldn't find it.
This is a problem like the puzzle - "find minimum number of coins to completely cover a piece of paper".
The difference is:
in my case RADIUS of the coins is variable (but all coins should have same radius).
Real scenario:
1. I need to draw circular shapes on a rectangular image.
2. Number of circles (N) is CONSTANT/ User input
3. Size of image (S) is CONSTANT/ User input
4. The program should find the MINIMUM RADIUS (R) that is needed to draw N number of circles on an image of size S, so that, the image is completely hidden behind the circles.
This is NOT a puzzle/assignment that I'm trying to solve.This is part of a larger project that I'm working on.
I don't need any drawing code. I just need the code/algo to find the radius.
I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...
Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.
Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)
Here is an image of one of many MPCs but one with a directory - [URL]
I have a bitmap displayed in a picturebox.The bitmap is a moderately complex image. It isn't a solid color, nor is it some repeating pattern,but it is a picture with a very narrow range of colors (all blue).I have a way to alter the whole image in a suitable fashion to indicate that it has been selected.What I would like to be able to do is alter a rectangular portion of the image in some way.Ideally,I would be merging in a semi transparent color such that a segment of the image would have a different appearance to it.
View 7 RepliesHow do I make the edges of a non rectangular form in vb.net (2010) to be smooth. I have used regions and transparency key to create the form cut out but the edges
View 2 RepliesI have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did:
I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.I opened the project properties and went to "Assembly Information" and checked "Make COM Visible". I went to "Advanced Compile" options and targeted .Net 2.0 (it's very simple code).I then removed all references expect for "System".I built the project (no warnings or errors) and copied the DLL out of the Bin folder into C:WindowsSystem32 I ran RegSvr32 to register the DLL and got the error: The module "MyDll.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "MyDll.dll is a valid DLL or OCX file and then try again.
Just need help converting this .bat to vbscript. cd
[Code]....
Just need it to go to each user names directory when logging into a terminal server and removing all items in there respective folder. I'm assuming to user the UserString where the "user.name" is but not sure how to do this.
I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works.two off the top of my head are
1) having to prefix my immediate window queries with ?
2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to actually see the value is there a way I can make it behave like C#?
I'm an absolute beginner at programming and VB, and I'm starting a course in software development. We were given tutorials to do before the start of the course but I'm having extreme diffictulty with them because they're written for VB 6 and we were told to download VB2008 express since we're using that for the courseI got here? I understand basically what it does, but it gives errors in VB2008 and I can't get the add button to stay greyed out when there's nothing in the name field. I also can't get a message box to pop up when I click Add because 'answer' isn't recognised. I also don't understand what "Following code is entered in the .... event". What's an event, how do I enter it in it?
View 3 RepliesWhat I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?
View 4 RepliesIf I For Example Made a New Control Like :
View 4 RepliesWhere can I make a new form? Also, could I make it so the user can only see one but then it switches to the other one on a certain event?
View 2 RepliesI have made new MDIChild and with textboxes on the form. When the form loads...it will open data saved from a text file to the textboxes. However the data does not load from the text files. When i take out the code, it works fine...but it needs to be a mdi child...the code i'm using is
Dim NewMDIChild As New ViewCustomer()
NewMDIChild.MdiParent = Main
NewMDIChild.Show()
the form that I need to load the info is "ViewCustomer" and the mdi parent is "Main"
I Have a simple notepad, and a toolstrip, inside the toolstrip, it has an option to find and replace the text in textbox one. I made a new form, inside that project, and named it find. Now how can I make it so that when they click on that toolstrip option it opens that form? Also, will I have any troubles being able to find the text since they are two different forms?
View 10 RepliesI used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos
View 3 RepliesIm making a shooting game in visual basic 2008. I have two questions, and they're the two bits of code I just cant fgure out.
View 3 Replies