Create A Public Image?
Mar 5, 2009I would like to assignload a file to "Public jChart As Image" and use it through the module.
View 1 RepliesI would like to assignload a file to "Public jChart As Image" and use it through the module.
View 1 RepliesHow dan I dynamically create some public properties on a custom webcontrol.
For example, web control has 5 TextBox controls. I need a public property for each TextBox control to be able to set a specific property of the TextBox control.
I want to be able to loop the controls in the webcontrol and create a public property for each TextBox control.
I'm working through a book that does not provide a lot of example code and what it does provide is in C#. The book refs vs 2005 but I'm using vs2008. The author asks for the user to create a solution with two projects, one winforms and the other a class library (called DependentAssm). The class library is added as a reference to the winforms project In the class library, he asks one to create a new class called SayHelloComp. The project created a file called class1.vb, and a class called class1 which I renamed to SayHelloComp. I left the file name alone, that's ok right?
View 4 RepliesI am currently making a server monitoring application that pings the server to check its uplink, so far it creates all the picture boxes and labels for each server, and then pings the server, although I have a picture that I want to change dependant on the result.
Below is the code I am currently using, the problem occurs with the objectname variable which allows dynamic coding, where i get a error, saying that "Public member 'image' on type 'String' not found".
Private Sub Ping()
Dim i As Integer
Dim objectName As System.Object
For i = 1 To count - 1
[code].....
I have a query setup on the start form in my project - it looks for a user level (1 or 2 right now) I want to display/hide items on the form based on whether or not the user's permission (derived from this query) is a 1 or 2.
My question is, can i create a public variable out of this query to use on any form until the application is quit?
The query will be formatted something like this:
Dim
ssSQL As String = "SELECT UserLevel FROM [Employees] WHERE "
ssSQL &=
[Code].....
I have a class inside a class.I need to expose the properties of the 2nd class to other classes, therefore it is public.However, I do not wish other classes to be able to create instances of this 2nd class, it should only be instantitated from its parent class.I thought I could resolve this issue by making the constructor of the 2nd class private, but this even prevents the parent class from instantiating its child class! How can I work around this, do I have to make the constructor public and allow anybody to create an instance of the class?
View 3 RepliesI didn't write the function for the AutoCompleteExtender so I am not quite sure how to change it without screwing it up, so I figured I would ask here. Recently, it was requested that the AutoComplete show a product name & the date of launch of that specific product. I do not know how to add the date to the AutoComplete.
View 1 RepliesI have been told before that it is possible to create sections of code which can be collapsed and expanded like a normal Public or Private Sub, but containing multiple Public Subs So say I have code for a variety of textboxes I wanted to be able to collapse, how would I do this?
View 3 Repliesi am working on the MSDN tutorials through virtual labs and am encountering a problem with the very first tutorial regarding consoles. I am required to create two notepad files: Module HelloWorld & Public Class Person which I have done without errors having triple checked them. When the files are created I compile the HelloWorld.vb file and a .exe is created
I follow the rest of the steps and encounter an error when i try to compile the Person.vb file using the line vbc Person.vb/t:library/out:HelloWorldLib.dll as i am getting the following errors:
vbc : Command line error BC2001 : file 'HelloWorld.vb/t:library/out:HelloWorldLib.dll' could not be found
vbc : Command line error BC2008 : no input sources specified
I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
View 2 RepliesI am new in this forum, also new in VB.Net I need to create a public class for insert and delete data to database Public Class My_DBFunctions
[Code]...
Imports System
Imports System.Threading
Imports System.ComponentModel[code]....
how to declare "smsport" on class smscomms as public so that it can be access in class form1 or button1_click event.
How do declare a public variable .aspx web page that can be used in all the pages within my web application?
View 3 RepliesI am currently making a server monitoring application that pings the server to check its uplink, so far it creates all the picture boxes and labels for each server, and then pings the server, although I have a picture that I want to change dependant on the result.
Below is the code I am currently using, the problem occurs with the objectname variable which allows dynamic coding, where i get a error, saying that "Public member 'image' on type 'String' not found".
Code:
Private Sub Ping()
Dim i As Integer
Dim objectName As System.Object
[Code]....
create ISO image in Vb.net. How I am starting Code and Which Module I use in Vb.net Environment?
View 1 RepliesI've got some code from the internet to create a image with some text on it. I'm a newbie with this. I wil not have one color as background but a image ("bg.jpg"). I want this because im try to create a captcha.
[Code]...
Is there a fast way to create a tiled image? What I mean is there some 'magic' method that does it or should I manually calculate rectangles and call the DrawImage method the necessary number of times?
P.S. No, I can't use the ImageLayout.Tile itself because I'm overriding this property in a usercontrol.
I am programming a design surface where I add Image objects to the surface when an image is added it calls the draw objects command. It works fine I would like to figure out how to covert the object to an image to save it? Below is the draw sub used to draw objects onto the surface:
Public Sub DrawObjects(ByVal g As Graphics, ByVal Scale As Single)
Dim drawObj As GraphicObject
Dim i As Integer
[code]....
Is this possible? For example, if I did like[code]...
View 3 RepliesWe want to create a letter in GIF format with below attributes of GIf file.
Non-Interlaced GIF (CompuServe) 89a
2 colors (1-bit)
Horizontal Resolution 96 dpi
[code].....
If I have two images, how can i attach the other image to the other creating one image? Basically copy one image, paste it to another and save that image.
View 1 RepliesI'm using this snippet to create a blank image in a picturebox, but is it possible to have the image coloured so that I can see it. (I'll need to colour it later anyway).
.Image = New Bitmap(newPictureBox.Width, newPictureBox.Height) 'blank image.
Also if it is possible, I intend to draw lines, rectangles on the image (hopefully) and save the lot, so would I lose the colour, or would it get saved, or does it depend on what it gets saved as?
i would like to create a fixed size frame for user photos uploaded.
I've tought: i, can create a fixed sized image (200 width x 600 height for example), with my personal frame (top, left, bottom, right element graphics) , and in the center a transparency.
Ok, but i don't know how to merge the photo into the frame and save the new photo format.
Can I create an image editor similar to Windows Paint with Visual Basic.net 2005. I have tried to create one that can draw lines. But I feel little uncomfortable with my code.
View 4 RepliesIs there a way to create an image from a graphics object?
View 3 RepliesI am creating an application where when I click on an image I need to mark the place using the x and y co-ordinates given by the click and then after marking I put a red dot/circle on that spot and then I need to save this image to a file including the dot/circle I marked. I have tried saving the image to the file but to no avail, I have been able to only save the PictureBox image and that doesn't include the graphics. It is only the base image. I have tried to save it as a bitmap but have not gotten anywhere with that either. It seems whenever I call the image.save it takes only the value of the underlying image and saves it.
Private Sub BtnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCreate.Click
pointmarked = False
[Code]......
I am building a program which offers solutions to the travelling salesman problem (finding shortest tour between a set of cities while visiting each only once).
My program loads a bitmap image of a map into a picture box. From there, graphics which point out the cities as well as tour paths are drawn onto the map. My problem is that when the option to plot ALL cities is enacted, the user may choose to pinpoint a specific city with a separate control. When the user erases that pinpoint via an invalidation routine, though, it erases all graphics beneath it, which is undesirable. How can I make my tour graphics and city plots semi-permanent by drawing them directly on the image? I tried drawing them on a separate bitmap, but it 'covered up' the map image.
i am wondering how to create a work area that i can store images that i have saved or scanned in my program. and i would like a page number folder aswell so you can see how many pages are in each folder when you choose the folder. so i know what i want it to look like, i will have two group boxes one called work area, and the other called pages. so when i click the work area folder called mike, it will show that mike has 59 pages in his folder and i can scroll and click each page(number) to view it in my picturebox. i would like to be able to create as many work areas as possible. i just need to know how to get started
View 3 RepliesI am developing a software that needs a function to clone CDs to image files (preferably bin cue). I have googled but not found any piece of code, class, dll or activeX control that can do this.My best bet is to use CDRDAO compiled for windows
View 7 RepliesWhat is the best way to create a non editable image from a text string? Currently I am saving a number of strings to .csv files. Are there any options that do not involve buying additional products? I am using VB.net 2005.
View 8 Replies