topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 25, 2024, 4:12 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sukhjinder [ switch to compact view ]

Pages: [1]
1
I have a Form with a Panel mainBackPanel. To mainBackPanel I add different panels say redPanel, greenPanel, bluePanel depending on key pressed, r, g, b respectively. Each panel has a different image (say tomatoes, trees, sky) and a transparent label.

Now when the panel changes, I see a small flicker on the area covered by the label.

mainBackPanel (to which the individual panels are added) is double buffered.

All KeyEvents are being handled by MainForm in the following method

void mainFormKeyUpHandler(Object o, KeyEventArgs kev)
{   
   if( kev.KeyCode == Keys.R )
   {
         this.mainBackPanel.Controls.Clear();
         this.mainBackPanel.SuspendLayout();
         this.mainBackPanel.Controls.Add(this.mainFormPanel);                               this.mainBackPanel.ResumeLayout();   
   }   
   else
   .
   .
   .
}


The code, in .NET 2.0, can be found here.

You will need to put 3 image files namely fb.jpg, mf.jpg and pl.jpg in bin/debug folder prior to running the app.

Please suggest how to get rid of the flicker.

Thanks
Sukhjinder

2
Developer's Corner / Help required in coding Media Player
« on: April 28, 2008, 05:44 AM »
Hello There!!!
I need help for my OpenSource Media Player LetsYo.

filebrowsersmall.gif

More Screenshots

Main Features
+ File Browser

+ Time Seek Control (Seek to Exact in Time hh:mm:ss)

+ View All Embedded Images in Media Files in FullScreen

+ Auto Resume of long files from last saved position (Useful for movies, audio books, etc)

+ Media Library (Select Media Based on Artist, Genre, Album, Videos, Rating)

+ Auto/Manual Media Library Update(Add new files, Remove missing files, Update changed files)

+ Easy Look Customisation (Change Colors, Fonts, Shadows, Background Images, etc)

+ Playlist (Add, Remove, Clear)

LetsYo gets about 30 - 40 downloads per day.

Help required in
+ Coding in C#. You can help by writing small text parsers, Graphic & UI code and some general coding.

+ Directshow. I need help in adding features like Equaliser, Crossfading, Continuous playback using multigraphs with GMFBridge.

+ Writing Help File/User Manual

+ Testing and suggesting improvements.

Please PM me for any more information or clarification.

Thanks
Sukhjinder

Thanks Mouser for moving it to the right section...

3
Developer's Corner / Re: Remove Flicker from Splash Screen
« on: March 29, 2008, 10:31 PM »
My Final solution

public SplashScreen()
      {
         
         this.TopMost = true;
         this.ShowInTaskbar = false;
         this.FormBorderStyle = FormBorderStyle.None;
         this.StartPosition = FormStartPosition.CenterScreen;
         
         Image img = Bitmap.FromFile(LetsYoConfig.SplashFileName);
         this.Size = img.Size;

         LockWindowUpdate(this.Handle);
         
         try
         {
            this.BackColor = this.TransparencyKey = Color.White;
            
            Bitmap b = new Bitmap(img);
            this.BackgroundImage = splashImage = (Image) b;
         }
         finally
         {
            LockWindowUpdate(IntPtr.Zero);
         }
      }

Everything works as expected.
Thank you.

I have some more issues relating to drawing custom controls for my Opensource Mediaplayer LetsYo. If you are intersted and can donate some time of yours please visit my project home page http://sukhjinder.cn/letsyo. Screenshots at http://sukhjinder.cn...syo/screenshots.html

4
Developer's Corner / Re: Remove Flicker from Splash Screen
« on: March 29, 2008, 11:43 AM »
My Workaround

+ Set the Splash Screen's StartPosition to Manual
+ Set Splash Screen's Location to Center of the Screen
+ Call LockWindowUpdate
+ Rest of the code

Code is

public SplashScreen()
{
   try
   {
      Image img = Bitmap.FromFile(LetsYoConfig.SplashFileName);
      SetSplashScreenPosition(img.Size.Width, img.Size.Height);

      LockWindowUpdate(this.Handle);
      
      this.TopMost = true;
      this.ShowInTaskbar = false;
      this.FormBorderStyle = FormBorderStyle.None;
      this.StartPosition = FormStartPosition.CenterScreen;
      
      this.BackColor = this.TransparencyKey = Color.White;
      
      Bitmap b = new Bitmap(img);
      b.MakeTransparent(b.GetPixel(1,1));
      this.BackgroundImage = splashImage = (Image) b;
      this.Size = this.splashImage.Size;
   }
   finally
   {
      LockWindowUpdate(IntPtr.Zero);
   }
}
void SetSplashScreenPosition(int w, int h)
{
   this.StartPosition = FormStartPosition.Manual;
   Rectangle ScreenRect = Screen.PrimaryScreen.Bounds;
   this.Location = new Point((ScreenRect.Width - w) / 2, (ScreenRect.Height - h) / 2);
}

If you see a better solution then please advice
Thanks
Sukhjinder
http://sukhjinder.cn/letsyo

