|
Carriage Returns Did the Trick...
Thanks Alot!
Adam Downs
|
|
|
|
|
Hey Guys,
I made an application in which i had used dynamic generation of picture boxes. I have one picture box and the dynamic generation of the picture boxes are duplicate of the one that i already have. Even then the performance is really not good and it takes hell lot of time for the thumbnails to load in the picturebox.
Is there is good logic that i can use for this. Anything that just loads up everything instanetaneously?
Thanks !!!
Ankit
|
|
|
|
|
The performance of the PictureBox is dependant on the ORIGINAL size of the image your stuffing in it. If you're telling the PB to load an image from a file that's, say, 3000x3000x32bits, it'll take a while to load, even though your probably scaling it down to fit in a box that's 100x100.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
IF you are doing anything non-trivial with images, you should abandon the picturebox, and draw it yourself. And yes, use the DrawImageUnscaled method for speed, and make sure your image is the right size, so you don't waste memory.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Dear Friends,
Seeking help from Pros on how to write application using .net 2005
for a Mobile computer running windows CE.
Application also need to have a databse.
There are few of articles. But difficult to understand for a beginer
always share to enhance your knowledge...!
|
|
|
|
|
i want to make a cyber cafe software almost i did but i don't know how to give permission to start the timer to the client in netwrk.the sever can watch all activity and lock and unlock client computer in lan if any body have idea to lock and unlock the remote computer in lan then contact me at manojkmandal@hotmail.com
|
|
|
|
|
Try to separate what you write into sentences, so that it gets readable.
Expect replies in the forum, not in your mailbox. The intention of a forum is that people can collaborate to find answers, and that other that just you may benefit from the answers.
---
b { font-weight: normal; }
|
|
|
|
|
Yup, I am a newbie to the forum and to VB.Net. I am doing a window application for school assignment. I need to make a app with (First Name), (Last Name), Books overdue,Amount overdue. Also, I need 3 buttons, one for (Exit) (Clear) (Calculate)Here is the directions..
You are to create a Visual Basic.NET application consisting of a single form that will do the following:
1) Allow the user to enter the student’s first name and last name in separate text boxes.
2) Allow the user to enter the number of books that are overdue.
3) Allow the user to enter the number of days the books are overdue. You may assume that all books were checked out on the same date and are due on the same date.
4) Calculate the fine by multiplying the no of days late by $.25 by the number of books.
5) Display a picture of a book on the form. (BOOKS03.ICO)
6) Clear the text boxes so the user can easily enter the information for the next student.
7) Display appropriate Tool Tips for each of the controls.
8) Display a sentence containing the student’s name (first and last) and the amount they owe (formatted for currency) in a label. (e.g. Joe Blow owes $3.75 for overdue books.)
9) Provide buttons to allow the user to calculate and display the fine, clear the form, and exit.
Special
Considerations: 1) All fields must be clearly labeled and have access keys to allow keyboard access.
2) When you clear the text fields the insertion point should automatically position to the first name text box.
3) Focus should follow a logical tab sequence.
4) The escape key should exit from the program.
If i can get some help here please, I would appreciate it. I really have no idea on the code stuff. I am lost...Please Help..Thanks
gary
Gary Skinner
Michigan
|
|
|
|
|
You're going to have to narrow down what kind of help you're looking for. Just posting your homework assignment will probably get you some snide remarks, but little else.
What, specifically, are you having a problem with?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave.
What I need is a tutor I suppose, The assignment calls for a windows application, but I am new to this and cant figue it out. It is the code part.
Gary Skinner
Michigan
|
|
|
|
|
Why don't you start by creating a new project and select windows application as the type of project. Drag some labels and textboxes from the toolbox to the form, and you are already on step three without writing a single line of code.
---
b { font-weight: normal; }
|
|
|
|
|
Well thats all I have so far. I made the form with 3 buttons, 4 text boxs but i need code to calculate the overdue books, and fine for the books, and i dont know how to do that yet
Gary Skinner
Michigan
|
|
|
|
|
The core issue here:
Gary Skinner wrote: I am doing a window application for school assignment.
Your school will have offered you the resources to do a lot more than just post the assignment to the web. If, once you've exausted those options, you're stuck, by all means post your code and ask *specific* questions. We don't do people's homework here, but we're glad to help those who are doing it themselves.
Sadly, most of this is not programming at all, it's playing in the IDE settings. *sigh*
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
OK, Thank you..I wantnt askin for someone to do it...I am 51 years old and dont need someone to do my work, I was mearly asking for tutoring, help, get it, go back and read.I have dont the application, but I dont UNDERstand CODE. I wanted someone to possibly so me how to do this stuff. so far, i have done the app. and the disign of the app. now i changed the names in the property area, (Just the TEXT) area. I cant figure what to put in the CODE area. Is that enough?
Gary
Gary Skinner
Michigan
|
|
|
|
|
Gary Skinner wrote: I cant figure what to put in the CODE area. Is that enough?
*blush*
When someone obviously posts a homework assignment, I assume it's a 17 yo, in college, who expects to get his homework done and still enter the workforce as a programmer in a few years time. That's the attitude I'm against, which would drive the comments I made.
Basically, if you create the button that you want to do something, in the designer, and then double click on it, it will create the block of code which will be executed when you press the button, and thus also open the code file for you. You can also right click on the file in the designer and choose 'view code' to see where it goes. Obviously, if you're keeping track of anything, you need to set member variables ( variables that are declared inside a class, but outside of all methods, and thus are visible to all the methods, and keep their values between function calls ).
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
after instaling .net 2005 and .netframework 2.0
scroling the report become very slowly.
in ex version it was so ok.
where is the problem?
Hvala
|
|
|
|
|
Hi,
I am trying to convert a lot# we generate back to a date format. The lot# is a 5 digit number that includes the day of year plus the 2 digit year i.e. 12506 equals the 125th day of 2006. What I want to do is take 12506 and convert it to 05/05/2006.
Thanks,
mwclassen
|
|
|
|
|
How about if you split the string into two numbers ( by doing substrings and int.tryparse ). Then do something like this...
Dim dt as DateTime = new DateTime(2000 + yy, 1, 1);
dt = dt.AddDays(dd);
where yy is 06 and dd = 125 in the above example.
I think that you need to take the return from AddDays, but it's possible that I'm wrong and it works in place. I've also assumed parameter order in the DateTime constructor.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I have to head home early due to sleet & ice so I'll have to let you know later if this works. I think it will!
Thanks in advance,
mwclassen
|
|
|
|
|
make starting date
dim my_problem as varchar(10)
my_problem='12506'
dim my_short_year as char(2)
dim my_days as integer
my_short_year =my_problem.substring((len(my_problem)-2,2)
my_days=my_problem.substring(0,(len(my_problem)-2)
dim starting_year as char(4)
starting_year ='200'+my_short_year
dim my_startingdate as datetime
my_startingdate ='01 jan '+starting_year.tostring
dim my_result as datetime
my_result=my_startingdate.adddate.days(my_days)
|
|
|
|
|
I found nine bugs in that code. Nice work.
---
b { font-weight: normal; }
|
|
|
|
|
As januari first would be the first day of the year, it would be:
dt = dt.AddDays(dd - 1);
Or you could start from day zero:
Dim dt as DateTime = new DateTime(1999 + yy, 12, 31);
---
b { font-weight: normal; }
|
|
|
|
|
Oh, that's true. Sorry, looks like it's your turn to correct my answer
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanks everyone! Here's what I came up with from the two suggestions and it works just like I was wanting.
Dim dayOfYear, shortYear, days, startingYear As String
dayOfYear = txtDay.Text
shortYear = dayOfYear.Substring(dayOfYear.Length - 2, 2)
Dim startingDate As DateTime = New DateTime(1999 + shortYear, 12, 31)
Dim result As DateTime
days = dayOfYear.Substring(dayOfYear.Length - 5, 3)
result = startingDate.AddDays(days)
I am new to VB and was a little confused by the types. 'varchar(10)' was not a valid type with the version I'm using(at least to my knowledge). Using string seemed to be the only way to get to the substring.
Thanks,
mwclassen
|
|
|
|
|
I have embedded wmp 11 into a form, and now want it to play a .sami file, however i get the sami file does not play, the file is in correct syntax etc, but i need to find a way to enable captions and subtitles in wmp 11 i think.
does anyone know how to do this?
Thanks in advance.
J
|
|
|
|