|
i want to set First, Last in the datagrid page index at the web application ,how could i do that ? im working with .net1.1.
any help could be useful
|
|
|
|
|
|
Hi,
I am developing an application to get the information regarding all the software installed in a system.
Can anyone please help me?
Thanks in advance
Vijay Kumar
Programmer
|
|
|
|
|
use wmi and select what you need from Win32_Product! if you're not used to wmi, google knows a lot about it..
|
|
|
|
|
Hello All !
I am writing a windows service which is running a Windows Form application.
I marked the desktop option in the windows service properties and the Form is shown when starting the service which is correct.
The problem is that I do not receive Windows Messages in this Form function WndProc.
When I run this Windows application separetely namely not from a windows service, I use the spy++ application to see the WM , I see many WM that hit this form.
But when running spy++ on the same Form that is rendered from a Windows Service this Form does not receive any WM.
I anyone did something similar or anybody know if it is possible to receive WM on a Form that is rendered from a windows service I will be grateful.
Zvika Tubis
|
|
|
|
|
This article should have everything you need about doing UI for your Service. A Service is by definition, a program without any UI... so it's tricky to go out of that box.
|
|
|
|
|
Hello !
Went to the site and did not see anything about my problem.
If anyone know how to get windows messages in a Form that is activated from a Windows service I will be vety grateful.
Thanks everyone
|
|
|
|
|
I have load an image to a picture box like here:
MypicBox.Image=Image.FileName("D/foto1.jpeg")
the pic is now displaying in the box, but how can I clear it now?
thanks
|
|
|
|
|
with the magical line
MypicBox.Image=null;
|
|
|
|
|
|
MypicBox.Image=null
Is it right ?
imagic
|
|
|
|
|
insert the default image to the picturebox or zero it :
pictureBox01.Image = null;
|
|
|
|
|
Hai all I have a problem related to changing the color of text in a rich text box.What I want to do is lets say I have 10 lines of text in the rich text box.I want to change the color (highlight) the color of text from line no 3 to 7.
Pls help.
|
|
|
|
|
Selecting the text you want colored, then setting myRTB.SelectionColor should do it.
|
|
|
|
|
Thanks dear
But the problem is how to select the text.
Ex: I want to display the text like this
for (int i=0; i<10; i++) {
console.WriteLine("Hello world\n");
console.WriteLine("I'm here\n");
}
and I want to color the for statement only.How can I
select the text releted to for statement without statements
inside the for loop.
Plaese help.
|
|
|
|
|
hi ...
i exactly can not understand what do you want ...
but for select a text in rich text box and change it's color you can write follow code ...
richTextBox.Text = "test";
richTextBox.Select(2, 2);
richTextBox.SelectionColor = Color.Blue;
|
|
|
|
|
Hi,
the easiest way is to color the text while adding it to the RTB:
int start=rtb.SelectionStart;
rtb.Add("some text");
int end=rtb.SelectionStart;
rtb.Select(start, end-start);
rtb.SelectionColor=color;
If that is not possible, you must somehow parse the existing text to find
the piece you want colored (e.g. by locating/counting the newlines).
|
|
|
|
|
Thank alot for u're help.
But the problem is not solved totally.
The number of characters which change the color is not static for everytime.
It changes time to time.
So can U pls tell me how to color the text from (2 , to the end of the text)
Thanks again dear.
|
|
|
|
|
study the example I gave you, it contains it all.
|
|
|
|
|
how can i invoke application from my windows service in windows 2003 server. in xp i have done it.
|
|
|
|
|
Check out the Process class. This class can be used to start other applications:
Process class (System.Diagnostics)[^]
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
I created an installer project for my C# windows forms app, but it won't overwrite previous versions of the program. The users have to go to their Add/Remove Programs, and uninstall it there, then the new installer will run. I can't find anything about this on Google or in the MSDN. I found reference to a property of OverwritePreviousVersion, but I can't find it in my project anywhere? I've looked through all the properties windows of the application, and of the installer project...
Where do I set this option? I just need it to overwrite the EXE file really... the rest of the stuff can stay... well I'd need to update the shortcuts in the programs menu too I think...
|
|
|
|
|
So you just need to overwrite the previous installed versions while installing ?
In that case, just check the properties of the installer project. In the property window, you will find an attribute - 'RemovePreviousVersions'. Set it to "true"(sorry for previous mistake, just set it to true) and i hope it will work.
btw, thanks for your reply to my post.
Chayan
|
|
|
|
|
There is no such thing on my project. That is what I'm saying... I could send screen shots... I have no idea what I'm looking at. I've read the articles that talk about that property, but I can't find it on any of the screens in my Visual Studio. I know it sounds stupid, but it's just not there?!
|
|
|
|
|
So you are in a strange situation. This option may vary from version to version. I am not sure. I use visual studio 2005. I don't know about other versions..
One more thing, i know you have already checked everywhere for this option. So it's silly to say it again. But still, just to make sure, there are 2 property pages. One if you right click on the SetUp project and click on property. Then you'll see a property page but you can't find it there. But if you just select the setup project, then in the property tab, you should find it. But i know, you must have checked it and can't find it. So I don't know what can be the solution. Hope that, someone else can help you.
Regards
Chayan
|
|
|
|