5
Developer's Corner / Re: Remove Flicker from Splash Screen
« on: March 29, 2008, 11:32 AM »
Wow, It works wonderfully well.
But the Splash Image shows up randomly on the screen. I want it to appear centered.

Here is my code

      public SplashScreen()
        {
           try
           {
              LockWindowUpdate(this.Handle);
              
              this.TopMost = true;
              this.ShowInTaskbar = false;
              this.FormBorderStyle = FormBorderStyle.None;
              this.StartPosition = FormStartPosition.CenterScreen;
              
              this.BackColor = this.TransparencyKey = Color.White;
              Image img = Bitmap.FromFile(LetsYoConfig.SplashFileName);
              Bitmap b = new Bitmap(img);
              b.MakeTransparent(b.GetPixel(1,1));
              this.BackgroundImage = splashImage = (Image) b;
              this.Size = this.splashImage.Size;
           }
           finally
           {
              LockWindowUpdate(IntPtr.Zero);
           }
        }

As you can see I have Splash Screen's start position as Centered (this.StartPosition = FormStartPosition.CenterScreen;) but it is still having random positions.

Please advice
Thanks
My Media Player
http://sukhjinder.cn/letsyo

Sorry about the delay in replying


6
Developer's Corner / Remove Flicker from Splash Screen
« on: March 28, 2008, 02:52 AM »
Creating Spalsh Screen from an Image in C#

Hi I need to create a Splash Screen from an Image file. The Splash Screen form should be of the same dimensions as the image file. The program should hide the Splash Screen when my MainForm is displayed.

Here is what I'm doing

class SplashScreen : Form
   {
      Image splashImage;
      public SplashScreen()
      {
         
         this.TopMost = true;
         this.ShowInTaskbar = false;
         this.FormBorderStyle = FormBorderStyle.None;
         this.StartPosition = FormStartPosition.CenterScreen;
         
         this.BackColor = this.TransparencyKey = Color.White;
         Image img = Bitmap.FromFile("splash.png");
         Bitmap b = new Bitmap(img);
         b.MakeTransparent(b.GetPixel(1,1));
         this.BackgroundImage = splashImage = (Image) b;
         this.Size = this.splashImage.Size;
      }
   }
class MainForm : Form
{
   public static void main(String[] args)
   {
      // Some Code
      SplashScreen splash = new SplashScreen();
      splash.Show();
         
      MainForm mainForm = new MainForm();
         
      mainForm.Shown += delegate(object o, EventArgs ev)
      {
         splash.Hide();      //Hide and Dispose the Splash Form When mainForm is shown for the first Time
         splash.Dispose();
         mainForm.GetFocus();
      };
      // More Code
   }
}

The Splash Image to be used can be downloaded from http://sukhjinder.cn/splash.png

With the above code I do get the splash screen and the behaviour as expected but before the splash screen is drawn I see a Black Rectangle flashing, with same dimensions as the splash image.

Please suggest. If you have a different approach please go ahead. All I want is to see a nice Splash Screen

Thanks
Sukhjinder
http://sukhjinder.cn/

7
Hi, I'm Looking for a Free software which can make any Top Level Window Ghost(Clickthrough).
I've tried GhostIt!. Though being a nice Software it has no option to set the transparencey level of individual Ghost window. If I have 2 Ghost Windows then Both have the Same Transparency Levels, which is kind of annoying.

I have tried Making my Windows Ghost using Ghost it and Adjusting Transparency levels using PowerMenu (v 1.5.1). on doing so the Windows lose their Ghost Property.

Please do let me know of the options I may use.

Thanks...

8
Thanks Everybody Once Again.

Skrommel I Did Try Trayer And it did satisfy my needs. But the Software is shareware. I think there once was a Free version of the same which had the same feature. If you do have that version. Please do provide me the info. Thanks...

9
TrayIt Does Allow me to Put the App Icon in the Sys Tray But Does not remove it from the Taskbar without Minimizing it.
My Requirement is

Application (Like Notepad, Wordpad) Available on Desktop to work on
Taskbar Button of the Application Removed from the Taskbar
The Icon of the App may or may not be in the Sys Tray.
I Just Want to Remove the Taskbar Button while still being able to work on the Application

Thanks...

10
I want to Do it for Any Top Level Window Like Maxthon, Wordpad, MSPaint, etc...

11
I'm Not You. But You WERE Me. When I WAS You.
Remember I'm From Your Future.

12
No No, I'm U From Your Future... ;)

13


I am running a program say Wordpad.
Is is available on the Taskbar as Wordpad Button
I want a software which removes Wordpad Button from Taskbar and puts it in the system tray

BUT a Big Big But Here...

The Wordpad should not be minimised to the System tray.

I should be able to continue working on the Wordpad with its Taskbar Button Removed and icon available in the system tray.

The Idea is to remove the button from the taskbar while still being able to work on the application.

Similar Feature is available in Winamp. (see Image Above)

A Discussion is Available at
http://www.shellcity...ic.php?p=36062#36062

A Big Thanks to All the People who are Putting in their input

Pages: [1]