473,811 Members | 2,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Docking windows application to desktop

2 New Member
Hi,

here goes the error msg: (The type or namespace name 'ShellApi' could not be found (are you missing a using directive or an assembly reference?)

My Code is attached below. Error on ShellApi.RECT

private void AppbarQueryPos( ref ShellApi.RECT appRect)
{
// prepare data structure of message
ShellApi.APPBAR DATA msgData = new ShellApi.APPBAR DATA();
msgData.cbSize = (UInt32)Marshal .SizeOf(msgData );
msgData.hWnd = Handle;
msgData.uEdge = (UInt32)m_Edge;
msgData.rc = appRect;

// query postion for the appbar
ShellApi.SHAppB arMessage((UInt 32)AppBarMessag es.QueryPos, ref msgData);
appRect = msgData.rc;
}

private void SizeAppBar()
{
if (!IsAppbarMode) return;
ShellApi.RECT rt = new ShellApi.RECT() ;
......
..
..




If you got a Code for docking in C#, Please share.

I am a novice in C#, Hope you would help.

Regards,

Dinu Davis
Feb 17 '12 #1
2 1853
PsychoCoder
465 Recognized Expert Moderator Contributor
Where do you have ShellApi declared?
Feb 17 '12 #2
dinudavis85
2 New Member
Hi,

Thanks for your concern and the hint guide me to solve the issue, and my project facing progress. :) :)

Thanks for your time and effort to respond to my silly queries.

I do appreciate your kindness and have a nice day!!

Regards,

Dinu Davis
Feb 18 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2967
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the Solution Explorer or Toolbox in Visual Studio.NET. For my last project, I used the SyncFusion component for docking windows, but my experience is that SyncFusion is buggy. I'd prefer to use a different vendor for this project. Any advice? Thanks,
3
2674
by: Michael | last post by:
Hi, I have a windows service developed using c# and it needs to lunch another windows application. I have been trying to use Process class to do it but the problem is becase windows service running at background and using system account, so the applcation it lunchs is also running at the background. is there a way to lunch the windows application as current logged in user? Thanks
3
6377
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the Remote Desktop ActiveX control in my C# app and this works fine. However i have now a new requirement for my app: multiple users have to be able to view and control the same remote desktop simultaneously using my application. Big problem:...
8
2253
by: Miguel Ramirez | last post by:
Anyone knows how to call a windows application inside ASP.Net code? Regards,
1
1849
by: Gislain ROCHE | last post by:
Hello, I'm trying this two component to implement Docking Windows in my application, but whitch is the better. Could you tell me your expcrience witich one of these component, the advantage, the problem, ..., technical support, ... Web site http://www.dotnetmagic.com/ http://www.innovasys.co.uk/products/dockstudioxp.asp
4
2497
by: Pippo | last post by:
My environment... VS .NET 2003 One solution 3 Project (1 Windows service - 1 Windows application - 1 Installshield basic msi) I know that there's not possible create a service with gui. In effect i must was to be create a 2 different project How to interact the service with the application?
3
6141
by: illegal.prime | last post by:
Hi all, I have a service that needs to start a regular windows application. I'm running the service as ServiceAccount.LocalSystem. But, when it starts the process (using Process.Start) the GUI for the application doesn't appear - however, I can see the process in the TaskManager. Now, feel free to mention that starting a regular windows application
0
1306
by: GovardhanReddy | last post by:
Hi Can any body help me on window service desktop alerts or notifications. My question is i am working on windows services,I need to generate desktop Notifications using my services.I did Notifications in windows application(using windows forms),it is working fine,But If i paste the same code in Services it is not working ,Can any know abt it Plz help me. Regards Vardhan
15
7093
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter every second. I remote desktop to the computer hosting this application and run the application. It starts up and displays the counter incrementing every second. If I disconnect the network cable between the two computers for 10 seconds and...
2
6009
by: samueltilden | last post by:
I know the answer is simple ... as soon as I find it. I have a Windows Application in which I want to display a different User Control in the bottom part of the form depending on the functionality chosen by the user. I have made several User Controls and they now show up in my toolbox. How do I put them all on the bottom part of the form (including docking) and make only one visible when needed?
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.