How to do a wcf between service and windows form? - wcf

I have a service that update Database.I want show in another form in same Computer each change in gridview.Please help me with example

Related

VB.NET - is there a way to programmatically create a scheduler just to call a certain url/api?

I have looked everywhere but I cant really find what I wanted. Here is the scenario. I have a web application, when a user clicks a button, it will send api request to the vendor to activate a device. The problem is, the vendor does not have the api method to set start and end time for the device. So, my idea now is, once i get the "green light" from the vendor to activate the machine, i will also programmatically schedule a task in the server to call my web application after 15 minutes to turn off the device (by url with query string, www.xxxx.aspx?deviceid=123).
really appreciate the help or any pointers on how to achieve this. thanks in advance!
Sorry about the way answer is typed i am on phone right now. it was fun researching for it and i would like to hear from you if it works
So assuming you have access to your api.
The way i think you can make it work is by using a backgroundworker in your api / web application it is a nuget you download to your web application
If you open and scroll in that link it has example talking about having background task similar to windows task schedular however for any type of webapplication it is open source project called backgroundworker and many task schedulers you can add on web application give it a try
https://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx

Porting Silverlight data access to WPF

This project write in Silverlight and used Telerik open access how to access data in WPF? how to port data access in Silverlight to WPF.
If anyone wishes to help can I upload the source.
Thank you for the help everyone.
You could continue using the model defined in the CRM.DataAccess as a data layer in your application without modifying it.
If you want to consume the data using services, you could use the Add OpenAccess Service wizard to generate the needed service. It will generate for you the necessary service code.

MVC 4 ASP.NET 4.5 dynamic form builder options?

I have developed custom form builder type application using ASP.NET 3 years back. Now working on new project and it has similar requirement. I think there must be something new and easy to do same thing using MVC4 or ASP.NET 4.5 web forms. Any pointers?
Requirement in detail,
This is a web application
Authorised users login to web site and given the option to fill in the form
This form captures the information which then sent to third party
Third party keep reviewing their system and may ask for more details in future
My application needs modification to capture this extra(or say changing) information
Is there any way I can change only DB model to accommodate these extra fields and they will automatically appear on form without any code changes to UI or BL level?
I am not too sure what you are trying to accomplish but maybe this could help ?
http://lostechies.com/erichexter/2012/11/20/twitter-bootstrap-mvc4-the-template-nuget-package-for-asp-net-mvc4-projects/
Look at how they automatically generate the bootstrap views depending on which view model get's passed.

Infopath 2010 field using External Data Connection of SharePoint BCS

I created an Infopath 2010, which I am then publishing to SharePoint in a forms library. My first field is a BCS field, which is pulling from CRM.
I set-up my external data field, and when I type in a name it will run the check to confirm that it is from CRM. However, if I try to use the picker it throws the error:
An error occurred while obtaining business data by using the Picker
web service. Contact your system administrator.
I have been unable to find any information regarding this error, and any help would be appreciated.
Okay, the answer was staring me in the face, and I just didn't see it the whole time. (I'm almost embarrassed to admit it!)
I had told the form to connect to the external data source through SharePoint; however the form was actually opening in InfoPath, and not via SharePoint's built in browser form. As soon as I went into the advanced settings, and said to use the browser form, and not the client application the web picker worked perfectly.
Thank you for your assistance on this issue Andreas. It was greatly appreciated.

Silverlight 4 Screen Capture

I'm writing a timesheet helper utility in Silverlight 4. This will be a trusted out of browser application that will periodically ask the user (with a SL4 Notification Window) what they have been working on. What I'd like to do is have it capture images of their desktop (or better yet, active window) from time to time in order to remind them of what they have been working on since they last submitted their status report. Is this idea even possible? Do I need to use COM? If so, what COM component would I use?
I don't know of any installed COM object you could use -- you'd have to create one and install it.