Create A Print Function?
Jul 28, 2009how to create a print function ....
View 3 Replieshow to create a print function ....
View 3 RepliesWhere can I find examples of the print, and print preview function available in Visual Basic 2008?
View 2 RepliesPublic Function random_key(ByVal lenght As Integer) As String
Randomize()
Dim s As New System.Text.StringBuilder("")
Dim b() As Char = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".ToCharArray()
For i As Integer = 1 To length
Randomize()
[Code] .....
I wanna print it like
s=textbox1.text or somethhing...
Write a function to print the Fibonacci value at a given position in the series.you should write two versions of the function both of wich must be named Fibonacci(overload functions).the first version should be implemented using a for loop.the second version should be implemented using do until.
View 3 RepliesI have create a CMS to upload all image to a folder using ed all my images to a folder using,
file.SaveAs(Server.MapPath("../images/") + advertID.ToString + "_" + i.ToString + fileExt)
Now, all images are saved and i forgot it create thumbnails. :(
I need to read all images at once and create thumbnails,
myimg = System.Drawing.Image.FromFile(imgFileName)
myimg = myimg.GetThumbnailImage(154, 94, Nothing, IntPtr.Zero)
myimg.Save(Server.MapPath("../Content/") + "Thumb_" + imgFileName, myimg.RawFormat)
I need this to function fast. I don't seems to know how to read these image names one by one.
Is there any tutorial that teach about how to create a print preview and report ?? I have only 2 weeks more to doing a project ?
View 1 RepliesI want to be able to have a print button on my form that when clicked, automatically prompts the users printer to print the form in it's current state when the button was pressed.
View 6 RepliesIm trying to create anther layer for the user to login by their fingerprint , but using any finger-print samples from the internet, so what software and the package i need to install in visual studio to get the program working
if any one could show me the all the steps for creating a login screen by finger-print that will be nice from them
Working with Database, create report and print
View 5 RepliesI need to create a driver that can be installed as a printer and instead of printing to a physical printer it needs to print to a text file. I have no idea how to do this. I have searched for an answer on these forums but so far I haven't had much luck. I know it isn't easy to create a driver in VB but I don't know if this is technically a "driver" since it isn't interfacing with actual hardware.
View 6 RepliesI need to create in my application various forms and lists containing formated text and print them out without losing formating (they can be many pages long).What is the best way to go round this (as Express Edition does not contain Crystal Reports).So far I figured to use RichTexBox for formating text, then print it by PrintForm control from Power Pack 3.
View 5 RepliesIs it possible to create a code that when a button is clicked it Print Screens part of the form (For example, location 3,4 to location 30,40) and then saves the image?
View 3 RepliesI have a snip of coding I need to use 4 or 5 times on my windows form and rather than coping and pasting the same code how do I create a public function where I define the code once and then just call the function name?
View 17 Repliesshow me how to create a function from the following code?
[Code]...
Given the following, what is the best way to create this function (I think the function declaration should make clear the purpose of the function...)
[code]...
Can I create 2 users and they have different function??Database base using is MS Access.For example I have "staff" and "admin".Staff can insert,edit and delete data only.Admin can check the total sales of the day.Can I do that in VB.Net and can somebody give me some idea or example??
View 3 RepliesIf there's a way to have a function, that i can call from any code-behind on my website.
for example, i want to be on any page of my website, and be able to call this function[code]...
I remember that C# editor has a powerful option that when we are developing in code and type a new method (operation) name for a class, we can create its body by clicking on ALT+Shift+F10 and immediately, it will be created for it's own class.
what about in VB.NET 2008 editor?
Their is a alfanumeric value of any lenght (string) and i want to replace its all characters with 'X' except right four characters.[code]I have created a function but got stuck:[code]please tell me a better fuction to perform such a operation
View 4 RepliesI'm working on my graduation project and within it i need a function gives me random ID numbers and random dates since 2008,01,01 untill now .. I'm done with the ID numbers but i couldnt find a solution for the dates
View 5 Replieshow to create a function.I've seen recently that creating functions is pretty easy and useful, rather than using each time plenty of code . However, now I want to create a function with two variables , BUT in some case I'd like to able to omit the second one..[code](that is by supplying only the 1st variable in the argument) I'd like it to round the value to its integer value .
View 2 RepliesI have a MustInherit class with some MustOveride Methods in it. When i inherit form that class, I automatically get the MustOveride Methods or properties. My question is, I want to be able, to inherit from a class, get my MustOveride functions and methods, but then with some code already in it. I've once seen a .net class that did it, when I inherited from that class, I got the methods, with some comments in it.
View 4 RepliesI am attempting to create a generic function that the students in my introductory VB .NET course can use to search a single dimension array of a structure.[code]...
My question is: Is there a way to reference the individual structure fields in the array from inside the function? I was trying to make it generic so that the student could simply pass their array into the function - their structure may be named differently than mine and the field names may be different.
I suspect there are other ways to deal with this situation, but I was trying to keep it to just a simple single-dimension array of a structure. I don't think it is possible to do what I want, but I wondered what others thought.
I need to create a function that will verify a password.The function will be named IsValid.
View 1 RepliesI want to create a global function to use throughout my application. Let say it's about the connection to the database.My code that i plan to use in my global function is:
myConnection = New SqlConnection("...........")
myConnection.Open()
So that I can call it to use in every form throughout my application. This can make me easy to edit the connection later.how to define this global function and how to call this function in the form.
I want to create a license key function for my application.
For example I want in this key to contact 2 values: registered_to, expiry_date.
I want the licence key to be some sort of large string like: 2349ASDGKLASD87ASDGALSDK8ASD80972K.
I would need to create some way to create keys use some sort of algorhithm that decrypts the key and grabs the registered_to and expiry_date values. It also needs to check that the key string has some sort of check digit like credit cards have, so no-one can just type in a few random letters/numbers and it accepts.
I am trying to create a new thread using an anonymous function but I keep getting errors. Here is my code:
New Thread(Function()
// Do something here
End Function).Start
Here are the errors I get:
New - Syntax Error
End Function - 'End Function' must be preceded by a matching 'Function'.
Is it possible to create a VB function with multiple outputs. Note: I am not looking for an array containing me three outputs or a variable using delimitters
View 3 RepliesI am working on a Notepad like text editor and I'm trying to put an Undo function in it. When you click the undo menu, I want to simply undo the last action (added char, removed char, paste, delete...). It doesn't have do remember all the past actions, I just want it to undo the last action even if the last one was undo... For now I have a button in a tool strip menu (tsmAnnuler) and my richtextbox (rtbZoneTexte).
View 2 RepliesI am trying to create a game using vb but don't know how to create a "save game" function. I was told something about saving to files but don't really understand it.
View 2 Replies