Search results for query: *

  1. E

    Return Enum string by byte/integer

    So if the function, returning integer, has the same name as enum, then it will return string from enum, if the enum has declared the the integer, the function is returning??
  2. E

    Return Enum string by byte/integer

    Hey guys. I have worked with enums for some time, but i ran in to a little problem.. So i have the Enum: Public Enum MyStuff As Byte this_is_zero = 0 omg_this_is_one = 1 YourAss = 255 End Enum and i have a function that returns 1, 0 or 255, like this: Public Shared function some_func()...
  3. E

    handler problem in custom class

    hi all I have a little problem with me.handler, well there is no handler in custom class.. so i'm making custom class, where one of functions is to switch off screen.. the code is: Public Class Display Public WM_SYSCOMMAND As Integer = &H112 Public SC_MONITORPOWER As Integer...
  4. E

    Question icons from resource file

    Yeah, thats what i did, in my.resourses tab, there where dropdown box where i can select public :) Tnx you guys :*
  5. E

    Question icons from resource file

    tnx, man :) My solution: create dll add images (or anything) to my.resources of dll (pluss make everithing public :) ) compile it added to project, and to use: MyDll.My.Resources.image
  6. E

    Question icons from resource file

    Yeah i know what my.resources is, but i want to use external resource file, cos my resourses take about 3mb, and i dont want them to be in my app it self, but in seperate file.. and besides, i use multiple exe for my app (multiple projects(exe, dll), that make one app working togehter..)
  7. E

    Question icons from resource file

    Hey guys :) So i created resource file New --> new file --> Native Resource Template Then added icons with custom id, like "x", "u_100", .. so i understand, what the files (in my case icons) is.. And i saved as 32-bit resource file (*.res) So i have a question, how can i use these files...
  8. E

    Answered file limit in folder

    Holly crap.. TNX MAN, just saved my day :) +rep
  9. E

    Answered file limit in folder

    Hey guys. :) So i make a program that saves text files in one folder, but what i need is to make the file limit in folder.. For example, i have limit 200 files, and when i add a new file, how do i delete the oldest one, or if the limit is changed to 100, how do i delete all the old ones, to...
  10. E

    Question commenting code in custom functions

    thank you for help :)
  11. E

    Question commenting code in custom functions

    sorry, but i dont understand.. What i wanted is to format the function description (image in 1st post) so user, who uses my class, can easy understand what the function is for. And i need to format it that it shows up (LIKE IN IMAGE ABOVE) with new lines for items... cos the <remark> dosnt shows...
  12. E

    Question commenting code in custom functions

    Hey guys. Hope you can help me.. My problem is this, that i write custom classes (for speeding up my coding, by simpleing funnctions for me) and when i write description i run in to a problem with getting the text in new line, for example, when i use the class: Code: Public Class Class1...
  13. E

    Question commenting code in custom functions

    hey guys So im making dll file (well not actually dll files but, just classes.. but that dosn't change the problem..) So i want to comment my functions, so i know how to add the description --> just adding 3x ''' but now i have problem with adding now line in the comments.. i read everything...
  14. E

    Question kernel32.dll BatteryLifeTime <-- what format is it?

    Sorry, but the link you gave me.. i cant get it working.. i meen i cant get the application to work :( Edited: Sorry, i found everything i need, tnx man :)
  15. E

    Question kernel32.dll BatteryLifeTime <-- what format is it?

    Hello there :) Searching about kernel32.dll and battery functions in it, i came across some interesting code: Public BatteryLifeTime As System.UInt32 The full decleration is: Private Declare Auto Function GetSystemPowerStatus Lib "kernel32.dll" ( _ ByRef lpSystemPowerStatus As...
  16. E

    Question Makeing custom classes

    Hey there :) I love to make my custom classes, for easy programming, so i dont have to go trow tons of code.. so i have created this class: Public Class BatteryStatus Private Declare Auto Function GetSystemPowerStatus Lib "kernel32.dll" ( _ ByRef lpSystemPowerStatus As...
  17. E

    Question external resources file

    Tnx man, you answered on my other projects problem :D But still.. how can i write those files in resource file? i know how to add resources file to project and Resources namespace, but how can i create the actual file?
  18. E

    Question external resources file

    Hey everyone :) So i have a little problem.. The thing is im making formless application, thats visible in tray only.. But i have like 21 icons for default functions.. and when my program launches all icons with the exe file is loaded in RAM. Is there a way to use an external resources file...
  19. E

    Question Use program without form..

    tnx man.. Helped alot. RESOLVED
  20. E

    Resolved adding images to multicolumn listview

    Hey man, tnx.. To others, i just changed "itm.ImageKey = 0" to " itm.ImageIndex = 0" in my code. SOLVED Peas.. (hi)
Back
Top