Advanced .Net Drawing Program?
Oct 19, 2011
Im looking to make an advanced drawing program in vb.net as a bit of a project to occupy my time.im looking to make one pretty much like Paint but with gradients and other features, but im at a loss as to where to find such a tutorial.
View 3 Replies
ADVERTISEMENT
Dec 23, 2010
I have a school project due in January to make a program in vb. The problem i'm encountering is making the actual login system. I only started using vb last year and that was purely console applications. So I am completely new to forms and I don't know ANYTHING...
The login system should be complex to an extent that it shouldn't just be a simple if statement. I have to make it so that users can create an account and that username and login will save somewhere where no one can access but vb can read from and to that directory.[code]...
View 10 Replies
Sep 28, 2011
I'm using using System.Graphics for my latest project (A simple 2D application). Problem is, it gets a horrible FPS and I'm only drawing 8x8 tiles (usually 10-12 is enough to bring it down to 12FPS).
A friend of mine suggested that I use DirectX. He also suggested XNA but I opposed because I don't want my clients to have to install the XNA distributional. DirectX is common enough (to my knowledge) and I can just include the dll's if I need to.
So, my search began. I've been looking only for DirectX 2D tutorials for VB.net. I've had no solid success thus far. In truth, all I need to do is be able to draw bitmap x at position pos.
I've been using System.Graphics and a hacked up bitmap as my buffer thus far so I'll go for any improvement that I can get.
I'm using VB.net so I'll be ok if you give my one for C#, I'm pretty good at being able to read it (and I have a nice converter too). I would just prefer VB.net to save time.
View 1 Replies
May 13, 2009
I try to implement undo in drawing program I want to save the bitmap after every drawing and push it to stack then when the user click the button it will change the image to the last bitmap saved in the stack here is my code
Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp
Xend = e.X
Yend = e.Y
[code]....
View 3 Replies
Feb 28, 2009
I want to implement copy, cut and paste in my drawing program (copy part of an image that is selected)I don't know how to start?
View 10 Replies
May 21, 2009
I want to implement copy, cut and paste in my drawing program (copy part of an image that is selected) I don't know how to start
View 5 Replies
Jun 3, 2012
draw individual pixels, without resorting to drawing a line and setting it's length to 1. Is there an actual ability to draw a pixel that is just 1 pixel big?
View 2 Replies
Feb 18, 2012
I need some code to draw a resizable, draggable rectangular cursor (or selection box) on a picturebox. I found some excellent code (albeit rather old) that does just that, but on a form rather than a picturebox. I have tried converting the code - basically moving things to the picturebox events (Paint, MouseDown, MouseMove etc). It nearly works but leaves a trail behind it when you move or resize the cursor. In other words, the selection rectangle is not being erased before being drawn in the new position.
Is there some fundamental difference between drawing graphics on a form and drawing on a picturebox that would cause this behaviour? Something like, when you invalidate a form and cause a redraw it erases what you did last? If not, then I just need to dig a bit further and work out how the cursor is being erased from the previous position.
Here's the original code that works fine on a form:
Private DragRect As New RectangleF(20, 20, 100, 80)
Private Adornments(7) As RectangleF
Private MouseInRect As Boolean = False
[Code]....
View 1 Replies
Jun 21, 2010
Say I have 3 Buttons, labelled: Unit 1, Unit 2 and Unit 3. When I click on any button I want a drawing of that unit to appear on screen at a pre-specified starting point. Thereafter when I press any other one of the buttons the unit drawings appear alongside each other in a line. So I could end up with:
[Code]...
View 4 Replies
Aug 17, 2009
With this line...
If PictureBox1.Image = My.Resources._2star Then
I get this error: Operator '=' is not defined for types 'System.Drawing.Image' and 'System.Drawing.Bitmap'.Is there another way to say = with images?
View 8 Replies
May 23, 2009
Is it possible to convert an object form System.Drawing.Graphics to System.Drawing.Image?
View 4 Replies
Jan 21, 2010
Here is my favicon code
Dim oURL As Uri = New Uri(e.Uri.AbsoluteUri)
Dim favicon As Image
If oURL.HostNameType = UriHostNameType.Dns Then
[code]....
The error is Value of type System.Drawing.Image cannot be converted to System.Drawing.Icon Is it even possible to make the favicon be the icon of the form?
View 4 Replies
Apr 3, 2009
im using an MDI parent form and MDI Child. how can i print the image that's inside a picture box that's inside the Child from a button that's on the Parent?when i try to use print preview or print dialog, i can't get it to recognize that the document is the picure inside the picture box. i've looked up this error message:Value of type 'System.Drawing.Image' cannot be converted to 'System.Drawing.Printing.PrintDocument'.[code]
View 6 Replies
Mar 23, 2012
I have a university assignment, The problem, well.. in the short anyway; i have this form which is for placing orders. There is an "add product" command and next to it a list box. what I would LIKE to achieve is being able to click on add and then a query would come up asking for the user to input a product ID then check either yes or cancel. once that is done, I would like the database to search products by ID (obviously) and then display the product in the list box. the list box may contain up to 5 products and no more. there is also functions to remove individual products from the list box as well as clear the list box all together. in addition to this mammoth task, I also have a label which requires a total price. this would be the price of all the items in the list box, not in the database.
View 3 Replies
Mar 12, 2009
here is a code i made for a tabbed web browser but i have a probem i want the tabs to write the name of the site that you visit?
Public Class Form1
Dim i As Integer = 1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim browse As New WebBrowser
[code]....
View 6 Replies
Oct 21, 2010
I have two tables:Orders OrderProducts - An order can have 1 to many orderProducts records associated with it.What I am trying to do (unsuccessfully) is to implement a GridView search using a LinqDataSource wherein the search returns Order results where any of the OrderProduct.Manufacturer columns contain a search query.
I was hoping the following would work, however it seems lambda expressions do not work within a Where clause of a LinqDataSource (in VB):
[Code]...
how to get this working within the LinqDataSource definition, or will I have to handle and set up a custom OnSelecting event?
View 1 Replies
Aug 16, 2009
Put some advanced Games on Form?
View 3 Replies
Jul 14, 2009
I'm working on a project that users can add new tabs, buttons, textboxes, Excel forms(existing or new) or sth. else to the application. How could it be possible to save these changes?
P.S. : I started to learn SQL usage, and planning to use SQL in my project to save additional inforamtion that users have added.(for example informations about team members)
View 2 Replies
Dec 7, 2011
I've got this control: [URL].. and I'd like to use the advanced autocomplete feature in VB.
View 6 Replies
Dec 20, 2009
i have an advanced web browser and i would like some codes.It has unlimited tabs but i have a few problems.when i click a link that open in a new window,it open it with internet explorer.When i add a tab and i go to msn.com and other sites,the document title is very long and one tab is the 50% of the webbrowsers tabcontrol tab page text.it's too long!I got an error while i was trying to set the selected tabs text length with a message telling:property length is readonly.If ComboBox1.Text.EndsWith(".swf") Then i want the selected tab to get filled by an axschockwaveflashobject at dock style.A code that makes an .mp3 link to open with an axwindowsmediaplayer on a new tab or at the current tab and a code for bookmark menu that keeps them after program close for the next use.I saw a video about the bookmarks,but i didn't understand lots from it.url...
View 2 Replies
May 11, 2011
at the beginning sorry for my english (=. Ok, I have two questions:
View 2 Replies
Oct 14, 2010
what I've been reading the past 2 weeks and I want to make a Multi File Downloader.y goal is to have a TabControl, inside each Tab I'll have about 3 to 5 (maybe 7) CheckBoxes, each CheckBox is tied to a TextBox where the url goes (I attached the GUI I have so far so you can see better how I want it to be).Now so far the downloader is working fine, I can download whatever I have in those TextBoxes and it is downloading it only when CheckBox is checked.Here's my problem I want it to be a MULTIdownloader lol not a single file downloader like it is acting right now.
So my question is how can I do so when I check 2 or more CheckBoxes it starts downloading the files (it doesn't have to be simultaneity, it can start downloading the first one then the 2nd one etc).Also how can I identify which CheckBoxes are checked and which ones not?
Right now I am using If/ElseIf to control the CheckBoxes but I wonder if there is a better way to do it, because I only have 2 CheckBoxes so far, to test and if I do it like I am now it's gonna be a loooong code.Here's what I have.
Private Sub btn_download_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_download.Click If CheckBox1.Checked = False AndAlso[code]....
If is too complicated how could I do so everything saves in the same location as the downloader is?I've been reading around the forum also the microsoft documentation about VS 2010 (I'm not gonna lie, I haven't read the whole thing,
View 3 Replies
Dec 8, 2010
i created a simple advanced search page for web application, i thought sharing it with you might help beginners the following is an example of an advanced search page for an employee database using VB.Net [code]
View 1 Replies
Aug 10, 2010
I made a change to my program this morning which worked properly before. The Targetframework was set to 3.5 and I thought let's set it to 3.0 that threw in some errors so I changed it back to 3.5.. however that's giving me an error as well now :S This is the error:
module 'Resources' and module 'Resources', declared in'C:mijnmapmijnmap2Resources. Designer .vb', conflict in namespace 'Resources'. and it's pointing to the dovents line
View 2 Replies
Oct 18, 2011
I need to run a small piece of java code (java is the only option in this case) I have the jar file in the VB.net resources as JSSMCL(the extension is not required to run it, of this I am sure :P) I know I use Path.GetFullPath(My.Resources.ResourceManager.BaseName) but no mater how i do it it fails, i have tried so many ways i have lost count! this is the command that i need to run:
java -cp "JSSMCL.jar" net.minecraft.MinecraftLauncher username false
View 2 Replies
Nov 27, 2011
I want to create an Advanced Media Player.How Can I to create an Windows Media Player without Controls ? I wan't to create my own controls ....
View 2 Replies
Apr 10, 2010
I have a server program. It logs all of the lines on the console textbox in their proper folder, named by their type: Logs\Year\Month\Day\Errors.txt There are about 7 types that it logs. All of these show up in the console window. However, I have check boxes that I want to toggle the types that show up in the console window on and off. For example if I want to hide the Error and System types, I want the rest of the types to show. I know I can do this simply, but if I re-check the boxes to show the System types as well with the others, I want it to show the logs in their proper place in the console window, and that I cannot figure out how to do.I am stuck on this problem and cannot figure it out. I know it involves much more than an If statement to display the types correctly in the right place on the console. Please help me out with some idea of what I need to do.
View 14 Replies
May 10, 2011
I'm trying to write code to download from an FTP site. I got it to work in some cases - mostly text files, but when the reader reads a value greater than 256 it seems to have difficulty. Right now I'm trying with a ZIP file, and the file downloads, but always says, 'File is Corrupted' when I try to open it.
[Code]...
View 1 Replies
Oct 6, 2009
I posted this thread a few days ago:[URL]..And you all just really helped finishing this class! Shaggy_Hiker advice was really Been working on this class for a time now I decided to finally publish it This class allows you to create your own TicTacToe game easily with this class. I know it's not so useful for your projects but hey, I had my time!
[Code]...
View 5 Replies
Mar 20, 2009
Say I create a new button on a form through
Dim Button2 As New Button()
Button2.Text = "My new button"
Button2.Size = New Size(100, 100)
[code].....
View 8 Replies