Should I use "Windows Forms Application" or "WPF Application" or ..... ?
Hi everybody!
I want to become a master programmer.
I want to programming "Windows Desktop"
I am using Visual Studio Ultimate 2013 by language C# on Windows 8 OS
I am confusing because Should I use "Windows Forms Application" or "WPF Application" or .....?
which one is better?
Help me!!!!!!!! Please!!!!!
Thanks a lot!
if possible, please send me "step by step exercises about the WPF Application to email: [email protected]
thanks again
Although I don't have much experience with WPF, only Windows Forms, this blog post might shed some light on which decision you should make:
http://rachel53461.wordpress.com/2012/10/12/switching-from-winforms-to-wpfmvvm/
If you are looking to just add a quick and dirty UI on top of a small script or executable tool, Windows Forms would be the answer, as it is very easy to learn and use. However, since you have the best tools currently available, and you say you want to do
it the right way, I would say learn WPF now. You will benefit from it later on.
Similar Messages
-
Mavericks Bootcamp! Should I use Windows 7 or 8? x64 or x86?
What version of Windows works best with Mavericks Bootcamp? Should I use Windows 7 or 8? x64 or x86?
My preference Windows 7 because Windows 8 is designed for and works best on a touch screen computer.. Regardless, use 64 bit.
-
Should I use Windows for Filetopia?
I'd like to download Filetopia but their info says it's only compatible with Windows.
At this point, I haven't used Windows for anything and am concerned about viruses.
BTW, I was invited into a secure chat group on Filetopia.HI,
Installing Windows on your Mac requries doing your homework first. It can be a daunting task at best depending on your computer background and experience.
To install Windows on a Mac just for one application which would deem your Mac vulnerable to viruses (on the Windows partition only) doesn't quite seem worth the work.
If you were to install Windows using BootCamp, you might want to check out the BootCamp Manual here first. http://manuals.info.apple.com/en/bootcampinstall-setup.pdf
Carolyn -
Should I use Windows Live Mail or Outlook Express ...
I have always used Windows Live Mail, as it is a very simple and pleasant program to use - great graphics, interface and reminders.
I found Outlook way too fiddly and technical, with a very boring interface and comparatively poor reminders that email has arrived.
However, since getting my E71 setup with Nokia Messaging, I have overcome this for the sake of being able to sync my contacts and messages - Outlook 2007 is now set as my default browser.
This was ok, but now when I use Windows Live Messenger I get email reminders up - and clicking on those takes me into Windows Live Mail.
I just want one, streamlined email/messenger service - one of these email managers must be deleted!
- Can I sync my E71 into Windows Live Mail instead of Outlook?
OR
- Can I replace Windows Live Mail with Outlook 2007, as the email manager used by Windows Live Messenger to open emails?
I want everything done with one email browser!
Message Edited by alexjholland on 23-Aug-2009 02:31 AMYou can use iCloud Mail with Windows Live Mail, but not Calendars or Contacts.
If you want to use iCloud on Windows download EMClient, you can access the core services (Mail, Calendars and Contacts) using it. Installation and configuration will be manual. -
Print functionality using PDF form in a webdynpro application
Hello! All
Currently, we have a webdynpro application and we need to provide the print feature to print the content of the iview display on IE browser. We try the File-> print feature provide by Microsoft through IE but this doesn't work. We are looking for any other option like print to pdf form. We don't know if it is possible. Is there any tutorial, help or anything that can help us to print to pdf form. Please share any other suggestion, comment and it will be much appreciated. Thank you very much.Hi,
The content (which is a pdf content) can be exported as a PDF from a WD Application. For this you can use File Download control whose source is in the form of bytes (which is PDF content).
Do you have the PDF content already generated?
If so it is very easy to generate PDF from WD.
If you need further help, kindly let us know.
Thanks and regards
RK -
How to load and use JVM form other types of applications ?
Hello
I have a site that runs with ASP and I would like to execute some java applications to output some of the pages.
I there a way to execute java programs in the JVM without having to create a new process running java.exe ?
Like using and ActiveX component or a special .dll from Sun. How does a web browser run applets ?
I can not use .jsp directly for my pages because my client also uses some custom language (MediaBase)
they bought that works only with ASP.
Thank you,
Timothy Madden,
RomaniaYes, or something like IPC with a service process, as Michael said.
First I wanted to know if JNI has an option the create a shared VM, since my client's web server has some other processes running that also run the JVM. Now it looks like JNI will load the JVM in-process, although the documentation says little about this, but the InitArgs structure has no 'is_shared' member.
But all these are complicated for some web page, difficult to invoke from a scripting language, and there is too much effort just to use some library that happens to be written in Java, which I use to export search results into an Excel workbook (the library is Apache POI). I mean I would do it, but my client will not understand the need for this effort. Than I also want some data transferred between my web script and the java application.
So I am going to stick to java.exe and create a new process on every hit, with the standard input, output and error files redirected to some vars in my script. At least until I find out more.
Thank you,
Timothy Madden,
Romania -
Use windows, want MAC, write openGL applications
Hello,
Apparently I am still a fool in using a MAC and i don't have a
clue about using it but i want to buy such a thing.
2 Problems:
I am a hobby programmer of OpenGL and want to know wether programming MAC application is like (with "like" i don't mean "exactly like" of coure) Win32 API. Ok, All I want is creating
OpenGL applications on MAC. Is this a big problem for a young guy like me?
Next:
I am using much Win32 Apps like Milkshape3D (for OpenGLprogramming). Are there similar Apps on Mac which effect exactly the same or are there Win32 emulatoren on which WinApps can be ran on Mac.
I know i am a fool, please don't mention it in your answers again
Thx for all!Hi,
Writing OpneGL programs on the mac will be no problem for a young guy like you. Hillegass's book has an example OpenGL/Objective-C program in it. There are quite a few examples on the Apple ADC example code pages too (it's worth joining ADC - there is a free membership option which is good enough for hobbyists like me). I'd recommend learning Objective-C to program OpenGL stuff - nothing beats Objective-C in my opinion (it might even wean you off OpenGL - have a look at quartz 2d and core image). You'll be using Xcode as the IDE - it's good, powerful and easy to use.
As I don't use a pc I can't say anything about your second question except dump the pc, it's holding you back...
Cheers,
MrFluff -
Borderless Window with an option to resize but should not use windowchrome property in wpf
Hi,
I want a complete border less window with an option to resize from all sides of window in xaml but it should not use window chrome property. Can we able to achieve this with out using window chrome property? I also used allow transparency property but it
is not working to my requirement. Help me on this
KarthikHi,
I hope you are using "AllowTransparency" along with "ResizeMode"
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="300" Height="300"
WindowStyle="None"
AllowsTransparency="True"
ResizeMode="CanResizeWithGrip">
</Window>
Now "AllowTransparency" can lead to Memory leak so you may refer to below style property
<Style TargetType="Window" x:Key="DialogWindow">
<Setter Property="AllowsTransparency" Value="True"/>
<Setter Property="WindowStyle" Value="None"/>
<Setter Property="ResizeMode" Value="CanResizeWithGrip"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Window}">
<Border BorderBrush="Black" BorderThickness="3" CornerRadius="10" Height="{TemplateBinding Height}"
Width="{TemplateBinding Width}" Background="Gray">
<DockPanel>
<Grid DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="50"/>
</Grid.ColumnDefinitions>
<Label Height="35" Grid.ColumnSpan="2"
x:Name="PART_WindowHeader"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"/>
<Button Width="15" Height="15" Content="x" Grid.Column="1" x:Name="PART_CloseButton"/>
</Grid>
<Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Background="LightBlue" CornerRadius="0,0,10,10"
Grid.ColumnSpan="2"
Grid.RowSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="20"></RowDefinition>
</Grid.RowDefinitions>
<ResizeGrip Width="10" Height="10" Grid.Column="1" VerticalAlignment="Bottom" Grid.Row="1"/>
</Grid>
</Border>
</DockPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
The above code reference is from this
link.
I hope this helps to resolve your issue.
Thanks & Regards,
Anubhav Bajpai -
Issue with worksheet.Select(true) after hosting Excel window in WPF application
The issue is with Office 2013.
We are hosting excel workbook window in WPF application using HwndHost class. In overridden BuildWindowCore method of HwndHost class, we are creating a MDICLIENT Window and setting this MDICLIENT window handle as parent for Excel
main window handle and returning HandleRef object of MDICLIENT window handle from BuildWindowCore method.
Once HwndHost control is loaded, we are selecting sheet of excel in the loaded event of HwndHost control. The code for selection of sheet is given below.
dynamic workSheet =
this.excelApplication.Workbooks[1].Worksheets[sheetName];
this.excelApplication.Workbooks[1].Activate()
workSheet.Activate();
workSheet.Select(true);
The first time execution of
workSheet.Select(true)
halt for few seconds and then it throws exception “System.Runtime.InteropServices.ComException”
with message “The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))”.
But it executes successfully without delay on subsequent calls. Sometimes the execution halt for minutes on different Systems.
This absurd behaviour is seen only once in application instance life time and that too after excel window gets loaded in WPF application. If we execute
workSheet.Select(true)
before loading of window then it executes properly. Once
workSheet.Select(true)
executed for first time with exception, it executes successfully without delay on subsequent calls.No, I dont have any macro in the sheet and it is happpening with all workbooks. The problem is consistent with all workbooks and also it throws exception only for first time in the application. If I execute it again in same application instance, it works
properly. -
XAML Design window wont open in C# WPF application
I am currently following some C# tutorials on MVA.
we have just moved from console applications to WPF applications.
For some reason the Designer doesnt open when I create a new project. I get the code screen but not the form designer half (see Below).
I can give a link to the onedrive folder, but for some reason i am unable to post links or pictures.
This is a clean install of VS express 2013 so no settings have been changed. (or set up..)
Any help or suggestions would be greatly appreciated.
Thanks!Hello Matt,
The image shows it is a xml file. Can you open your MainWindows to test in your first image? I can see your second image seems do not have problem.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Deploying reports for a WPF application
hi,
we should create and deploy reports for a WPF application. The app is developed in VS 2013, following the MVVM pattern and using Oracle DB.
We are newbie with this matter, so we are searching the best approach to accomplish the job. Our goal would be detach reports from the deployment package and store them to a server folder, so that users can run them by editing something like:
http://myserver/myapp/reports/[reportname]
The issue we are experiencing is that reports seem to be launch from the user's computer, and need a Oracle Client installed on each client computer to load data, while the application works with no Oracle Client installed. We tried both Crystal Reports
and Report Viewer, and installed an Oracle Client on the report server; but we could not get them to work. we also tried to install ReportViewer Reporting Service, but we dont know how it works. notice that company policies forbid installing Oracle Client
in the client computers.
Can anybody give us some hint on what is the correct approach to solve our problem? thanksHi,
ClickOnce deployment allows you to publish Windows-based applications for simplified installation.
For how to create Report , You'd better consult following forum:
#Report Viewer
http://social.msdn.microsoft.com/Forums/en-US/home?forum=vsreportcontrols
Oracle and Crystal Reports is third party software,I recommended to consult the software provider directly, I think they can give more precise troubleshooting.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Add SOAP header before the WebService request (Windows Forms)
I have to add this header before my Request:
<h:FordDealerIdentity xmlns:h="urn:ford/star/security/v1.0" xmlns="urn:ford/star/security/v1.0">
<soapenv:Header>
<SiteCode>SZBRA</SiteCode>
</soapenv:Header>
</h:FordDealerIdentity>
My request:
var srv = new ConsumerServiceScheduleV1();
var a = new RetrieveScheduleRequestType();
var b = new DealerType();
var c = new ScheduleType();
srv.Credentials = new System.Net.NetworkCredential("","SZBRA05168");
//ScheduleType[] ret;
b.Code = 05168;
b.Name = "BraconCampos";
a.Dealer = b;
a.SchedulingFrom = new DateTime(10/10/2014);
a.SchedulingTo = new DateTime(15/10/2015);
c.SchedulingCategory = SchedulingCategoryType.Regular;
srv.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2(@"E:\Agenda Ford\Certificados Agend@Ford\BracomCampos.pfx", "qaz123"));
textBox1.Text = srv.RetrieveSchedule(a).ToString();Is Windows Forms! :)
And what forum deals with SOAP and Web services more than any other forum? Many types of client based applications such as Windows form, WPF, Sliverlight, Windows service classlib project like a BLL and so forth deal sith SOAP and WEB.
How is what you are talking about a Windows forms issue?
My Application is Windows Forms. I need to know how to insert this header before request. -
Error when startup WPF Application with Crystal Report !
Hi!
I have an error when build & run a WPF Application with Crystal Report. Can anyone help me ?
First, I created 2 project, one is the WPF Application & one is Shell Start Up project (to show loading screen, then show main window when loaded, is WPF Application too)
WPF Application:
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
// crViewer is SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer
crViewer.ViewerCore.ReportSource = new CrystalReport1(); // Assign report to viewer
Shell Startup:
[STAThread]
public static void Main(string[] args) {
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Application app = new Application();
ShowLoadingWindow(); // Show loading screen
MainWindow mw = new MainWindow();
mw.Show();
app.Run();
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
// Exception was throw here
And here is the exception & it's stack trace
Message: Object reference not set to an instance of an object.
Stacktrace:
at SAPBusinessObjects.WPF.Viewer.ViewerCore.<>c__DisplayClass1.<set_ReportSource>b__0()
at SAPBusinessObjects.WPF.Viewer.DelegateMarshaler.<>c__DisplayClass29.<QueueOnThreadPoolThread>b__28(Object )
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()As far as I know the error is typically due to the fact that I'm trying to address an object that has not been set. E.g.; this could be due to bad scoping, bad inits/constructs, trying to access a member of a class without instance object and so on. I suspect this is a design \ code issue. You might be able to confirm this using [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx].
Other than that, I'd recommend creating a phone case here:
http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369
- Ludek -
SharePoint People picker control in Windows form
Hi All,
I have a requirement wherein, I have to create an outlook add in to save data into sharepoint list. I have created a sample outlook add in to save the data into sharepoint list (all columns are of text) using windows form and it works fine. However there
is one field in form which requires people values to be picked from AD and saved to sharepoint list.
I have browsed the net but could not find any useful information. Is it possible to use OOB people picker in windows form? If not what are the other ways to achieve people picker functionality in windows form.
Thanks in advance.
Regards,
VinayakHi,
The
PeoplePicker control is part of the Microsoft.SharePoint.dll, it will only work on SharePoint hosted pages.
Here is a link about how to use PeoplePicker control:
http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/
Anyway, you can fetch Active Directly users as the link below:
http://www.codeproject.com/Tips/599697/Get-list-of-Active-Directory-users-in-Csharp
Best regards
Patrick Liang
TechNet Community Support -
Saving a PDF or DOC file into Oracle 9i using Developer Forms 10g
Hi guys,
I want to save a pdf or doc file into oracle 9i. I am using Developer 10 g. Please help me;
1. What datatype field should be in database table to store such file.
2. Which code should I use in Forms 10g to display open file dialog, get the name and save that into database table.
Thanks in advanceWEBUTIL is a library used with forms to interact with the client. With Forms10G the library comes shipped with the developer suite, for forms 9i i'm not sure, check the forms-page at otn if there is any download available. For documentation about how to do a file-upload, simply search the forum, there are lots of examples.
Maybe you are looking for
-
Error while doing ABGL Asset Credit Memo
Hi Friends, I am getting the below error while doing Asset Credit Memo in ABGL. Please help me in fix this issue. Balance for transaction type group 10 negative for the area 01 Note:In Asset Explorer Fiscal year start Asset value is 98,425.45 and Cha
-
Hi all, I have created 2 tabstrip screns which contain ALV GRID DISPLAY in a container with dynamic internal table and editable columns .I want to capture the edited value from this ALV GRID display.I have used SET_TABLE_FOR_DISPLAY and for this d
-
ESS - Business package and training records
Which BP revision we need to import for Training Records for ESS implementation? I am thinking Training recoreds are not available in Business Package ECC 6.0 is it true? how can we take these applications from the old versions of Business Packages (
-
Flex 4.1 change log?
The stable build is out, anyone know where to get the change log for this release?
-
I accidently deleted a video I recorded on my Iphone 4. Is it possible to get it back?