|
Hi All,
Recently i upgraded my vb.net 2005 application to vb.net 2008 and facing a problem.
i have used crystal reports as reporting tool. it works fine in current and earlier.
when see a report it also works fine but when i closed it and open another win form not having crystal reports the MainMenu goes missing. i could not understand why it is happened.
i am using (Vista 64 bit).
kindly help me.
Thanks in advance
rmshah
Developer
|
|
|
|
|
I would like to show a sample of a Font from an uninstalled Font file.
|
|
|
|
|
Hi,
I haven't used it yet but AFAIK .NET provides a PrivateFontCollection class for such purposes.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
Thank you very much
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Every human being on this planet (with even the tiniest brain) knows that AFAIK means "As Far As I Know". You see, when answering to replies like this, it discourages people to ever post again, because all they'll get is a bunch of crap. Please reconsider before you post like this. Your reply to the question was nice, though.
Motivation is the key to software development.
|
|
|
|
|
Hi Zaegra,
that's what I hate in thouse forums, the respectless way of talking to each other. I did not know the term AFAIK and did, by missreding it as AFAIK.NET (without the space) that sounded to me as a f***ing werid library, that I did not know either. Google on AFAIK.NET (without the space) did not result in anything... So please treat others, the way you would be treaten.
Regards: Didi
|
|
|
|
|
Now your busting me for what you did wrong?
Motivation is the key to software development.
|
|
|
|
|
no, just for your arogance
|
|
|
|
|
i have created the whole chat application containing server and clients and smiles and everything like msn now the problem is that while i was testing locally and on computers in my network it worked but when i tried to connect from outside over internet all my dreams to publish this application felt... can anyone help me with that? i tried everything searching on internet for solutions, port forwarding all i tried
Thanks!!!
|
|
|
|
|
can you connect to anything else on your computer from outside? I would try to find a solution with a trained network-admin.
Regards: Didi
|
|
|
|
|
wow fast response i didn't expect that heheh
yes i can connect remote, i run my machine as server i have site hosted on my machine all works fine...
|
|
|
|
|
How do you identify the machine you want to chat with?
are you using a public IP address? over the Internet IP addresses are different from your local IP addresses. And they vary over time.
See e.g. here[^].
A more expensive Internet subscription may yield a static IP, an address that is constant over time.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
i use public ip's...
|
|
|
|
|
i did it it is working now!!! ahhhhhhhhh finally...
don't laugh:
i was using port 8088 before, for my older application
so probably two applications was killing each other...
well thank you anyway...
now my other problem to solve is static ip, i have no money to pay for it i will do some HTTP requests to read ip and then connect to given ip...
|
|
|
|
|
Hi All,
Actually i am trying to send attachments by using System.Net.Mail.SmtpClient.Sometimes the Timeout error is generate.
So please suggest me what is best timeout intervel for sending 10 mb data.
Thanks in advanced
If you can think then I Can.
|
|
|
|
|
There is no "best timeout". Since the users connection speed can vary greatly, any timeout you can come up with would be pointless if the users connection slows down.
|
|
|
|
|
Hi,
You need a variable timeout.
I would experiment sending mail manually with different attachment sizes, and note the times it takes (say for 1MB and 100MB).
Then I would set up a linear timeout, with a minimum and a safety factor, say
3*(t1MB + t100MB * actualTotalSize/100MB) .
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi Guys, just loaded vb 2005 onto my PC to start a project for a local club.
Basically they wish to record times that a competitor crosses the line. Each competitor will have enough time in between them to allow the user to enter competitor number.
I have created a text box for the user to enter rider number, a timer that updates with current system time, and when user clicks button it records the rider number and time the button was clicked. Nice and simple.
But, whats the best way to allow this for 100 competitors, for the programme to record each one on a separate line.
The data will also need saving, but Im not that far yet so really just looking for guidence on where to go from just 1 single input to infinte inputs.
Many thanks in advance
|
|
|
|
|
Probably a little overkill, but I would put the button, timer, textbox into a custom control which derives from Panel. Then I would loop from zero to the number of required inputs, adding an instance of this control to a FlowLayoutPanel each time you increment. That saves you the trouble of having to muck about with locations, sizes, etcetera. The other advantage is that when you use a custom control, you only have to make a change to the code in that control, and have that change almost instantly apply to the instances you add to the FlowLayoutPanel
|
|
|
|
|
The logistics seem a little off to me. Sounds like the logging of the record is going to become part of the competition. 100 competitors crowded around a limited number of computers waiting to finish sounds, well, wrong.
Think about using barcode or RFID scanners, these achieve the sames as typing the details but faster.
You are right, you are going to need a database to store the data, use SQL express or Access (under duress). There are plenty of examples of data access here on CP.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i suggest using vb2008 instead of vb2005
as vb2008 is much better allowing better
control and many other things
TheMrProgrammer
|
|
|
|
|
Reply to the OP - I use C#
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Depends on what you're used to..
Motivation is the key to software development.
|
|
|
|
|
Wow. Those were really useful posts... Way to help out. BTW: VB.NET can do ANYTHING that C# can do. Anything.
The easiest way to do what you want is with a collection. I would also get rid of the timer and just use Now.timeOfDay to get the current time. Heres an example:
The example below needs the following controls on it's form:
Control Name
=================================
TextBox txtID
Button btnAdd
Button btnSave
ListBox lstResults
=================================
'Begin Code:
'============================================================================================================
Option Explicit On
Option Strict On
Public Class Form1
'Create a new structure to make saving our data easy.
Private Structure Competitor
Dim ID As String
Dim FinishTime As DateTime
End Structure
'Create a collection to hold all of the competitors.
'I like using collections instead of arrays because
'they're easy to resize
Dim myCompetitors As New Collection
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
'Create a competitor variable to temporarily hold the
'competitor we are adding.
Dim currentCompetitor As New Competitor
'Set their ID to the the text of the textbox
currentCompetitor.ID = txtID.Text
'Set the finish time to the current date/time
currentCompetitor.FinishTime = Now
'Add the competitor to the collection
myCompetitors.Add(currentCompetitor)
'Update the list of competitors/times
UpdateResults()
'Reset the textbox and give it focus
'so we don't have to click on anything
'to enter the next competitor.
txtID.Text = ""
txtID.Focus()
End Sub
Private Sub UpdateResults()
'This sub updates the listbox with all of
'the competitors in the collection.
'Clear the contents of the listbox
lstResults.Items.Clear()
'Loop through the collection, adding the competitors information
'to the listbox.
For Each currentCompetitor As Competitor In myCompetitors
'add the competitor's ID followed by the date and time of their finish.
'if you want to show just their time, you would
'change currentCompetitor.FinishTime.ToString to currentCompetitor.FinishTime.timeOfDay.ToString
lstResults.Items.Add("ID: " & currentCompetitor.ID.ToString & " Finish Time: " & currentCompetitor.FinishTime.ToString)
Next
End Sub
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
'Create a new SaveFileDialog to ask the user where to save the file.
'You could also create a String variable if you want to hard-code the
'location of the file.
Dim myFile As New SaveFileDialog
'Create a DialogResult to tell us which button on the SaveFileDialog they clicked.
Dim fileResult As DialogResult
'Set the SaveFileDialog to save the file as a .txt file.
myFile.Filter = "[*.txt] Text File|*.txt"
'Show the dialog and set the fileResult to the button they click
fileResult = myFile.ShowDialog
'If they clicked on the OK button, then...
If fileResult = Windows.Forms.DialogResult.OK Then
'...save the file!
FileOpen(1, myFile.FileName, OpenMode.Output)
'loop through the collection, saving a new line to the file
'as we go:
For Each currentCompetitor As Competitor In myCompetitors
PrintLine(1, "ID: " & currentCompetitor.ID.ToString & " Finish Time: " & currentCompetitor.FinishTime.ToString)
Next
'We're done saving, so close the file!
FileClose(1)
End If
End Sub
End Class
'===========================================================================================================
'End Code
I hope that's what you're looking for.
-Ray
|
|
|
|