I'm just not getting any results part from card/device name/ids, no card status's (1 Viewer)


New Member
June 22, 2018
Wales, UK
United Kingdom United Kingdom
Hi, I'm moving from delphiprogramming to develp a application in visual studio c#, and i got this

just a button and a textbox..

I'm getting the device name, but no recording staus, while its recording, ive tryed over properies but it returns nothing, can someone help me get over my first hurdle please :)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TvControl;          // include the tvserver remote control interfaces
using TvLibrary.Channels; // include tv-channel types
using TvDatabase;

namespace WindowsFormsApp1
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
             RemoteControl.HostName = "mars";
            int cardCount = RemoteControl.Instance.Cards;
            for (int i = 0; i < cardCount; ++i)
                int cardId = RemoteControl.Instance.CardId(i);
                User user = new User();
                user.CardId = cardId;
                VirtualCard card = new VirtualCard(user, RemoteControl.HostName);
                textBox1.AppendText("Type: " + card.Name + " Recording: " + card.IsRecording  + "\r\n");


Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    Russian Federation Russian Federation
    Country flag
    When I want to get info from tv server I use TVBusinessLayer methods.
    Also sometimes I need to set cofing with some metthod I don't remember

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    M How can get TV Logos? Installation, configuration support 3
    M I can't get the PowerScheduler to work General Support 14
    D Problem getting Schedules Direct EPG to load data Installation, configuration support 4
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    D Trying to get mp 1.24 to recognise Schedules Direct. General Support 4
    D Getting Started General Support 30
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 6
    ratata [solved] Can't get two virtual IPTV cards to work side by side... General Support 6
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    D Please help with getting Schedules Direct to work Newcomers Forum 10
    emphatic How to get the right data for War Of The Worlds? My TVSeries 1
    T I cannot get a basic media import-what is the best configuration? General 10
    M Guide mapping schedules direct, tvguide, epg buddy How to get correct entry to the correct channel? Electronic Program Guide 0
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    Glith Audio out of sync after pause. Rewind 15sec gets it into sync again. MediaPortal 1 Talk 0
    D Cannot get a fully populated UK Freesat EPG (DVB-S) General 14
    R How to I get started with MP2? General 1
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    K [solved] Cannot get EPG populating in the UK General 7
    T Get this error message on attempted re-install...LOGS inc. General Support 4
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    N [Finished] [MP2-791] Radio recordings do not get imported into Recordings listing MediaPortal 2 25
    N [solved] How do you get things into the Series or Movies listing General 5
    N How do I get the menu in the WebRadio plugin WMC Skin 1
    HTPCSourcer [Finished] Nereus: Test results #1 MediaPortal 2 196

    Similar threads

    Top Bottom