Edit listbox (or other control) of remote application in c#? - listbox

I'd like to know how to edit a listbox of a remote application in C#.
For example: add (or delete) an entry in the taskmanager's list.
Is this possible? How can I do this in the most stable manner?
Thanks!

Are you saying you want to create you own Control in C# ?
http://www.codeproject.com/Articles/2016/Writing-your-Custom-Control-step-by-step
this might help you.

Related

Adding TFS tasks (work item) via url

Currently i'm trying something out with TFS 2015. I red that it should be possible to add tasks (work-items) via the browser url. This is perfect for me if it is working like I expected :)
My current url (personal items removed)
https://{myurl}/tfs/DefaultCollection/{project}/_workItems#_a=new&witd=Task&[Title]=Do
this&[Original Estimate]=1&[Remaining
Work]=1&[??????PARENT?????]={??id??}&[System.AreaPath]={project}&[System.IterationPath]={project+iteration}
So far so good it's possible to add an item via the url, but I couldn't figure out how to add the parent link to the work item!
I've tried [Node Name], [Parent], [System.NodeName], but none of them worked.
Does anyone have an idea how to create the link? Or is it not possible?
tnx in advance
Try to use [System.Linktypes] or [System.LinkTypes.Hierarchy-Reverse]
Moreover, suggest you to use REST API just as debugthings mentioned. Work Items|Rest API If you haven't already, look at the information on getting started with these APIs.

making a wizard interface in delphi 7

I'm using delphi 7 and I'm trying to make a wizard interface. I don't know if there is an easier way to make a wizard, so I was thinking of making separate forms for each step of the wizard, and when the user clicks "Next" the active form closes and the next one opens.
Here's a screen-shot of two successive forms:
I've made a procedure that take 2 forms as parameters: the form that will be closed and the next form of the wizard
class Procedure Tspad.nextForm(showForm, closeForm: TForm);
begin
closeForm.Close;
showForm.Showmodal;
end;
When I click the "Next" Button the folowing code is executed:
Tspad.nextForm(echipContractForm, clientContractForm);
When i run the program, and i press the "Next" button, the next form apeares but the curent one dosen't close.
How can i make this work, or is there another more efficient way to create a wizard?
One very common way to make a wizard is to use a page control. Each distinct page of the wizard is a different page/tabsheet in the page control. I believe that this is effectively how Windows implements wizards.
Naturally you want to hide all the tabs. Do this by setting TabVisible to False for each tabsheet. When you wish to move forwards and backwards through the wizard, e.g. when the user clicks the next or previous buttons, effect this by setting ActivePage or ActivePageIndex depending on your preference.
A good practise for the division of content being displayed on a single form is the use of Frames.
A Frame is a lot like a form, except it has no Window of its own, but rather sits inside a host Form.
When combined with (as David Heffernan has suggested) a TPageControl or even a TNotebook (which is pretty-much exactly the same as TPageControl, only it doesn't have Tabs to begin with), you end up with an easily-maintainable Wizard.
JVCL has a good control to make a wizard in a very simple and effective way (TJvWizard). See http://jvcl.delphi-jedi.org/
You can give a try to these :
Balmsoft Wizard released under LGPL.
Delphi Wizard Framework by SO member Steven R. Kamradt.
You can test some components that can help you with this task (internally using tPageControl or TNotebook). See this link.
Regards.
You may also consider TMS TAdvSmoothStepControl (not free !).
Another solution, but only 'external' to your program, is to use Inno Setup to make a Wizard, even for 'non installation setup' purposes.
In fact with Inno Setup you can make a lot of thinks ( modify .ini file and registry, start/stop programs...) that can be usefull for a wizard without 'installing' a program.

Joomla and JoomlaFCK Editor

I have Joomla site and default front end editor JoomlaFCK (now it's new version JoomlaCK editor). When some member (they are all Author type of user) try to write some article, he can write it, but can't publish it, so I have to publish it from the back end. I check all Joomla options, but not found anything. I know it's simple, maybe right in front of me, but it's very annoying for me. Help. TIA.
P.S. If there is some better editor, I can think of change.
Regards
DZvonko
By default, an author will not have permission to publish the item. They would need to be a publisher. Look at the user information in Users and change their group.

How use html context sensitive help with Delphi 2007 - the basics

I use Help & Manual to create web help (HTML) files. I would like to link this to my Delphi 2007 application so that it pops up when users press the F1 key, and ideally, to pop up to a context sensitive spot.
This is what I've tried:
Adding the HTMLHelpViewer unit to the uses clause of the main form.
Setting the HelpFile property to the name of the index.htm file.
Setting the OnHelp event (this event doesn't get fired on F1, btw).
I also have searched Stack Overflow and other web links to try to find the steps to accomplish this, and while I find clues, I cannot seem to find a step by step way of accomplishing this.
Thanks for any help.
It seems that you forgot to set HelpContex or HelpKeyword properties. The help is only invoked if there is control with HelpContex <> 0 or HelpKeyword <> ''.
I don't know the details of Help & Manual, but as a commercial application with a dedicated support forum you may find help there if we don't come up with what you need. Here are some links that may help:
Their online help system has general info on context-sensitive help and specific info on application calls to webhelp.
See "All about help files in Borland Delphi" on this page.
There are H&M-specific Delphi components available here for free download.
Hope this is a start for you.

Is there a way to disable the hint for a TOpenDialog in delphi?

I have a TOpenDialog component I am creating on runtime and I want to disable the hint that pops up over files when it is used. I have not written any exrta code for this than creating the object, executing the object and extracting the filename,, then freeing the instance.
Can I do what I want to do? If so, how do I do this?
I googled for "opendialog crash tooltip" and the first hit gave me this. The solution for their problem (and probably yours) is this:
[...]
You only need to add this modification to the first form of your application:
uses ActiveX;
initialization
OleInitialize(nil);
finalization
OleUninitialize
end.
Since this is a Windows common dialog, you may have to jump in and hook into the dialogproc and manually try and process the tooltip messages. You can look here for a start about how to customize the common dialogs; http://msdn.microsoft.com/en-us/library/ms646951.aspx. You can also look at creating your own TOpenDialog descendant and override the WndProc protected method to get access to the dialog messages and notifications. I suspect you'd also need to do some deeper hooking and start getting into dealing with the explorer shell. The file list in that dialog is actually an instance of parts of the Windows Explorer shell.
Another question is what is it you're trying to accomplish by hiding this information from the user? Maybe there is some other solution to what you're trying to do rather than disabling some intrinsic functionality?

Resources