Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
QuestionHow to reference a deletegate to a static member of each Form Pin
alamdarAfridi1-Jan-16 23:45
alamdarAfridi1-Jan-16 23:45 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
OriginalGriff2-Jan-16 0:41
mveOriginalGriff2-Jan-16 0:41 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
BillWoodruff2-Jan-16 1:10
professionalBillWoodruff2-Jan-16 1:10 
GeneralRe: How to reference a deletegate to a static member of each Form Pin
Pete O'Hanlon5-Jan-16 21:32
mvePete O'Hanlon5-Jan-16 21:32 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
Pete O'Hanlon2-Jan-16 2:35
mvePete O'Hanlon2-Jan-16 2:35 
SuggestionRe: How to reference a deletegate to a static member of each Form Pin
Richard Deeming4-Jan-16 3:21
mveRichard Deeming4-Jan-16 3:21 
GeneralRe: How to reference a deletegate to a static member of each Form Pin
Pete O'Hanlon4-Jan-16 3:25
mvePete O'Hanlon4-Jan-16 3:25 
QuestionDataBase Connection to IValueConverter Pin
Andre Dieme1-Jan-16 22:28
Andre Dieme1-Jan-16 22:28 
I want to use a DataBase Connection which is open to an IValueConverter. The Language is C# and the Framework 4.5. The Database Connection is created whith Npgsql to an Postgres Database.

C#
namespace WpfApplication
{
    public class GetToltipStatus : IValueConverter
    { 
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
             !!HERE I NEED THE CONNECTION CONN!!
        }
       
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }




public partial class Tab_100 : System.Windows.Controls.UserControl
    {
        public NpgsqlConnection conn;

        public Tab_100(NpgsqlConnection conn100)
        {
            conn = conn100;
        }
    }


The Mehtode Tab_100 is started and get an opened Database Connection (conn100). For the IValueConverter I need this. I could not use an public static Connection and because of that I colud not access like Tab_100.conn. Is there an other way to get the Connection from the class Tab_100 in the IValueConverter ?
AnswerRe: DataBase Connection to IValueConverter Pin
Pete O'Hanlon2-Jan-16 5:41
mvePete O'Hanlon2-Jan-16 5:41 
QuestionGradient Colors in Memory Pin
Avoli31-Dec-15 8:02
Avoli31-Dec-15 8:02 
AnswerRe: Gradient Colors in Memory Pin
Ravi Bhavnani31-Dec-15 8:29
professionalRavi Bhavnani31-Dec-15 8:29 
AnswerRe: Gradient Colors in Memory Pin
BillWoodruff1-Jan-16 20:59
professionalBillWoodruff1-Jan-16 20:59 
QuestionEmail with Mailchimp Pin
balaji201030-Dec-15 21:32
balaji201030-Dec-15 21:32 
AnswerRe: Email with Mailchimp Pin
Richard MacCutchan30-Dec-15 21:46
mveRichard MacCutchan30-Dec-15 21:46 
GeneralRe: Email with Mailchimp Pin
balaji20104-Jan-16 4:15
balaji20104-Jan-16 4:15 
AnswerRe: Email with Mailchimp Pin
Marco Bertschi1-Jan-16 5:59
protectorMarco Bertschi1-Jan-16 5:59 
GeneralMessage Closed Pin
30-Dec-15 17:45
Member 1223717030-Dec-15 17:45 
AnswerRe: Need people for project Pin
Anurag Gandhi30-Dec-15 18:31
professionalAnurag Gandhi30-Dec-15 18:31 
QuestionDataSet object not being reconized inside dataview constructor Pin
Member 1144944730-Dec-15 5:55
Member 1144944730-Dec-15 5:55 
AnswerRe: DataSet object not being reconized inside dataview constructor Pin
Richard Andrew x6430-Dec-15 6:23
professionalRichard Andrew x6430-Dec-15 6:23 
GeneralRe: DataSet object not being reconized inside dataview constructor Pin
Member 1144944730-Dec-15 7:28
Member 1144944730-Dec-15 7:28 
AnswerRe: DataSet object not being reconized inside dataview constructor Pin
Richard Andrew x6430-Dec-15 9:04
professionalRichard Andrew x6430-Dec-15 9:04 
AnswerRe: DataSet object not being reconized inside dataview constructor Pin
Ashwini Dhale31-Dec-15 23:58
professionalAshwini Dhale31-Dec-15 23:58 
GeneralRe: DataSet object not being reconized inside dataview constructor Pin
Ashwini Dhale1-Jan-16 0:04
professionalAshwini Dhale1-Jan-16 0:04 
QuestionReal time communication between web to windows and vice versa Pin
gautamkhatri42829-Dec-15 19:49
gautamkhatri42829-Dec-15 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.