I want to build a server and a client application.
The server should be some kind of intelligent. He is able to process information from one format to another.
The client should be thumb. On the client machine is an Excel application which could be started by the client.
The situation is that the client starts the Excel application and remembers a pointer to it. This pointer should be send to the server. The server should use the pointer to execute commands directly on the Excel application on the client machine. For example to open an Excel workbook that lies on the client machine and to read information from a worksheet of this workbook.
How can I realize the communication between the server and the client? Can I use Remoting or should I use some kind of socket communication? Is there a tutorial which I can use as a reference?
//get the resulting path points
//draw on the picturebox content of imgpic using the local transformation
//using the resulting parralleogram described by pts
This code works great. However, I can't get the image to BrintToFront. I need it to rest on top of another picturebox. If there is another picture box within the rotating image's area, it covers it up. I tried to put an image WITHIN the picturebox that the rotating image is being drawn on, but it doesn't show up. Any help would be much appreciated. Thanks.
I have designed a form with border style = none.
now I put the panel on top what I want is to move the form on mousedown event of panel. if any one can help me would be appreciated. I found one code for VB.Net . if any one can convert this would be great
Private Declare Function ReleaseCapture Lib "user32" () As Integer
'UPGRADE_ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1016"'
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByRef lParam As Object) As Integer
Private Const HTCAPTION As Short = 2
Private Const WM_NCLBUTTONDOWN As Short = &HA1s
Private Const WM_SYSCOMMAND As Short = &H112s
' the event part is
Dim Button As Short = e.Button \ &H100000
Dim Shift As Short = System.Windows.Forms.Control.ModifierKeys \ &H10000
Dim X As Single = VB6.PixelsToTwipsX(e.X)
Dim Y As Single = VB6.PixelsToTwipsY(e.Y)
SendMessage(Handle.ToInt32, WM_NCLBUTTONDOWN, HTCAPTION, 0)
First I redefine the IHTMLElementRender interface:
void DrawToDC([In] IntPtr hDC);
void SetDocumentPrinter([In, MarshalAs(UnmanagedType.BStr)] string bstrPrinterName, [In] IntPtr hDC);
and the following code is baseing on C#
I am not sure what exactly I am doing wrong:
InternetExplorer m_IE = null;
foreach(InternetExplorer Browser in sws)
if(Browser.HWND == (int)m_Proc.MainWindowHandle)
m_IE = Browser;
MessageBox.Show("no InternetExplorer open,please try agin");
m_IE.Navigate("http://mail.163.com",ref v1,ref v2,ref v3,ref v4);
MessageBox.Show("why document is null?");
MessageBox.Show("IHTMLElement is null");
But when I Use AxWebBrowser control
the Cast(IHTMLElementRender ren=(IHTMLElementRender)em;) is ok
Thanks for any help!
I have been trying to use Asynchronous Callback to access
XML Web Services from my client application (Windows Form).
The client will call the method which will return a DataSet
and display the results on the DataGrid.
The problem is, the DataGrid doesn't seem to be updated
everytime the result is returned. Anyone knows why?
I have also checked using Debugger and the web method did
return the correct result.
I am having a typical problem ,I am using management classes to get the path for shared folders and files of the system.The code is working fine for console and winforms,but it is not working for web applications.I have tried giving admin rights to aspnet account,but the problem remains there.Please help
searcher1=new ManagementObjectSearcher("SELECT * FROM Win32_Share");
foreach(ManagementObject share in searcher1.Get())
s=share["Path"].ToString();//for asp.net pages giving null obj ref exception
Are you using Visual C# 2005 Express or Visual Studio? Or are you compiling everything by hand?
Picture a huge catholic cathedral. In it there's many people, including a gregorian monk choir. You know, those who sing beautifully. Then they start singing, in latin, as they always do: "Ad hominem..."
What type of connection is this? Database? File share? Custom protocol?
Start by putting all of your communication-related code into a separate class (or at least identifying which classes you use fits this description): should specific exceptions get thrown, you simply reinstantiate or reconfigure the class with different parameters (telling it to use server B). In the case of a database connection, as an example, you would change the connection string.
This outlines the structure of a solution, but without more information I can't really help you.