Hi,
How can I execute some code, once a day.
e.g. call MyMethod() at 3pm every day.
(provided the app is running of course)...
Im trying to do this in c# winforms.
How can I disable the Excel export option when I generate a report, via the ReportViewer, in my winforms application?
ADDITION:
In particular, I want to hide the toolbar button that refers to Excel output/export task.
Hi,
I have a DataGridView in a Winforms application containing a collection of items. Each item has an image and various other details. I know it is possible in WPF, but can you get a tooltip to display an image and a more structured set of details then just plain text?
Thanks.
I have a WinForm program that checks a database for changes, and if there are any, it will open another WinForm telling the user what is happening (the popup WinForm has some special functionality making a MessageBox insufficient for this task). Each time one of these popup WinForms shows up, a new icon shows up in the system tray and does not go away even if you hover over it (this isn't a tray refresh issue).
What I'm wondering is how to get the popup WinForm to display no tray icon at all.
I have created an application that runs in the taskbar. When a user clicks the application it pops up etc. What I would like is similar functionality to that in MSN when one of my friends logs in. Apparently this is know as a toast popup?
I basically want something to popup from every 20 minutes toast style fom the application in the taskbar.
My existing application is winforms based written in C# with .net 3.5
Cheers
I am working on C# application which is like a small search engine. The user will enter a word and the program will return the files that contains this word.
I have an array of file paths (as strings) and I want to show these paths as links in a DataGridView, so that when the user clicks the file name the file will be opened.
Note: I am working on C# Winforms, not ASP.net
Using winforms in vs2008. I have a DataGridView and I would like to detect when the vertical scroll bar is visible. What event should I register for?
I am adding the summing the each cell value in the last column of the grid and displaying that value in a textbox at the bottom of the DataGridView.
I would like this textbox to stay lined up with the cell values (I have made them right aligned since it is $$ values) even after the scroll bar is present.
I have a .NET C# winforms application which works great on my machine, but if I try to run it on another machine, it doesn't start up. No error message, no crash message, no window - nothing.
I've found that this always happens when a referenced assembly is missing. I guess this is .NET's general behavior and not specific to my app, is it?
Is there any way to configure .NET or my application such that it spits out a "referenced assembly missing" like error message in such cases?
In Windows XP's CMD, the Luna border isn't applied to it.
Is it possible to do it in a similar way in Visual C# Winforms, for an application? I just wonder how it's done, of course I am not going to force any of my applications to not use the beautiful XP/Aero theme :P
Thanks.
I have a Winforms Gui in C# that allows a user to draw a rectangle on a display of a tiff and save the position, height, width etc.
Basically, what I want to do is take the saved position, height and width of the rectangle and clip that area into a sep. bitmap that can then be passed to sep. method that will just OCR the new clip of the bitmap only.
What is the best way to do this?
I need to display a listview in winforms which should not have any lines between columns. I tried GridLines=false and also tried setting HeaderStyle to ColumnHeaderStyle.None. But this is not working. I want to remove the 2 vertical lines coming in the middle.
I need to display a ListView in WinForms which should not have any lines between columns. I tried GridLines=false and also tried setting HeaderStyle to ColumnHeaderStyle.None. But this is not working. I want to remove the 2 vertical lines coming in the middle.
The winforms default font for menus in mono (Ubuntu 10.04) does not support german Umlauts. While I can set the font for form content (this.Font), I could not figure out where to configure the menu font. Any suggestions?
I'm learning Chinese at the moment and I have gotten my hand on a Chinese dictionary definition.
Now I would like to make an interface.
All I really want the application to do is when I point my mouse pointer over any text on the screen (in any window), it would identify the text I am pointing at and then display a small form over it, which would the chinese transaction.
Is that possible to do? Can WinForms apps interact with windows outside of it's own application?
I am coming from MS-ACESS world and their programing habits, There was nice utility to make form from table, You can simply hit right click on table and make form for it. Now I looking for something similar for Visual Studio and WinForms. I am trying to develop simple application for which I need to have more then 30 forms for handling data, till now I designed database tables, keys and sprocs in SQL2008 and before I start coding forms for handling data, I asking You for main guidelines how to save my time while coding forms.
Hello,
I am having trouble capturing Ctrl+PageUp keystroke in a ListView control in WinForms application.
I am using this code to capture keystrokes -
private void ListViewEx_KeyDown(object sender, KeyEventArgs e)
{
...
if(e.Control){
if((e.KeyCode ^ Keys.Left) == 0)
MessageBox.Show("Left"); //shows messagebox
else if((e.KeyCode ^ Keys.PageUp) == 0)
MessageBox.Show("PageUp"); //does not
...
}
Do I need to dive into WndProc to process this key? Thanks.
Title says it all. What is the difference between a DataSource and DataAdapter? I'm trying to decide if I should descend from IDataSource or IDataAdapter for code to be shared between Winforms and WebForms and I can't seem to figure out what the difference is other than slightly different ways to use them.
So I have a winform that has some winforms controls on it. But in the center of it, I want to show a transparent number on top of everything. Say 60 pixels size.
I tried a label and even tried to create a custom control but the transparency didn't work.
Any ideas how to do this?
This number will change programmatically at runtime several times.
I am way too indecisive.
I have an idea for a (admittedly craptastic) GUI program, so I start writing it in C# .NET WinForms.
Then like halfway through I'm like, damn I should have written this in Qt.
So I start writing it in Qt and remember why I hate C++ STL iterators so much.
So in my head I go
LINQ C++ STL
So I'm like, maybe I'll do it in WPF, I like markup to make UIs hey this is kinda like web development (read: ez pz)
BUT ITS LIKE WHY GOD WHY CANT I JUST PICK ONE AND COMMIT
Hi All
What Tips And Tricks Exist in C# And .Net FrameWork To Implement Fast UI in Windows Application? This Tips And Tricks Must Be Implement in WinForms And isn't For WPF Applications.
In This Scenario My Application Use A DataBase To Save his Data.
Hi,
I'm creating a custom WinForms TextBox control, like this:
class MyTest : TextBox
{
protected override void OnEnter(EventArgs e)
{
this.BackColor = Color.Yellow;
}
protected override void OnLeave(EventArgs e)
{
this.BackColor = Color.White;
}
}
When I build the project, I cannot see the control. Can anyone explain why not?
Thanks in advance.
Looking for any decent grid styles designer with standard features such as
select columns from a catalog
Change the ordering of columns
set column font/bold/italic etc.
set column styles - fixed left / right
etc.
Have done it before but don't have access to that code
Looking for any near ready to use sample before reinventing the wheel :)
preferably winforms but can use wpf too
Are there solutions available for allowing users to define report layouts within a WinForms app? We are playing with xml, xslt, and Word have some ok results, but are wondering if there are better options.
We would like to:
Set margins, padding, positioning of elements
Declare column based or continuous report elements
Does not need to do typesetting
Hi,
How do I implement Auto-Scrolling (e.g. the ListView scrolls when you near the top or bottom) in a Winforms ListView? I've hunted around on google with little luck. I can't believe this doesn't work out of the box!
Thanks in advance
Dave