|
You can connect to the WinLIRC server using a simple TCP/IP connection. If started the same thing some time ago and back then there was a side on the WinLIRC or LIRC homepage that described how to connect to the server (basically named the port number) and the message format.
If you're interested, you can give me your mail address and I will send you the code If got so far. If I recall right, I was able to successfully connect to the server and receive messages but the connection was somehow unstable.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi everyone,
I created an ArrayList and put Button objects in it.But when i try to reach one of the arraylist elements compiler (VS 2005) gives error and says that 'object' does not a definition for it.
For example:
ArrayList myButtons = new ArrayList();
Button button10 = new Button();
myButtons[0].Text = "something";
Error : 'object' does not contain a definition for 'Text'
Any suggestions?
|
|
|
|
|
Arraylist contains objects , you need to cast it ...
((Button)myButtons[0]).Text = "something";
hope this helps...
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
It has ABSOLUTELY helped. thanks
|
|
|
|
|
If you are using VS2005 and therefore .NET 2 you should be using a List<>
<br />
List<Button> myButtons = new List()<Button>;<br />
myButtons.Add(new Button());<br />
myButtons[0].Text = "Something";
|
|
|
|
|
Hi
How to run an Dotnet Application in the system which donot have dotnet framework installed.
Reply soon.
Thanks & Regards,
Hari
|
|
|
|
|
can't
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
For running dotnet applications, dotnet framework has to be installed which is one of the basic requirement.
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
Not possible in windows apps / services , only way is u write a asp.net web application, and host it in a web server that has .Net framework, access your web application from any client machine that has a Internet explorer browser!
Karam C Bose
|
|
|
|
|
Mono..(not technically .NET framework )
|
|
|
|
|
I want to display a picture <full screen="" size=""> and play a sound < .wav or .mp3 format > with the use of DirectX 9.0. How I going to do this?..
Plz help....
|
|
|
|
|
Download DirectX, and then take a look at some of the samples. Alternatively, Google for DirectX samples. These are such large areas, that you aren't going to get help on the forums. You will have to do some digging/learning yourself.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hai
pls need help, iam newbie to the .net, working on wildacard search, iam using *, ? but ? is not working properly, my code is
private string BuildFilter()
{
string filter = "1=1";
foreach (string key in filters.AllKeys)
{
filter += String.Format(" and {0} like '{1}*'",
key,filters[key].Replace("'", "''"));
}
foreach (string key in exactFilters.AllKeys)
{
filter += String.Format(" and {0}='{1}'", key, exactFilters[key].Replace("'", "''"));
filter += String.Format(" and {0}='{1}'", key, exactFilters[key].StartsWith("'"));
}
foreach (string s in exactFilters.AllKeys)
{
filter += WildCardSearch.Match(Text, s);
filter += String.Format(" and {0}='{1}'", s,exactFilters[s].Replace("'", "''"));
filter += String.Format(" and {0}='{1}'", s, exactFilters[s].IndexOfAny(Wildcards));
}
return filter;
}
can anyone help me what i ahve done wrong.
|
|
|
|
|
I've a form filled up with a tabcontrol.
Is it possible to place a control (any) that it will be common to every tabpage?
When I try to add a control directly to tabcontrol I get a error (only tabpages can be added to tabcontrol!). When I add a control to a tabpage I'm not capable to make it available on every tabpage anymore...
Anyone can help? Thanks in advanced.
|
|
|
|
|
It is imposible to add a control to a tab control. It only takes tabPages so you should add a copies of the control to all the tabPages.
good luck
|
|
|
|
|
If u dont want to rewrite code, you can place the control / controls in a panel and add the panel to each tabpag during runtime.
Ex: let me have a set of controls and functionality in a panel and this panel is available in form say frmReUseForm. and panels name is panel1 (make the panel public)
in my form that contains the tabcontrol with tab pages,
i write the following code, may be in constructor ,
frmReUseForm obj = new frmReUseForm();
tabpage1.Controls.Add(obj.panel1);
tabpage2.Controls.Add(obj.panel1);
tabpage3.Controls.Add(obj.panel1);
tabpage4.Controls.Add(obj.panel1);
hope this helped you,
thanks.
live and let live
|
|
|
|
|
I am not the one who posted the question so u should direct your reply to the poster not to me
Thanks anyway
|
|
|
|
|
One small mistake, please add the panel to the tabpage on the paint event of each tabpage
private void tabPage1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
tabPage1.Controls.Add(obj.panel1);
}
private void tabPage2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
tabPage2.Controls.Add(obj.panel1);
}
|
|
|
|
|
Hello,
You would have to do that dynamicaly.
The TabControl has an SelectedIndexChanged Event.
System.Windows.Forms.Control.ControlCollection oldContainer;
YoureTabControl.SelectedIndexChanged+=new EventHandler(TabControl_SelectedIndexChanged);
private void TabControl_SelectedIndexChanged(object sender, EventArgs e)
{
if(oldContainer!=null)
{
oldContainer.Remove(YoureControl);
}
YoureTabControl.SelectedTab.Controls.Add(YoureControl);
oldContainer = YoureTabControl.SelectedTab.Controls;
}
Hope that helps!
All the best,
Martin
|
|
|
|
|
this is an excellent post
http://sirotiyasanket.blogspot.com/
|
|
|
|
|
Do you know anything more than saying "This is an excellent post" or "This is a very good post"
try to be more creative
|
|
|
|
|
Mal-Functi wrote: Is it possible to place a control (any) that it will be common to every tabpage?
Suppose you have a text box named tb1 on the first tabpage. Now:
If you want to access its value, simply put
MessageBox.Show(this.tb1.Text);
or if you want it to be displayed on each page when the page is selected, then put the following line of code in the tab control's Selected event:
tabcontrol1.TabPages[e.TabPageIndex].Controls.Add(this.tb1);
Hope this helps.
Regards
________________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
I am not getting any option for viewing my own old questions.
Plz help me?
|
|
|
|
|
|
thanks
I got through the link.
Is there any menu in the site?
thanks
|
|
|
|