Simple Paint Project Wont Work
Jul 8, 2010Can any body tell me why this simple paint project wont work.
View 1 RepliesCan any body tell me why this simple paint project wont work.
View 1 RepliesI have a little question about the following Array in my project:
Dim mycuts() As String
I have certain paint method in my code that may only be executed if the array is not empty and has values in it: I have tried to achieve this in this way:
Private
Sub
xxx_Paint(ByVal
sender As
Object
[Code] .....
i used to make object of paintdotnet class in my project i.e in vb.net on button press event
Dim m = New MainForm()
m.Show()
the form code of paintdotnet get called successfully meanwhile paintdotnet used to search for resource call Resources class file which internally call PdnResources class file and code below shows exception
PdnResources
{"Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.\r\nbaseName: PaintDotNet.Strings.3 locationInfo: <null> fileName: PaintDotNet.Strings.3.resources"}
[code]....
if i used to run paint.net standalone then it works fine without any exception/error
I have a UserControl that has a ProgressBar on it. The purpose of the UserControl is to be able to show the progress % on the ProgressBar as text. To do this it uses the MyBase.Paint event. To make it work the ProgressBar is made invisible and the UserControl is 'painted' with an image of the ProgressBar and then the text is painted on top. The UserControl has a Value property that is passed through to the ProgressBar.Value property.
I use this UserControl in two places, on a Splash form (not a standard Splash Screen) and also on the main form of the application. It works on the Splash form but not on the main form - by work I mean that changes to the ProgressBar.Value property cause the ProgressBar to show its progress. The cause appears to be that in the Splash form case the MyBase.Paint event is called as a consequence of calling Me.Refresh in the Set procedure of the UserControl.Value property, in the main form case it isn't,
i.e. Me.Refresh isn't causing MyBase.Paint to run.
The main form has two BackgroundWorker components. The first gets called (RunWorkerAsync) from Form_Load after the Splash form has been shown. The BackgroundWorker.ProgressChanged event updates the Value property of the UserControl and it works exactly as intended. The second gets called as a result of a user starting an operation and again the BackgroundWorker.ProgressChanged event updates the Value property of the UserControl but MyBase.Paint doesn't run so the ProgressBar remains resolutely static.
Any ideas why it won't respond to Me.Refresh in one case but does in the other? Happy to make any of the code avaialble but didn't want to fllod the first post with reams of it. Here's what I think are the most relevant code sections. First the UserControl
[Code]...
I am trying to get a query to work with Visual Basic 2010 Express addition I have pasted the code below but it just errors out with to many arguments I have taken this sample from a reference book but cannot get the darn thing to work. I have looked all over the net and Microsoft for a solution but still no go if any one can help it would really be great. BEP
Private Sub FillBypeeps1ToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FillBypeeps1ToolStripButton.Click
[Code]...
I am making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print.
MsgBox Example
Public Class Form1
Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick
Dim Pizza As Integer
[Code] .....
Say I type in 6 and 6 I'm getting errors saying Example: Conversion from string "youranswer is 12" to type 'Integer' is not valid. I've tried many things, but it's not working. I want to know what I need to do to get it to print out how I want it. Do I need to do some conversions properly somehow?
Can anyone tell me what is wrong with this code? It looks OK to me but the GetImage function returns the same image irrespective of the filename passed to it (the one corresponding with Id=2 which is the second one found) [code]
View 3 RepliesMy Com1.text has nothing in it but yet the button1 is still visible when it should be false and not showing. This worked fine in vb6 using command.caption.[code]
View 14 RepliesHow to create a Paint program with all the functions of Microsoft Paint?
View 5 RepliesSo i know this is more Math related but it would make life so much easier. What i want to do is enter 2 times into 2 text boxes and then subtract them from eachother to find out the hours inbetween as a decimal.
View 8 RepliesHow can microsoft paint(or any other painting software) be included in a VB.net project? I need to used its functionalities to maipulate jpg and movie file. Is there any ways this can be done on VB.net (or Visual Studio).
View 2 RepliesIm a user of VB 2005. I had a problem with Simply run a project (Even Without any code in it). Indeed when i Creat a new project and i want to run and debug it (with F5). The information box show that cant debug. and because of that, the program may not run.The Message in information box is here (in Appendix).I try it with VB 2008 (But didnt work). After i Reinstall all of VB and Install again, but my problem existed even now.
View 3 RepliesThis is newbie VB question. My son is learning VB and I am learning with him. We have RichEdit control application (non WPF), where we input text, formatting its Style (bold, italic, underline, etc.). Our next task is to save the text together with its attributes into the file. The question is: what type of serialization is preferred at this case?
View 3 RepliesI'm sorry if this is in the wrong forum or has already been asked, but I'm having a problem creating what should be a relatively simple code for an Excel Project. Essentially, the code is supposed to check if a certain column has Y in it and then copy that entire row onto another sheet and then move on to check the rest of the original sheet. This version of the code seems to do everything but actually populate the cells with the information. Every other attempt I've made has ended with "Application-Based or Object Based Errors". I've worked on this code for a few days now and I just can't seem to get it right. What am I doing wrong?
Here's the code:
Sub PopulateNewSheet()
i = 2
Do While Worksheets("Main List").Cells(i, 2).Value <> 0
[CODE].................
I have created a simple project where I have two forms, one a data entry form where a client name, address, city, state and zip are entered into textboxes. Then, the user clicks a button to add all this data to the datatable via a newrow. The second form includes a datagridview to show the datatable. However, I cannot get the code below to work to update the datatable. I have a button to click to check to see if the data is entered and it returns an error that no row exists.
View 2 RepliesIm trying to make a simple send key system on my project but it dosent send to the window in in why ?
SendKeys.Send(X)
My.Computer.Keyboard.SendKeys(X)
I want to start a Windows Forms Project (VB.NET) using a simple text editor like notepad. I'm not interested in creating a button and other controls from scratch, I just want to know how to create a form, initializing controls without using the wizard.how to use command-line to compile the whole project?
View 2 RepliesI'm using vb2008 with DB MSA2007 (save it to MSA2003) on Seven(7)System After I create my project I build it(make exe). then I took the file of project (application) and the DB from Debug Folder.
I tried to run this application with DB on another computer it's system is seven and MSA2007 and work very well. then I run it on pc it's system XP and MSA2003. it showed this error
Application Error THE APPLICATION FAILED TO INTIALIZE PROPERLY (0XC000135). Click on OK to terminate the application
Better Explaination of question: Is it possible to work on the same vb project at the same time?
I searched over google for help and I found a forum but it looked very complicated and I diden't feel like screw stuff p so can someone please give me a link or tell me how?
If i use custom images in my programs from my pc. After i publish this and give it to my friends they get errors due to them not having the images. How do i go about adding the images to the application or just generally how you resolve this?
View 7 RepliesI use a Vb 2008. I make connection with DB Ms Access2007. it show me this error couldn't find....... DBthen I change the DB Ms Access2007 to MS Access2003, and it works very well
View 9 RepliesI made a small windows project under visual studio 2010, It working perfectly with
windows 7 , when I tried to run it under XP didn't work :-(
what can I do to have it work in both windows 7 and windows XP , or at least to work under
I followed the Quartz manual to the dot and still I'm not sure why it isn't picking up the GetDeal.vb (Quartz job) in Global.asax. It never went into the _scheduler.JobGroupNames and _scheduler.TriggerGroupNames loop as follows:
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim factory As ISchedulerFactory = New StdSchedulerFactory()
_scheduler = factory.GetScheduler()
_scheduler.Start()
[CODE]...
I've attached a link to download my Project here. how to make it work?- [URL]
i would like some help with how to start with my FINAL YEAR project work dubbed "SCHOOL TRACKING SYSTEM" . I am so much lost on how it shoud be like and what to actually do.
View 2 RepliesI'm using Microsoft Visual Studio 9... Which uses Visual Studio 2008.I would like to re-work a previous project without changing the original to which end I'd like to make a copy of the original, with a different name obviously.
View 2 Repliesi download subsonic 3 today (subsonic 3 preview 2) but this don't work in vb project.i think because .tt file (for generation) is C# template so this don't generate vb code.
View 1 RepliesHow can more than one programmer work on the same project at one time? is this possible? it surely must be possible??
View 2 RepliesI'm looking around and I "think" I'm reading conflicting statements about MonoDevelop's ability to support a VB.NET project. Some places say it's not possible yet, and other places say that you can with MonoDevelop V2.10... unfortunately I can't seem to find this elusive v2.10.
Do any of you know if this is currently possible (even if I have to install a beta)?
Have anyone worked on a project on 2 different computers with different version of Visual Studio Express?
In my case, I have made (and still working on..) a project in VSE2008, which I have installet at my job-computer.
At my homepc I have VSE2010 installed. I am a bit afraid to try working on that project from another version of the Visual Studio..
i am doing an internship for which i had to make a code in vb. i am using vb 2010 ultimate. the code is ready n bug free. it does what it is supposed to do on my system. how should i transfer it onto my mentor's system because he needs the code for day to day activities. his system has v1.something for .net framework. mine is v4.something.i have tried sending him exe file generated. didnt work due to the difference in versions of.net framework.then i read bout package and deployment wizard. vb 2010 ultimate doesnt have that wizard. i tried publishing it. gives me an error "WindowsApplication1 has stopped working." this is on my system and not my mentor's.
View 7 Replies