|
We have an application developed in C# with WPF(.NET Framework 3.0)
A main window with glass border,
and a child window contains WebBrowser puts on main window center.
--------------------------------------------------------------
WPF main window-> Child window-> frame control -> Page -> WindowsFormsHost -> WebBroswer
--------------------------------------------------------------
because we used .NET FW 3.0, so we have to puts WebBrowser in WindowsFormsHost,
and it can't show if we set the window AllowTransparency to true.
when user click 'start menu/shutdown', then Windows XP background fade to gray,
then we saw, the main window hide, but page window still display on the screen.
we have already set page window's owner to main window. it still have this issue.
so, i want to know, how to capture the Windows XP background fade to gray event?
Glad to discuss with you and best wishes.
|
|
|
|
|
HI All,
within few days i will finish my first project (i'm a novice ) so i need to install this software on 5 computers.I develop my project in WinForms(C#) with NET.Framework 3.5 SP1 so when i create the file app.exe after i will install it on the computers and at the point i need some suggest/advice 'cos 5 computers did not get Net.Framework 3.5 Sp1 and can not connect online to download the Net.Framework 3.5 Sp1 so i ask how i can install my software on these computers?
What i need to check in the the Prerequisites when i publish my software?
If you need more info don't hesitate to ask me i will reply as soon as possible.
Nice Regards,
|
|
|
|
|
Hi,
you could use a tool to generate a MSI-file, that will install your application and its prerequisites (using a bootstrapping-mechanism). Have a look at the WiX toolset (http://wix.sourceforge.net/[^]).
If you have only 5 computer to install on, you can do it manually. Download the .NET Framework 3.5 SP1 Redistributable *(there is also a version without the need to go online - http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe[^])
Then install your app by copying all files from your bin\Release folder.
If you use a database, you have to install the server too.
Hope this helps.
Regards
Sebastian
* Needs the Windows Installer 3.1
|
|
|
|
|
HI SeMartens,
thanks to reply me,
i will follow your second option ,i'm downloading the .NET Framework 3.5 SP1 Redistributable and istall it manually but i need to understand better.
When i create the app.exe in the Publish section of Visual Studio(2008 Sp1) and Prerequisites i need to check in the Windows Installer 3.5 and .NET Framework 3.5 SP1 or i will not check in ?
After when i will install my app on the computer i need to install first the .NET Framework 3.5 SP1 and Windows Installer 3.1 and finally my app?
Sorry for my poor knowledge it is the my first time i develop and install an app.
|
|
|
|
|
The Windows Installer 3.1 is the program that will handle the installation of applications. The installer of .NET Framework 3.5 SP1 needs the Windows Installer 3.1. If it is not present on the system, the .NET Framework will not be installed.
Do the following steps to install your app.
1. Copy the .NET Framework 3.5 SP1 install file to the pc
2. Execute it to install the framework
3. If this installation of the framework fails because of a missing Windows Installer 3.1, you have to download the file from the web and install the Windows Installer.
4. Go to Visual Studio, select "Release" from the "Configuration Manager" (must be in the toolbar)
5. Build your application
5. Copy the content of your bin\Release folder of your solution to the pc where you want to use the app.
6. Run your app.exe -> if everything is correct your app will run now
|
|
|
|
|
Hi Se Martens,
your way so clear within few days i will try it as you told me and i will let you know how is the result.
Thanks so much for your support
Have a happy day
|
|
|
|
|
HI Martens,
that's all right ,i follow you directory and i could install the software so well.
Thanks for your support.
Have a nice day.
Bye
|
|
|
|
|
Hi,
I want to copy a HTML link to clipboard as a clikable element how to get this done?
Your Desktop in the Cloud
When i copy this into Clipboard using C# it is returning me a plain string but i want to see
http://www.mycloudbuddy.com
Thanks
|
|
|
|
|
You can use Linklable in Winform.
|
|
|
|
|
Hi
TreeListView[^]
Hi
I am using treelistview in my project, but it is not properly working in MS windows 2008 X86.
I am getting error in before & after label edit. In System.Windows.Forms.TreeListView.dll
System.Windows.Forms.TreeListView.WndProc (ref System.Windows.Message m = {msg = )
WM_REFLECT & WM_Notify
Line 896.
Can you give some guideline in this regards?
Thanks
hiren shah
|
|
|
|
|
Hi,
I am using excel RTD in my project, its work fine,
Using following event (SelectionChange) I am changing color of cell based on data.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
But this spreadsheet must be protected from some of our users from destroying the cells that have formulas or conditional formats.
But if I protect sheet I am not able to change color of cell.
So I want to protect sheet as well as change cell color using macro.
My first thought was to unprotect sheet in the beginning of the code, change colore and then at the end, protect it back down.
But this would mean protecting and unprotect every time that cell change color.
Changing cell color is so fast so I think it is inefficient.
Can you suggest what to do in this scenario.
Thanks
hiren shah
|
|
|
|
|
Does anyone know how to view PDF file in winform?
thanks
|
|
|
|
|
You need a pdf viewer control. If adobe reader is installed on computer you can use com library that comes with it. If you need pure managed one, I'm sure Google can help you
|
|
|
|
|
Hi,
I've two code snippets just wanna ask which is the right way of writing and why?
Fist snippet
--------------
DataGridView grid = new DataGridView()
foreach(string colName in ColumnNames)
{
DataGridViewColumn gridCol = null;
if(<some logic="">)
{
gridCol = new DataGridViewColumn();
}
else
{
gridCol = new MyColumn();
}
grid.Columns.Add(gridCol);
}
Second Snippet
----------------
DataGridView grid = new DataGridView()
DataGridViewColumn gridCol = null;
foreach(string colName in ColumnNames)
{
if(<some logic="">)
{
gridCol = new DataGridViewColumn();
}
else
{
gridCol = new MyColumn();
}
grid.Columns.Add(gridCol);
}
--Akki
|
|
|
|
|
Obviously, the 2nd snippet is better because many temporary variables will be generated in the 1st snippet. That is, more memories are occupied and more initialization are done.
|
|
|
|
|
Thanks i was expecting the same.
Is it possible to know how much memory is being consumed or utilized. I mean any tool you know or by writing some code.
--Akki
|
|
|
|
|
As a caveat to that it can be useful for support reasons to have temp vars availableduring the development stage.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Try this:
DataGridView grid = new DataGridView();
foreach(string colName in ColumnNames)
{
grid.Columns.Add(
([condition]) ?
new DataGridViewColumn() :
new MyColumn());
}
And btw: Don't care about performance at all, as long as you have no hard evidence (i.e. measures or customer complaints) about it. During development, you should only care about the correct functioning, behaviour and readability of your code. Use unit tests to reliably assure this.
Regards
Thomas
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
it is all the same, in debug build you shouldn't care, and in release build the compiler will optimize and generate the same code for both.
However 1 has better style if you ask me since it keeps gridCol's scope inside the loop.
|
|
|
|
|
Hi Peers
I am using Visual Studio 2.0
I am binding DatagridView using List and then assigning DisplayIndex Property values to its columns as per my requirement. When I bind this order to datagridview control its not reflecting.
Please suggest what additons or corrections need to be performed.
Prasanna N
|
|
|
|
|
I think you will find the column oder is reset when you do the binding to the list. I always set the order in the underlying data source (list) before binding. You may be able to change the order after binding.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Dear All,
I have developed an application which connects to ftp and manipulate with ftp using Linux command with System.Net.Socket
through this class i am sending my commands as bytes and i am receiving my data the same as bytes too.
I am using "NLST *.*" in the folder to get all files, seems this command works fine.
i am searching for a commands where it lists both directories and files in ftp root.
i tried "ls,dir" with its args but it didn't work for me, as the server response is "ls,dir" is not supported by server.
i also used LIST command but it returns more data which i am not interest in.
is there any specific command where it can list folders and files in ftp.
i appreciate to have any links or references of Linux ftp command as NLST,LIST...
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Did you think about using a ready-made FTP library? I used edtFtpNet/Express ($149) with great success. They also have a free version. Check their site and download a trial copy: http://www.enterprisedt.com/[^]
|
|
|
|
|
I need to write a program in C#.NET that will run as a windows client, connect to a server, and determine if any updates are available for a program installed on the client. If there are updates, I need client to download and install the updates.
The problem is I have no idea how to start! Does anyone know of any online resources or even a good book that will help me learn how to code this type of application?
Thanks!
Robert
|
|
|
|
|