|
i dont know how to do the scripts. can you help me?
im going to publish my application thru solution explorer>properties>publish tab
|
|
|
|
|
Hi there,
I've read and implemented a thumbnail viewer. thanks to "Marc Lievin"
Now all is working fine except my app is using a lot of memory.. it seems to not dispose the objects properly.. I've done some reading on the topic and managed to get some disposing done in my app but its still not working the way i expected.. When i start my app it uses around 26MB of mem(in tskmgr). as soon as i start loading from a specific folder this usage goes up(which is understandable)..
my question is.. when i go to another folder and come back to the previous one the memory usage is different from what it was before. Shouldn't it be the same again?
|
|
|
|
|
Member 4768427 wrote: Now all is working fine except my app is using a lot of memory..
I hope you're not looking in Task Manager to see how much memory your app is using. TM isn't accurate at all because of how the .NET CLR works.
Member 4768427 wrote: When i start my app it uses around 26MB of mem(in tskmgr)
Whoops, you are using Task Manager. Don't. Use Performance Monitor instead, and it's .NET CLR Memory counters. They will tell you how much memory your app is really using.
Member 4768427 wrote: when i go to another folder and come back to the previous one the memory usage is different from what it was before. Shouldn't it be the same again?
No. Task Manager is telling you how much memory the .NET CLR has reserved for the virtual machine that is running your code. This includes memory that your app is not using, but the CLR has in it's managed heap waiting for your app to make object allocations. Like I said, Task Manager is the worst tool you can use to check your .NET app's memory usage.
|
|
|
|
|
Hi all...
I am using VS2005 and creating a program in VB.NET
Program is used to search thousends of files from hard disk , and some program is searching a record among thousends of records from database(MS Access2003).
All have almost done but I want to know that how to calculate the remaining time in searching a particular record.
Thanks.
Gagan
|
|
|
|
|
You can't do it easily as you have no idea how big/how many the files are on the disk or how many records there are in the database.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Basically, unless you know how many records are in the database or the number of files on the disk before you start, you can't.
A "percentage complete" calculation requires that you know two things. How many items you are going through and your position in those item.
A "time to complete" calculation requires that you know three things. You must know the same thing as "percentage complete" as well as how long it took you to get to the position you're at. From there, you can calculate how long it's going to take to get through the remainging items.
|
|
|
|
|
Thanks Dave for your help.
I have got it!
|
|
|
|
|
Hi,
I need your help. I'm trying to publish my application using the Publish tab from the Solution Explorer > Properties.. It produced the exe file and everything, and when i tried to install it in another PC, the error shows:
The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
I was wondering how i could include in the Publish all the necessary files for the Crystal Report? So that if I install it in another PC, only my Setup.exe is needed and no other external installation will be needed.
Thank you!
Application was developed using
Visual Studio 2005 and .Net 2.0 Framework
Regards,
Grace
|
|
|
|
|
Try following
on publish tab click the 'Prerequistie' button. This action open a window and then select 'Crystal Reports for .NET framework 2.0 ' option
hope this helps
|
|
|
|
|
Check whether all the crystalDecisions Dll files are included in the setup..
Salai
|
|
|
|
|
Hi
Im currently designing a benchmarking utility using VB 6.0 but im not familiar with Winsock programming.
What im trying to do is measure certain performance parameters such as :
-- Time to establish and internet connection
-- DNS lookup time
-- TCP end-to-end delay and TCP round-trip time
-- Lost/Duplicated packets
Basically im trying to connect to websites such as google for instance and measuring the parameters above.
Currently i having trouble on understanding how to establish a connection with a site and how to retrieve
data sent from the site to my benchmarking utility.
Any help with be much appreciated. Thanks
|
|
|
|
|
I would suggest doing a bunch of research on Winsock and TCP/IP concepts before you open Visual Studio. And by using VB6, you've made it much harder on yourself. I would highly suggest using VB.NET instead.
|
|
|
|
|
Dave Kreskowiak wrote: by using VB6, you've made it much harder on yourself. I would highly suggest using VB.NET instead.
I second that. I just wasn't grumpy enough earlier to snap on it for being a VB6 question
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I just said that because .NET has the Winsock stuff native as well as better P/Invoke support for those net api calls he's going to use, and VB6 doesn't. But, if he really does want to reinvent the wheel...
|
|
|
|
|
Right. The Net namespace should have pretty much everything he is looking for.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I have a form with two textboxes. One is txtForname and other is txtSurname and I also have a search button btnSearch. I have a table from a MSAccess database below this. The table has the fields "Forname" and "Surname" and what i would like is to, when you type something in either "Forename" or "Surname" the results automatically display in table when button search is clicked like a query when searching a field in a table. How would I do this?
In the end we're all just the same
|
|
|
|
|
Here is an approach I have used:
1) Create an unbound form with 2 text boxes txtForname, txtSurname and your search button, btnSearch.
2) Place a subform on your form which includes your datatable; Employees (or whatever)
3) Put code behind the btnSearch on the Click event that sets a filter for your subform. Example:
me.employee_subform.Form.Filter = me.txtForname.value
me.employee_subform.Form.FilterOn = true
this should get you a head start; you will need to consider blanking out fields and determining which field to filter on.
|
|
|
|
|
Here i search the table and display data in the Grid
http://www.codeproject.com/KB/cs/N-Tier22.aspx[^]
Is this Similar to what you want ?
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi
I want to open a note pad for every 2 seconds by setting a timer control..
can anyone can help??
Dim t As New Timer
t.Interval = 500
t.Start()
process.Start("notepad.exe")
I didnt complete the code any one can help?
I dont know how to put loop for opening a note pad for each 2 second
|
|
|
|
|
Drag the timer-icon from the toolbox onto your form. Set its interval = 2000 (milliseconds). Create the timer-tick-event by double-clicking on the timer-icon below you the VS-designer. In this tick-event start your process.
|
|
|
|
|
Thank u for your reply .I have sent my code
.In the textbox if i give "0 :10"
aftre 10 seconds over the note pad will open..
hgow to open the note pad in every 2 seconds .?
In the form load :::
TextBox1.Text = "0 :2" '"2:07:59"
Timer_tick::
Dim timspan As TimeSpan = dt - Now
If timspan.Ticks < 0 Then
Timer1.Enabled = False
Label1.Text = "Test completed"
Button2.Enabled = True
Dim blah As Process
blah = New Process()
Process.Start("notepad.exe")
End If
In the button click event ::
dt = Now + TimeSpan.Parse(TextBox1.Text)
Timer1.Enabled = True
Timer = New Timers.Timer()
'initialise internal timer
_StartTime = Date.Now
_CurrentTime = _StartTime
SetTargetTime(1)
Start()
|
|
|
|
|
Instead of keep asking, whu not read up on the system timer - you have been given the answer bu 2 people already. If you drag a timer from the toolbox onto your form, then double click the timer it will open the timer_click event coce. Now find out the rest by doing a bit of work for yourself.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
cbenan wrote: wat is this?U cant answer properly ..we r trying this..if u cant help no need to reply...
And what happens if you can't understand, or refuse to try, the simple answers you've been given?? Those answers are in the simplest terms possible. What do you want?? The code written for you?? What would learn then??
|
|
|
|
|
I did help, I have given you simple instructions to achieve what you are asking for, as has at least one other poster. What more can I do? Write the code for you? Tough.
Bob
Ashfield Consultants Ltd
|
|
|
|