Depends what you want to communicate but XML would be a good way if you want to do it file/db based. Another would be some sort of Socket based communication not sure how it would go between C# and Java. Just a little idea HTH Luke
Jinwah
Posts
-
C#/Java communication -
Please give me an idea.You need to read about ADO.NET. Disconnected data sources is the main area. HTH Luke PS: Never appologise for your english (most of us "english" do not speak it very well and the majority cannot even speak another language including me ;)
-
Scrolled object positioningCan anyone help as I am having a little trouble.. I have a panel with AutoScroll = True. I have added a panel to this control which is bigger than the parent, so scroll bars appear. Then I add another panel calculating the position using
panelPos = PanelList.Count * APanel.Height; APanel.Location = new System.Drawing.Point(30, 38 + panelPos);
When the scroll box is not scrolled adding panels puts each one directly below the next as I want. But if the parent is scrolled down then the position is wrong (the new panel is added too low down) by an offset. I thought the answer would be in the AutoScrollPosition property but I haven't been succesful in making it work. Any ideas? TIA Luke -
How to Socket Programing...Before sending the data send a datatype maybe as a enumerated type, integer or string. Maybe create a struct that has a datatype field? Just some ideas... HTH Luke
-
Runtime Control ResizerI am after a component that will enable users to resize visual objects such as an image at runtime. Just like in a standard art package. I wrote 1 myself in Delphi and I could port it to C# but I am not sure how I would implement some of the Mouse capture routines... Besides there must be an open source control that I can use/develop further to achieve what I want. TIA and Merry Christmas Luke
-
Type.GetInterface MethodOk with the help of this list I am getting somewhere with interfaces... But I have a little trouble with the C#/.NET reference documentation. My question What does the Type.GetInterface Method return if the type does not have the requested interface. The .NET documentation does not specify this in the methods documentation? Thanks for helping I am a bit green to this environment but I am getting there quickly with this site/list.
-
interfaces and GUIDSNo offence taken. I have brought 2 very good reference texts for C# / .NET. My problem is that I professionally program in Delphi. So I know what I want to do but I haven't yet got used to framing the question I want to ask in C# terms to get the answer. But moving to C# has been very easy due to the similar class libraries so I have a head start on my fellow C++ m8s. Thanks for your help tho.
-
interfaces and GUIDSis that above the interface declaration System.Runtime.InteropServices.GuidAttribute["....."] public interface IMyinterface { } And how can I ask an object if it supports the interface so that I can talk to it soley thru that interface (this is how I would have done it in Delphi) Cheers Luke
-
interfaces and GUIDSCan anyone help? I want to code an interface and assign a GUID to it. public interface IMyInterface { } On the web I found articles that say I should put the interfaces GUID above the interface declaration. But I get an error message saying GUID is not recognised. My using clause has System. So how can I do this? The reason is in Delphi my objects support interfaces and then by zooming thru a list of objects I can ask if the object supports the interface and if so talk to the object thru that interface. I have had a good look thru my books and internet articles but cannot find any really good info. If there is a new way to do this I would also be interested. Thanks Luke
-
Centralised EventsDelphi actions have a few properties that can be set such as Caption, Category, Checked, Enabled, Hint, ImageIndex (for fetching the Actions icon), ShortCut Keys and a Visible property. These enable some really nice code management and thru the ActionList the actions can be managed and manipulated. I have even written code to enable action events to fire over COM. A fantastic way of building application extensibility. Cheers everyone for your help glad I came to this forum, hopefully soon enough I will be able to provide some advice too.
-
Centralised EventsI come from a Delphi background, (just learning the C# and .Net). In Delphi, event handlers can be centralised using an action list. In this way I can assign the same event handler to as many cotrols as I like. In addition I can manage the event handlers by iterating thru the list and enabling as I wish and also setting various other properties of the action. My question is how can this be done in C#? Thank-you for your kind help Luke :)
-
AssemblyAre you suggesting that it is still possible, i.e. the IDE doesn't provide the option but the good ole compiler will still compile it, if I go the long way and write the assembly source code. :confused: I'm just trying to learn I don't want to fork out for the Pro edition just to create an assembly. Especially as my assembly is just going to contain some forms, nothing fancy. Thanks Once Again To All ;)
-
Assembly:-O Hanging head with embarassment... Thanks for that, still have a problem though. The project properties sheet does not have an Output Type field. I found the help article but VS isn't displaying as the help file describes. Are you sure this isn't a limitation because I have the standard edition? TIA Luke
-
AssemblyI am totally new to the VS IDE, I have always used the Borland IDE's. Under New > Projects I have 4 options Windows App Web App Web Service Console App Under New > File There are several options not one called Class Library. I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there? There is no visible option I can find for 1. class library or 2. windows control library. TIA (I know I sound really green, but unfamiliarity is the problem, coding is no trouble) Luke
-
AssemblyCan anyone suggest? I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Can it be done without? That is the compiler must be capable of generating the Assembly? If the answer is yes what I am trying to do is just add some forms to an assembly. Then I want to load that assembly into my application and display the forms the assembly contains. Can anyone point me to a good article on how to do this?? I have the Wrox press Pro C# book but the Assembly section doesn't make it clear how to achieve this. TIA Luke
-
ComponentsCan anyone help... Can anyone point me to a site with free .Net components specifically an Outlook bar. Newby question: How can I align controls on the form. I want a panel to be aligned left on the form, but the Align menu options never become enabled. TIA :-O