I should have also mentioned that when the image in panel1 (the app allows different sized images to be loaded) has a width which is less than the minimum width of the frame window, panel2 is filled with garbage.
Also, I do want to allow resize because the app has a status bar and other panels that are affected by resizing.
assume PC-A as server,PC-B as client.
Printer is physically connected to PC-A server,which is now can be called as Print Server(i.e,PC-A server).
The problem is as below..
Here the user is at PC-B(client machine),then he opens a normal word document(not through my application) and gives the normal file print...Then Immediately i have to invoke my .net windows application which is used for some accounting purpose.
To my knowledge I thought to write a service to watch/catch the spool file generation at client PC-B machine and then it should invoke the windows application..But actually the spool file is generated at Server end but at client end...
I have one chm file with full details. I linked this chm file with user defined function and it ill work and popup the chm file.But my problem is how can set help file with in which functionwizard is displayed the curresponding help.htm will show in the chm file
How can set in our application with html link
another problem is if i create setup for this how can i set the path for this chm file
i'm developing a small C# application with VS2005,and i would like to let the user choose whether to immediately run the application at the end of the setup process or not,simply using a checkbox,similar to the typical ones who let the user display,for example,the "readme" file of a program.
Unfortunately,it seems i can't edit the last dialog of the setup process (the "Finish" dialog) nor i am able to move it up or delete it (in order to have as final dialog one with the checkboxes i want):i tried it but i got the error "Finish dialog must be the last dialog in the End group.".
Using what? If you are using Visual Studio or any other product you are limited to what it can do. If you want to take over development of your Windows Installer file you can use something like Orca[^]
I'm trying to find a way to print a form containing Image at the top(logo), a caption under it, than a list and some remarks under the list. I cant use Office application such as Word, there is a way to print form with Graphics using PrintDocument component but how do i add the list?
I will be happy to get any help with it!
I am trying to create plug-in for outlook. This plug-in will gets contacts info from web service. I want to add a button in outlook tool bar which should sync all contact into outlook when user clicks on it. I am using C# and .NetFrameWork 2.0. Please help it is very urgent. Thanks in advanced.
I need to create an .NET CF application for Windows Mobile 5/6 devices which involves showing the user a GRID of "N x M" cells. User cannot edit cells or create new cells. It just a GRID display with static text (Sample - R1C1, R1C2 etc.) and the user should be able to move from cell to cell and I should be able to highlight the cell they are moving over.
1. How do I use DataGrid control and not use any data source. In other words I would like to set the number of rows and columns for the grid and need to be called back when the Grid wants to populate each cell. Somthing similar to ListView where one have a callback that will be called to fill the list.
Could you please guide me How I can achieve that?
2. I am looking for a some sample code for .NET/C#. Usually I get the Win32/C++ samples from the Microsoft Visual Studio installs. But I couldn't find any .NET CF samples from MSDN of .NET CF 2.0 install.
I have two test apps (acquired from different sources) that include the System.Windows.Forms.TrackBar. The relevant settable properties seem to be equivalent and in the VS Designer, the TrackBars look the same in both apps. But when running, their appearance is different. One has the green bars on the slider and the other doesn't. There must be something different, but I can't find it. Will someone point me in the right direction?
This one shows the green highlight bars. All this code is in the form constructor.
This one doesn't have the green highlight. This code is in the InitializeComponent method. I tried it without the BeginInit and EndInit calls, but that made no difference. The non-default AutoSize = false (from above) made no difference either.
trkBalance = new TrackBar();
trkBalance.Location = new System.Drawing.Point(56, 46);
trkBalance.Maximum = 10000;
trkBalance.Minimum = -10000;
trkBalance.Name = "trkBalance";
trkBalance.Size = new System.Drawing.Size(108, 45);
trkBalance.TabIndex = 1;
trkBalance.TickFrequency = 1000;
trkBalance.Scroll += new System.EventHandler(trkBalance_Scroll);
if all the code you've shown is running on the GUI thread (say inside a
button_click handler) then none of it will have a visible effect, since
the GUI actions will get queued until your code reaches its end: it is only
when the GUI thread is done dealing with the button click that it can start executing the queued stuff in a hurry.
Do you really want to show a form and (almost immediately) close it again??
Normally a form gets closed by an explicit user action, such as clicking
an OK button or the close box.
Remedy: reorganise your code, at least separate the Form.Close from everything
else (use another event, such as a button click, a timer tick, whatever).
BTW: DO NOT include delays in handlers, don't try Thread.Sleep() inside a
button click handler, it does not make any sense whatsoever.
Mind you there is one dangerous hack that may or may not be useful here:
include some Application.DoEvents() calls; they are bound to cause weird
effects if used inappropriately though.
There shouldn't be a button window close handling.
This should be a status window running while actions (calling C# methods and functions) are running. That's why it should be opened when actions start and closed when finished.
when you want the form to update/refresh itself. (I wouldn't do this after every single content change, but probably after a group of updates). Invalidate() doesn't immediately update the form, but is usually sufficient. If Invalidate() doesn't update it when you expect, try calling
From my understanding, Refresh() prompts an immediate redraw of a form (although I could be mistaken).
Tried Refresh() and worked , Invalidate didn't do it Form won't only be displayed correctly in debugging mode. But that's ok.
The best way of practise would be if I can do a periodical refresh on the form. But use of form object in Timer section and TimerElapsedEventHandler at the same time produces an error saying refresh can't be done when form is in both sections. If the user switches away and back to the program it seems as if the app has hung up. Because it's waiting for finishing the current process.
I want to send and receive msgs using SIM .
I created an App. and I want to add a feature to it .. like sending a msg to specified number...
actually, what I want to do is , when I send a msg "OFF" to my PC from anywhere , I want it to shutdown .
Just I want to know how can I send and receive , plz ?! (VB.net)
I have a datagridview bound to a dataview.
The user click on a column :
- add a sort column type system.int
- set the dataview.sort to the column field clicked
- add several datarows to the datatable ( partial total row )
- while adding the total rows update the column added at the beginning to a numeric sequential value ( 1,2,3,4,....)
- when the rows end change the dataview.sort to the sort column
If the user click to another column :
- delete the rows that contains the total
- redo everything for the new column that the user click on it
The problem is that everything is ok, because I see in the datagrid the sort column added with the sequential correct value, but the dataview doesn't update .
im currently working on a project that requires me to print a card,the card is a usercontrol with come labels on it with a backroundImage as a bitmap file and a color card printer ,the problem is when i print it only prints the labels and not the backround ,so i have a white backround with my labels ,i tried it on a normal paper color printer and it still does not work.
any help would be much appreciated
Last Visit: 31-Dec-99 19:00 Last Update: 31-Jan-23 1:33