Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

eynkram

@eynkram
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use Crystal report Driver to access Act! database.
    E eynkram

    Greetings, I have been challenged with accessing an Act2000 dbf with a c# program for readonly access. The odbc doesn't work properly with any of the drivers I have been able to find. Act2000 isn't fully odbc compliant either. I found crystal reports uses the driver pdiract3.dll or p2iract3.dll to access the database. Is there a way to use the dll in a c# program to access the database directly like crystal does? Any help is greatly appreciated. Cheers.. Mark

    C# csharp database help tutorial question

  • Display problem/bug
    E eynkram

    Hi ACorbs, That was it.. I had the taskbarNotifier1 instance of the TaskbarNotifier() constructor created in the Thread1() of my new thread. I moved the taskbarNotifier1 and as you said the problem went away. Awesome!!!! Thanks!!!! Time to move on..... Thanks alot ACorbs,Skynard and Mav for your kind help!!!! Mark

    C# help database discussion

  • Display problem/bug
    E eynkram

    Hi Skynyrd, Thanks for you time on this. I tried creating a delegate and using the Invoke method and the same thing happends. The way the code works is as follows: Main App---> thread -->taskbarNotification.show() Main app creates a thread that loops checking the server for new messages. When there is a new message the thread calls the taskbarNotification1.Invoke... This is when the line appears at the bottom of my screen. The line looks like a border and is the same width as the bitmap background specified for the popup window. Like I said previously if I call MessageBox.Show("anything") after I call the taskbarNotification1.Invoke the program works perfectly with an annoying messagebox every time. Thanks again for your time!!! Mark

    C# help database discussion

  • Display problem/bug
    E eynkram

    Hi Mav, The TaskBarNotifier is as follows. The code works fine in a non-thread environment. Thanks alot for your time!!! I have a main routine create a thread that polls a sql server and calls the show method in the following code snip. When you call the show method it displays a small line above the taskbar. If you add a messageBox.show() right after you call the taskbarnotifier.show() it works fine. I got the taskbar notification code from an article on this site. // C# TaskbarNotifier Class v1.0 // by John O'Byrne - 02 december 2002 // 01 april 2003 : Small fix in the OnMouseUp handler // 11 january 2003 : Patrick Vanden Driessche added a few enhancements // Small Enhancements/Bugfix // Small bugfix: When Content text measures larger than the corresponding ContentRectangle // the focus rectangle was not correctly drawn. This has been solved. // Added KeepVisibleOnMouseOver // Added ReShowOnMouseOver // Added If the Title or Content are too long to fit in the corresponding Rectangles, // the text is truncateed and the ellipses are appended (StringTrimming). using System; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Runtime.InteropServices; namespace CustomUIControls { /// /// TaskbarNotifier allows to display MSN style/Skinned instant messaging popups /// public class TaskbarNotifier : System.Windows.Forms.Form { #region TaskbarNotifier Protected Members protected Bitmap BackgroundBitmap = null; protected Bitmap CloseBitmap = null; protected Point CloseBitmapLocation; protected Size CloseBitmapSize; protected Rectangle RealTitleRectangle; protected Rectangle RealContentRectangle; protected Rectangle WorkAreaRectangle; protected Timer timer = new Timer(); protected TaskbarStates taskbarState = TaskbarStates.hidden; protected string titleText; protected string contentText; protected Color normalTitleColor = Color.FromArgb(255,0,0); protected Color hoverTitleColor = Color.FromArgb(255,0,0); protected Color normalContentColor = Color.FromArgb(0,0,0); protected Color hoverContentColor = Color.FromArgb(0,0,0x66); protected Font normalTitleFont = new Font("Arial",12,FontStyle.Regular,GraphicsUnit.Pixel); protected Font hoverTitleFont = new Font("Arial",12,FontStyle.Bold,GraphicsUnit.Pixel); protecte

    C# help database discussion

  • Display problem/bug
    E eynkram

    Hi All, This ones a stumper.... The thread gets started that loops indefinately. It checks a database for a new message and displays it in the taskbar popup window. In the thread class i created there is a block of code initializing the popup window. When you call the show function: taskbarNotifier1.Show("Chatter",what,500,5000,200); You get a small line on top of the taskbar. If I change the code to this.. taskbarNotifier1.Show("Chatter",what,500,5000,200); MessageBox.Show(what); The popup window shows as long as the messagebox is open. When I close the messagebox the popup disapears. This is very strange almost bug like. Does anyone have any suggestions or thoughts on this.. Please help!!! Thanks, Mark

    C# help database discussion

  • TaskbarNotification display problems
    E eynkram

    Hi All, This ones a stumper.... Some more detail.. The thread gets started that loops indefinately. It checks a database for a new message and displays it in the taskbar popup window. In the thread class i created there is a block of code initializing the popup window. When you call the show function: taskbarNotifier1.Show("Chatter",what,500,5000,200); You get a small line on top of the taskbar. If I change the code to this.. taskbarNotifier1.Show("Chatter",what,500,5000,200); MessageBox.Show(what); The popup window shows as long as the messagebox is open. When I close the messagebox the popup disapears. This is very strange almost bug like. Does anyone have any suggestions or thoughts on this.. Please help!!! Thanks, Mark

    C# help database mysql graphics learning

  • TaskbarNotification display problems
    E eynkram

    Hi, I recently downloaded the code from a project on this site called TaskbarNotification. It is a little msn style popup window that pops up on the taskbar. When using this class in a single threaded application it works fine. Now i have to use multi-threading because the program checks a mysql database for updates and pop's up the window when there is one. Since i need to loop indefinatly I had to thread the task. Now a line only appears at the bottom of the taskbar and goes away. If I add a call to MessageBox.Show("whatever") write after i call taskbarNotification1.show() the message box pops up and the taskbar notification window shows. I thought the problem could be the passing of the background bitmap to the taskbarNofication class. I tried to initialize the background bitmap in the actual class but get a resource error. I guess threads don't have access to the resources the Microsoft Studio makes you add. Any help would be appreciated.. Thanks.. Mark

    C# help database mysql graphics learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups