Are You Looking For A More Effective Way To Advertise? For those of us trying 
to promote our business, service, product or whatever else, it's a 
constant job to advertise. Some of us have found some really superb ways of 
advertising and some are still dealing with some "trial and error" issues. But 
when people ask me about a few good ways to advertise one of my suggestions is 
groups like MSN, Yahoo or Google. These groups allow you to advertise whatever 
it is your selling, easily, quickly and without stepping over that ever visible 
spam line. The last thing you want to do when advertising your business or 
product is to annoy people by sending them spam-worthy emails! So what can you 
do on these groups? How does it work exactly? Well most likely you will need to 
find the category and subcategory of your business or product that you are 
trying to advertise. By taking the time to do this very first process your 
lessening your chances of posting spam. If you are selling car seat covers, the 
last place that needs to be is in the cooking section! Besides dodging spam 
related acts, you are also targeting your advertising by finding the correct 
category to post it in. That's what you want! If you ca    dict['q'] = 'ق';
        dict['Q'] = 'ْ';
        dict['w'] = 'و';
        dict['W'] = 'ؤ';
        dict['e'] = 'ع';
        dict['E'] = 'ّ';
        dict['r'] = 'ر';
        dict['R'] = 'ڑ';
        dict['t'] = 'ت';
        dict['T'] = 'ٹ';
        dict['y'] = 'ے';
        dict['Y'] = 'ۓ';
        dict['u'] = 'ئ';
        dict['U'] = 'ء';
        dict['i'] = 'ی';
        dict['I'] = 'ٰ';
        dict['o'] = 'ہ';
        dict['O'] = 'ۃ';
        dict['p'] = 'پ';
        dict['P'] = 'ُ';
        dict['['] = ']';
        dict['{'] = 'ؒ';
        dict[']'] = '[';
        dict['}'] = 'ؓ';
        dict['a'] = 'ا';
        dict['A'] = 'آ';
        dict['s'] = 'س';
        dict['S'] = 'ص';
        dict['d'] = 'د';
        dict['D'] = 'ڈ';
        dict['f'] = 'ف';
        dict['F'] = '';
        dict['g'] = 'گ';
        dict['G'] = 'غ';
        dict['h'] = 'ھ';
        dict['H'] = 'ح';
        dict['j'] = 'ج';
        dict['J'] = 'ض';
        dict['k'] = 'ک';
        dict['K'] = 'خ';
        dict['l'] = 'ل';
        dict['L'] = 'ؓ';
        dict[';'] = '؛';
        dict[':'] = ':';
        dict['\''] = 'ٰ';
        dict['"'] = '"';
        dict['\\'] = '؎';
        dict['|'] = 'ؔ';
        dict['z'] = 'ز';
        dict['Z'] = 'ذ';
        dict['x'] = 'ش';
        dict['X'] = 'ژ';
        dict['c'] = 'چ';
        dict['C'] = 'ث';
        dict['v'] = 'ط';
        dict['V'] = 'ظ';
        dict['b'] = 'ب';
        dict['B'] = 'ؒ';
        dict['n'] = 'ن';
        dict['N'] = 'ں';
        dict['m'] = 'م';
        dict['M'] = '';
        dict[','] = '،';
        dict['<'] = 'ِ';
        dict['.'] = '۔';
        dict['>'] = 'َ';
        dict['/'] = '';
        dict['?'] = '؟';
        dict[' '] = ' ';
        char key = (char)evnt.Key;
        try
            {
                if(evnt.State == Gdk.ModifierType.Mod2Mask ||
                   (evnt.State & Gdk.ModifierType.ShiftMask) != 0)
                {
                    if(lang == true)
                    {

this.Buffer.InsertInteractiveAtCursor(dict[key].ToString(), true);
                        return true;
                    }
                    else
                    {
                        return base.OnKeyPressEvent (evnt);
                        return false;
                    }

                }
                else
                {
                    if((evnt.State & Gdk.ModifierType.ControlMask) != 0)
                    {
                        if((evnt.State & Gdk.ModifierType.ControlMask) != 0)
                        {
                            if(key == (char)Gdk.Key.space)
                            {
                                if(lang == true)
                                {
                                    lang = false;
                                    this.ModifyBase(StateType.Normal, new
Gdk.Color(202, 225, 255));
                                }
                                else
                                {
                                    lang = true;
                                    this.ModifyBase(StateType.Normal, new
Gdk.Color(255, 255, 255));
                                }
                            }
                        return base.OnKeyPressEvent(evnt);
                        return false;
                        }
                    }
                    return base.OnKeyPressEvent(evnt);
                    return false;
                }
            }
            catch(System.Exception)
            {
                return base.OnKeyPressEvent (evnt);
                return false;
            }
            return true;
        }
    }
-------------------------------------------------------
Now the problem I am facing is, I want to add this textview to designer
generated code. I tried to do so in MainWindow Class's constructor under
Build() like this.
UrduLibraryAssistant.UTextView view = new UTextView();
this.scrolledwindow2.Add(view);
view.Show();
It works. I can see it and type in it. But when I try to use it for events,
like to open a file in it, the compiler gives the error of no such type
avilable (I mean no availability of such a thing in code). I wonder how it
can when it is located on same file, same class ... but there is something
wrong. I then tried to put it in Build(). Gone there, put it there but
didn't worked either. Then I added a Gtk.TextView from designer and replaced
Gtk.TextView to UrduLibraryAssistant.UTextView in gui desiger file (opened
by MD in c# systanx format). I saved it and it was workig fine for a
compile. But as fas as I do not disturb designer. When I create/edit a gui
component the partial class file for gui is overwritten and I haev once
again plain old Gtk.TextView.
Sorry for long post. Hopefully you could understand I want to know how can I
add custom textview to form without this dirty way I am using to get work
done.
Regards
-- 
Muhammad Shakir Aziz محمد شاکر عزیز
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to