|
have u added the remote sql server in ur list of sql servers availabel over the network. I dont know if I'm using the rt word for it but anyway. it's shown in the enterprise manager right atthe same level where u see the node for ur local server. I may be wrong but I think u'll get this eror as long as u dont register that.
hope it helps
Rocky
|
|
|
|
|
Hi there,
I hope that every .net programmer knows about app.ico. If not then create a windows application in c# and check out the working folder. You could see such a file there. This file is the picture file that is displayed in the exe file(check out debug folder of your application). Now what i need is, i want to change this app.ico through c# coding. Is it possible for changing the application icon at runtime without re-compiling? When i mention a .ico file, at runtime, this new .ico file should replace the existing default app.ico file and my .exe file in debug folder should also posses this image. How can this be made?
|
|
|
|
|
Be patient! This isn't a service hotline, you pay for. So 1. don't expect to become an answer at all and 2. don't expect to become an answer instantly. We're all answering questions in our spare time and words like urgent or postings as above doesn't help to speed up things but rather decrease the willingness to answer at all.
"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
|
|
|
|
|
|
i donot think anyone here asked urgently!!!
even if some one is in hurry or wants answer instantaneously,there is no harm.it is his need.if he has time why would he ask in a forum.he has every right to ask for an urgent response.nobody will ask urgent unless it is really so.there is no question of decreasing the willingness to answer.
"Change is the only constant thing in life
Either or survive or get extinct"
|
|
|
|
|
chravisankar wrote: i donot think anyone here asked urgently!!!
Do you attend this forum for long now. The word urgent appears in subjects here every day, sometimes yelling at you in uppercase and in the worst case it's the whole subject.
chravisankar wrote: there is no harm.
I agree there is no harm, but also there is no interest (at least in my case). The fact that the problem is urgent to the poster doesn't increase my willingness to help and if I have no time to help at the moment, it won't make me take that time. As I said we're answering questions in our spare time here and aren't working for a service hotline that allows you to give your tickets a priority.
The word urgent gives a post a demanding character. Demanding us to answer, demanding us to answer quick, demanding us to answer this post before dealing with others. Its this demanding character and the fact that it's of no interest for the solution of the posted problem that may decrease the willingness to answer.
"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
|
|
|
|
|
Stefan Troschütz wrote: Do you attend this forum for long now.
He's been a member for barely a month or so. Needs to learn the do's and don'ts of this site...
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Errm - the reason that you think this is because the post has been deleted that asked people to hurry up and answer it.
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.
|
|
|
|
|
Pete O'Hanlon wrote: the post has been deleted
That is why I highlight the question and who posted the question. They can go ahead and delete it all they want, but it's embedded in my reply and will stay there unless I delete my post (which I rarely do :-> ).
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
chravisankar wrote: if some one is in hurry or wants answer instantaneously,there is no harm
I want alot of things instataneously, and you know what? Most of them aren't going to happen urgently
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Stefan Troschütz wrote: words like urgent or postings as above doesn't help to speed up things but rather decrease the willingness to answer at all.
Yep. Thank you
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Go on then. Who's going to get the beer in?
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.
|
|
|
|
|
Pete O'Hanlon wrote: Go on then. Who's going to get the beer in?
Just give me your GPS coordinates to your house and I'll try to launch you a
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
|
|
|
|
|
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.
|
|
|
|
|
Bitmap bmp = (Bitmap)resources.GetObject("myBMP.bmp");
IntPtr Hicon = bmp.GetHicon();
Icon newIcon = Icon.FromHandle(Hicon);
This code here can change ur icon at run time.
instead of the first ;line try getting the bmp image from file
as for replacing the app.ico well I dont know...
|
|
|
|
|
can you please tell me what this 'resources' is- in first line?
The error i get with this code is:
"The type or namespace name 'resources' could not be found (are you missing a using directive or an assembly reference?)"
|
|
|
|
|
well lets just forget what that resources was here.
Im giving u this actual function that I wrote.
public static void change_Icon(string iconName, System.Windows.Forms.Form This)
{
try
{
//MessageBox.Show(Environment.CurrentDirectory);
string c = Environment.CurrentDirectory;
//MessageBox.Show(c + "\n" + c.IndexOf("ATech").ToString() + "\n " + c.Substring(0, (c.IndexOf("ATech") + 6)).ToString());
string path = c.Substring(0, (c.IndexOf("ATech") + 6)) + @"Resources\Icons\" + iconName;
Bitmap bmp = new Bitmap(Image.FromFile(path));
IntPtr Hicon = bmp.GetHicon();
Icon newIcon = Icon.FromHandle(Hicon);
This.Icon = newIcon;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
well in this I'm just making out the correct path to the resources folder. 'Atech ' is the name of tyhe project and its main directory. The actual images were stored in ......\Atech\Resources\icons folder so I had to get them from there. tell me if u get hold of this code. I think its pretty straight forward.
hope it helps
Rocky
|
|
|
|
|
is very simple only you need keep in a loop for instance this:
System .Drawing .Icon nuevo=new Icon (@"D:\MyIconNow.ico");
Random manual=new Random ();
int p = manual.Next (2);
if (p == 1)
base.Icon=nuevo;
else
base.Icon=null;
of course, the loop is'nt the only way too keep that atach in execution, try with delegate...
if you wanna know anything write me
|
|
|
|
|
what is the size of string builder in .net.
how long a string can contain a string builder in c#.net.
thanks in advance.
|
|
|
|
|
The only limit to the string size in StringBuilder is the amount of memory you can physically allocate.
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.
|
|
|
|
|
Hi all,
I want my program written in c# to be able to recieve commands from winLIRC but have no idea how to set up a connection with the winLIRC server running on my computer. Any help will be appreciated. Thanx in advance.
|
|
|
|
|
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
|
|
|
|