IT Community - Software Programming, Web Development and Technical Support

Windows Applications

This is a discussion on Windows Applications within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, Share all your Windows Application using this......


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:36 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Windows Applications

Hi,
Share all your Windows Application using this...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-08-2008, 11:43 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
Windows application programs are EXE files for DOS and Windows systems. An EXE file is an executable file, which is a file in a format that the computer can directly execute and are not easily read by humans. Executable files for Windows and DOS systems have an.EXE extension.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 11:46 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
The way of using Windows application is user friendly.we can just drag and drop the Controls from the toolbox instead of coding.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 01:08 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: Windows Applications

Hi,
The language specially designed to help developing Windows application is Visual Basic. And now it is Visual C#.

The very important tool to program in Windows is VC++.
__________________
--Kirubhaa. Born to win--
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 04:40 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: Windows Applications

The API is the very important concept in Windows Programming.

The acronym of API is "Application Programming Interface".

The API is used to interact with the OS directly. The languages such as VB will call these APIs indirectly. In VC++ the APIs will often be called directly in our program. We can also call them in VB.

The APIs are the means for the Applications to communicate with the OS.
For example we are justopening a form in VB or a window screen in Word or anything simply. But on the background the Application corresponding to the task of opening the window will call the CreateWindow() function from the Operating System.

The createwindow function requires 12 paramenters and it will looks as

hWnd = CreateWindowEx(WS_EX_TOOLWINDOW,
ClsName,
WndName,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
hInstance,
NULL);

Thus a simple event in windows is possible only after a complicated job in the behind
__________________
--Kirubhaa. Born to win--
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 04:16 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
could any one tell me,how to avoid Flickering of an image during OnPaint Event.I used the following code to avoid flickering,even then it seems to happen.

this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);

Tell me the possible alternative.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 02:44 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

hi,
How to show the spinning effect for an image in Picture box while rotating it towards 90,180,270 and 360 degrees?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 11:50 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
I found solution for this.We can show the spinning effect by using Timer Concept.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2008, 08:07 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
Can we able to set opacity for the image in PictureBox?If yes,let me know how to do.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-24-2008, 10:38 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
I m getting the following exception while trying to place userControl in the form.
Failed to create component 'UserControl1'. The error message follows:

'System.NullReferenceException: Object reference not set to an instance of an object.

at Demo.UserControl1.UserControl1_Load(Object sender, EventArgs e) in D:\Work Area\Demo\UserControlComboBox.cs:line 38

at System.Windows.Forms.UserControl.OnLoad(EventArgs e)

at System.Windows.Forms.UserControl.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.ControlCollection.Add (Control value)

at System.Windows.Forms.Form.ControlCollection.Add(Co ntrol value)

at System.Windows.Forms.Design.ParentControlDesigner. AddChildControl(Control newChild)

at System.Windows.Forms.Design.ParentControlDesigner. AddControl(Control newChild, IDictionary defaultValues)

at System.Windows.Forms.Design.ControlDesigner.Initia lizeNewComponent(IDictionary defaultValues)

at System.Drawing.Design.ToolboxItem....'
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-28-2008, 03:54 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
I overcome the above mentioned error.It s due to , i m trying to load picture in the paint event of the userControl.Here while Paint method is invoked the picture is null.So I checked the picture not null during paint method to avoid this error.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-30-2008, 01:00 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,

i m getting this error while i want to overwrite the existing file.

ImageCodecInfo usedIC = this.GetEncoderInfo("image/bmp");
Encoder encoder = Encoder.Quality;
EncoderParameters encparams = new EncoderParameters(1);
EncoderParameter encparam = new EncoderParameter(encoder, (long)100);
encparams.Param[0] = encparam;
test.Save("C:\\cute1.jpg", usedIC, encparams);//Error


In this coding only i m getting this error. test.Save("C:\\cute1.jpg", usedIC, encparams);
I m already saving the image as bmp in this path.Again taking tat bmp image rotating it and then saving it like this.
plz tell me the best solution
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-06-2008, 11:54 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
I solved tat problem by opening the image using FileStream.
I deleted the existing file and created the new one with the same name.
This overcomes the problem.
Any other solution?Plz post here.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-06-2008, 11:57 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
How shall v create a Floating ToolStrip as that of VisualStudio ToolBars?I want it to appear with close button if it is dragged over windows forms.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-15-2008, 12:10 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
Refer the following site for Floating ToolStrip.
CodeProject: Add docking and floating support easely and quickly with DockExtender. Free source code and programming help

Last edited by poornima : 05-15-2008 at 12:13 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 05-19-2008, 04:06 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Smile Re: Windows Applications

Hi,
Here i m facing the following error,While trying to drag the usercontrol and placing it in the form.

Failed to create component 'ResizedUserControl'. The error message follows:

'System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

at System.Reflection.Module._GetTypesInternal(StackCr awlMark& stackMark)

at System.Reflection.Assembly.GetTypes()

at Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly assembly)

at Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(String codeBase)

at Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(String codeBase)

at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Assembly()

at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)

at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)

at Mic...'
How to overcome this problem? Any solution Plz....
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send email in VB.NET 2005(From Windows Applications) psivakumarmca81 VB.NET Programming 2 02-24-2008 06:20 PM
How to send email in VB.NET 2005(From Windows Applications) psivakumarmca81 Discussweb HQ 2 02-22-2008 07:33 PM
Languages or Applications? Pixel Game Development 6 01-28-2008 06:44 PM
Applications Info Murali Database Support 2 09-07-2007 07:00 AM
How to write Multithreaded applications using C++? Sabari C and C++ Programming 1 07-31-2007 12:30 AM


All times are GMT -7. The time now is 10:07 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0