Hack Forums
[.NET] PC Information Only Source Download - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] PC Information Only Source Download (/showthread.php?tid=4222295)



PC Information Only Source Download - sofien ouenn - May 10, 2014

Hello This is my First Post In this website 🤗 So I want to share with You my Source Code PC Information Its very easy To use But I release The source To learn From it 👍
This is a photo of The Program

[img]http://up.dev-point.com/uploads/23062afd0d601.bmp[/img]

First :
1) To Clear Information
2) To Get Information
3) To Save Information In .Txt File

The Source Code : Download
ps: Dont be worry its just a source code

Please Make comment ^^
Thnx To all 😅


* - nuk - May 10, 2014

I'm assuming that you're just learning how to code? Not a bad release at all... I'm sure someone will have some use for it ;)


* - SIM-1676753 - May 10, 2014

Assuming this is your first program, looks nice. Keep working!


* - sofien ouenn - May 11, 2014

(May 10, 2014 05:34 PM)nuk Wrote:  I'm assuming that you're just learning how to code? Not a bad release at all... I'm sure someone will have some use for it ;)

First Thnx Bro For the comment and I Put this Source To Learn From It 🙂


(May 10, 2014 05:48 PM)Dark Onion Wrote:  Assuming this is your first program, looks nice. Keep working!

No Its Not My First Program But When Im searching In this website I finde a member He made one like that and he put it without The Source For that I make this Thread ✌
Thnx For The comment 🙂


* - DBots - May 11, 2014

Thanks for posting the source code.

As opposed posting just the executable for something simple like some people on here do.


* - sofien ouenn - May 12, 2014

(May 11, 2014 06:40 PM)DBots Wrote:  Thanks for posting the source code.

As opposed posting just the executable for something simple like some people on here do.

First Thanks For the comment 👍
I see ho made one like that without the source for that i post a one with the source 😁


* - shebang - May 12, 2014

I was surprised that your project is actually not that bad (I'm used to seeing worse)!

Just a few things to keep in mind for the future:
-In future projects, make sure Option Strict is on! It will build proper programming form.
- Calling the clear() method like you have on eighteen text boxes can easily be shortened if you store the controls in an array and loop through them.
- You are currently using the + operator to concatenate strings. Since this character is used for math operations, use & or String.Concat to join the strings.
- StreamWriters implement the IDisposable interface, so use a Using...End Using block for your StreamWriter to make sure it disposes properly. Alternatively, modify your TryCatch statement similar to this:

Code
' Declare the StreamWriter here.
Try
    ' Whatever code you have here.
Catch ex As Exception
    ' Error handling here
Finally
    If {YOURSTREAMWRITER} IsNot Nothing Then
      {YOURSTREAMWRITER}.Dispose()
    End If
End Try



* - sofien ouenn - May 12, 2014

(May 12, 2014 06:10 AM)shebang Wrote:  I was surprised that your project is actually not that bad (I'm used to seeing worse)!

Just a few things to keep in mind for the future:
-In future projects, make sure Option Strict is on! It will build proper programming form.
- Calling the clear() method like you have on eighteen text boxes can easily be shortened if you store the controls in an array and loop through them.
- You are currently using the + operator to concatenate strings. Since this character is used for math operations, use & or String.Concat to join the strings.
- StreamWriters implement the IDisposable interface, so use a Using...End Using block for your StreamWriter to make sure it disposes properly. Alternatively, modify your TryCatch statement similar to this:

Code
' Declare the StreamWriter here.
Try
    ' Whatever code you have here.
Catch ex As Exception
    ' Error handling here
Finally
    If {YOURSTREAMWRITER} IsNot Nothing Then
      {YOURSTREAMWRITER}.Dispose()
    End If
End Try

Thank You For this Information It will Help me in the future Bro 👍
Thnx again For the comment 😅


* - Hoody - May 12, 2014

Good job on this OP i'm assuming your new to .net, in which case nice work. I hope you keep on learning / post. And remember, stay HQ.