|
Hi,
Looks cool from the demo (not checked the source yet, sue me ), however there seems to be a little bug . When minimizing the meter, by right clicking the titlebar -> minimize, an ArgumentException is being thrown (Invalid parameter used).
|
|
|
|
|
Thanks for the input. It seems one cannot changed the size of a control while it is minimised. I'll add the fix soon , for the time being you can redone this following:
private void ReportForm_Resize(object sender, System.EventArgs e)
{
try
{
graph = new Bitmap(720, pictureBox1.Height);
Size = new Size(724, Size.Height);
DrawGraph();
}
catch (ArgumentException){}
}
As far as I can see the is no way of knowing when a form is minimised... Did I miss something?
Cheers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
leppie wrote:
As far as I can see the is no way of knowing when a form is minimised... Did I miss something?
Sure you can . myForm.WindowState is an enum of the type FormWindowState. Just check if it equals to FormWindowState.Minimized . By the way, the exception was raised for me when the form was normal sized, and I used the contextmenu on the titlebar to minimize the form.
|
|
|
|
|
Wilco B. wrote:
Sure you can . myForm.WindowState is an enum of the type FormWindowState.
Whahahhaha eish I cant believe. How did I miss that one?
Wilco B. wrote:
By the way, the exception was raised for me when the form was normal sized, and I used the contextmenu on the titlebar to minimize the form.
The resize event fires after the for has been maximized or minimised. Thats why it happened (and because the PisctureBox.DockStyle is set to Fill).
Thanks
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Hi again ,
Sorry for bothering again (;)), but I think you fixed this only on the report form, and not on the main form? . (not that none can fix it themselves but hey )
|
|
|
|
|
Wilco B. wrote:
but I think you fixed this only on the report form, and not on the main form?
But the mainform does not show in the taskbar... Neither will it minimise (unless you have altered the code) thru click the minimise all button. Im not sure what you mean?
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Heh, if you right click on the titlebar of the mainform (not the taskbar, cause indeed there's none ), you'll get a contextmenu, in which you can minimize .
|
|
|
|
|
|
|
BurningIce wrote:
i was shocked over how clumsy it was. Hope u can do better than that
I had a another long at the code, and to be honest I'm a bit shocked at your remark. Please do elaborate.
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
its not the output that is clumsy, i'm sure its effective enough , but your naming of the controls and variables and lack of commenting i was talking about... i had to read the code 3 or 4 times before i realized what control was what but who knows, maybe its just me who are a newbie or a perfectionist
|
|
|
|
|
BurningIce wrote:
but your naming of the controls and variables and lack of commenting i was talking about...
The naming of the controls were done by the Forms Designer or me. I know those pen names "should" be a bit longer, but I find it easier. I try to stick to guidelines for public members. Also I cant afford an obfusicator.
Commenting...if this was a control library, yes then commenting would be done, but this is just an app. I comment only when absolutely needed. It makes me sad to see sometimes all the private comments. I well name method will do the job.
BurningIce wrote:
but who knows, maybe its just me who are a newbie or a perfectionist
Fair is fair. Like I said the code was an extra.
Thanks for the reply
PS: I'll try add some comments
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
i know that the form designer makes that kinda meaningless naming of the control, but that doesnt forbid the programmer to rename them
Offcourse too much commenting can be confusing too... but now the C# language has this powerfull way of documenting code, it would be a shame not to use it
|
|
|
|
|
BurningIce wrote:
i know that the form designer makes that kinda meaningless naming of the control, but that doesnt forbid the programmer to rename them
It all started on a very lazy click click afternoon
BurningIce wrote:
Offcourse too much commenting can be confusing too... but now the C# language has this powerfull way of documenting code, it would be a shame not to use it
I just wish it wasnt in between the code. Code comments yes, but after docs has been generated the serve no more function in between the source, only taking up screen space. Ideally one should do usage docs from another place IMO, with VS.NET (being all powerful) option rendering it between the code.
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
The idea is very good, and it works great... but going through the source, i was shocked over how clumsy it was. Hope u can do better than that
|
|
|
|
|
well.. iam looking for someone to work with on a project...more like i help if i can..and learn from them kinda deal. so i figured i would ask you since you have awnsered so many questions of mine on the message board. Do you have any projects/open source stuff that you would be intrested in having help with. Let me know if so...and please dont say no....im starting school in march to get my mcsd and i wanna learn as much as i can to commpete with the rest of the class.... i know alot about C# but gotta know everything i possibly can !! anyways let me know...and tell me about south africa while you are at it..(isnt that were you are from ?)
Jesse M
The Code Project Is Your Friend...
|
|
|
|
|
jtmtv18 wrote:
Do you have any projects/open source stuff that you would be intrested in having help with.
I was thinking of making nBASS public. The new version of BASS (1.8) is coming out soon and there will be alot of changes plus many new ideas I have had over the last few months. Let me know if you are interested.
jtmtv18 wrote:
im starting school in march t
Im starting this week with university. Time will be very limited from now on.
CHeers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
that would be great im for sure intrested....where can i read more about BASS(1.8)....(i'm un aware of what that program does/is)
jesse M
The Code Project Is Your Friend...
|
|
|
|
|
BASS is a music/sound library. I made nBASS to wrap the library and let people use from .NET in an OO manner. There is still alot of work to be done, and discovering a bit of a following (look on the BASS forums) I thought I might just drop it on sourceforge.
www.un4seen.com[^]
That is BASS website. BASS 1.8 is not out yet but nBASS is based on BASS ver 1.6 and works on ver 1.7 as well. I suggest you download the BASS library on that site (you can leave the BASSWMA as this is the stuff that is changing). Then have a good look how I wrapped nBASS around it. You will start to notice a pattern. The stuff is rather difficult to grasp, but it stays repetitive.
CHeers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
how easy is it going to be to incorperate bass 1.8 into a C# application ? i was looking over the source code....(file named bass.cs) its for the most part beyond me maybe i just need to read from msdn more lol...
jesse m
The Code Project Is Your Friend...
|
|
|
|
|
I'm getting various exceptions occuring. maily from setting the period to view or setting the PC name.
And your logging datasource is hard coded to D:\dev\MyDUMeter\MyDUMeter\bin\Debug\log.mdb, but your have not included a copy of the database.
Besides that, this looks really useful.
|
|
|
|
|
Giles wrote:
And your logging datasource is hard coded to D:\dev\MyDUMeter\MyDUMeter\bin\Debug\log.mdb, but your have not included a copy of the database.
Its only hard coded for the DEBUG build, i suspect that was what was killing the Forms designer (and I can use the same DB for both builds). Go to the form designer and setup it via there. The release build will allways get the log.mdb in the local directory. Also, as stated in the article the DB is included with the Binaries (iow bin.zip) .
Giles wrote:
I'm getting various exceptions occuring. maily from setting the period to view or setting the PC name.
The one from the report seems to be DB related (see above), the PC name one is a mistery. Could you please paste the exceptions you are getting?
Giles wrote:
Besides that, this looks really useful.
Thanks
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
I don't know what's up, but it hangs up when I click on the "Machine Name" drop down?
WinXP
.NET Framework v1.0.3705
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Soliant wrote:
I don't know what's up, but it hangs up when I click on the "Machine Name" drop down?
Weird... I have not seen this! You should at least get your local machine name. Maybe it has something to do with rights? Are you logged in as administrator? Like I said I only tested it on my local PC, but other users report, that it worked... Let me know please.
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Hey there!
One of the things that annoys me about my Merlin PCS Connection card is that it doesn't give me a running total between sessions of upload/download byte counts.
And since my subscription is for 20MB per month, and it's like a $1 per 1K if I exceed that limit (or something attrocious), I REALLY REALLY wish that they had a cumulative counter that I could reset every billing cycle.
Of course, they probably make a killing on people who don't keep track of their usage.
Anyways, want to add this feature to your app?
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|