Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bledazemi

    Create Movie thumbnails in .NET (.mov, .mpg .avi > .jpg)

    One quick solution is to use the MediaDetClass of Dexter Type Library. There is a sample in Code project see link below: http://www.codeproject.com/KB/directx/picturesfrommovie.aspx Here is an extract of code from their sample: MediaDetClass md = new MediaDetClass(); md.Filename =...
  2. bledazemi

    Linked list - simple coding question

    DotNetGnat, I had a look at the code you posted and thought that the following might be of help to you. (Especially if you come from a .Net background) Stack vs Heap memory The code of main function you posted allocates memory variables a,b,c and L1 from the stack. The destructor of each...
  3. bledazemi

    interface that uses two monitors

    I think the short answer is yes. It may help to have a look at techniques and technologies that Java provides. For a chat program i would imagine you may want to have a look at what Java has to offer on Networking. Have a look at java.net package in particular Socket and SocketServer classes...
  4. bledazemi

    Soap Extension

    Thanks for sharing the key to the answer. I have often experienced how these small tips can be a time saver.
  5. bledazemi

    finding an item in a contextMenu

    Your problem is related to removing items from the MenuItemCollection inside your foreach loop. Microsoft does not advise using foreach statement when changing the contents of a collection. "The foreach statement is used to iterate through the collection to get the information that you want...
  6. bledazemi

    Access Control

    I am not sure if it would fit well with your situation but I would define a User class and a set of "can" routines. public class User { public bool CanRead(string record, string field) { //Here your code logic } public bool...
  7. bledazemi

    Number compressor

    StefanWagner is right converting numbers to a higher base does not compress the number (which is held in a long [64 bits] in computer storage or memory). It does however provide a way for reducing the number of digits to required to represent the number when shown on screen or on paper. True...
  8. bledazemi

    Docking/Anchoring controls

    You could try using the TableLayoutComponent with one row and then add the columns at run time. If you specify the column width as percentage then provided the TableLayoutComponenthas Align set to (Left+Right) the columns will resize proportionally. /// <summary> /// Function...
  9. bledazemi

    Number compressor

    I assuming that your 16 digit numbers are in base 10 (i.e. decimal numbers) then as implied by MoreFeo, Bong and tom62 above you could use converting from base 10 to a higher base (e.g. 16,64,256,... 1000) as a method of reducing the number of digits required to represent your numbers. I found...
  10. bledazemi

    Docking/Anchoring controls

    Forgot to mention the splitContainer in the pnlMiddle would be your area 3 and 4. SplitContainer contains two panels and by default has the ability to split the available space into proportional size for its two panels. In your case if you size the splitContainer panels to have equal width on...
  11. bledazemi

    Docking/Anchoring controls

    Hi Echilon. One way to achieve the layout you specified in the picture you attached could be by using a number of panels and one splitContainer and then setting the Dock or Anchor properties accordingly. Here is what i tried and it worked: * Added a panel on the user control and set its dock...
  12. bledazemi

    passing open arguments from one form instance to anther

    Hello regular dude. I had a look at the first link that you provided and was able to create a simple test program that worked based on instructions and code provided in Figure 4 and 5 in the link. Below is the program code i tried. using System; using System.Collections.Generic; using...
  13. bledazemi

    ThreadPool class

    As chiph suggested one solution to your scenario is to use the ManualResetEvent. Chiph is right about using the boolean variables not being thread safe. This is because even statements like "stop=true" where stop is bool will consist of more than one instruction when compiled. I tried a simple...
  14. bledazemi

    Threading...

    You may find it useful to use BackgroundWorker component. Some tips on how to use it would be: 1. Drop a BackgroundWorker component on your form 2. Add your large operation routine in the DoWork event of BackGroundWorker 3. Use ReportProgress routine of the background worker to report...
  15. bledazemi

    [b]Object Name[b/]

    koymg I am glad that it helped. You can get the namespace and class name from the MethodBase obj //Routine that does the logging public void WriteLog(string message) { //Lets get the stack trace StackTrace st = new StackTrace(); //Lets get the stack frame we are interested in...
  16. bledazemi

    [b]Object Name[b/]

    Hello komyg, you may find it useful to look through the StackTrace and StackFrame classes provided in .NET because they should provide you with the solution you were looking for. This statement contains the key information "A StackFrame is created and pushed on the call stack for every...
  17. bledazemi

    Generic Delegates

    Guess what !! This works too. public class foo { public delegate T delegateMethodType<T>(string s); //sorry can not have this //public delegateMethodType MethodToExecute; //You can have this if you want public T...
  18. bledazemi

    Generic Delegates

    I think I understand what you are trying to achieve. I do not think i deserve the 6 million dollars but anyway here are some comments: The error you are getting is related to the fact that you are trying to define a variable of a generic type without specifying a specific type. As i...
  19. bledazemi

    overloaded constructor on form

    I think Griffyn is right about calling the Create constructor instead of the inherited one. Also your problem may also be caused if you have overloaded TForm.Create(aOwner:TComponent)? [code] //This is NOT correct constructor Create(aOwner:TComponent); overload; [\code] I have had similar...
  20. bledazemi

    Is Delphi for Win64 ever going to make it

    Yes, I filled in the Delphi survey too recently. I must say I do not understand why CodeGear decided to prioritise .NET before Win64. Microsoft Visual Studio is cheaper then Delphi and I would imagine most people would use Visual Studio to program in .NET. In my opinion Delphi is (or should i...

Part and Inventory Search

Back
Top