|
Generally not if it has a UI. But try using a Windows Scheduled Task.
|
|
|
|
|
I have written an application in c# and want it to be on top of all the other applications in the windows.
I've tried topmost property ,but it's only usefull in the application not in the windows!
How can I do this?
|
|
|
|
|
It works for me when I set the form's topmost property to true, my form is then always on top
|
|
|
|
|
I think you misunderstood me. For example : I open one of my forms
then open the mycomputer or office program. This is where I need my project to be on-top of office. Also, my application comprises many dialog forms.
|
|
|
|
|
That would be user-hostile, not many users would want your application to do that so they wouldn't use it.
|
|
|
|
|
There's a segment of code in c# to change the magnitude of first columns of rows of a dataset, but it doesn't
work!
for (int i = 0; i < objDataSet.Tables[0].Rows.Count ; i++)
objDataSet.Tables[0].Rows[i].ItemArray[0] = i + 1;
how can I change the magnitude of the data in a dataset or dataview ?
|
|
|
|
|
I want to change the pixel format of any image
eg. i wanna change rgb image to greyscale
plz help me to do so
|
|
|
|
|
Seach the articles for "Image processing for dummies" and you'll find an great example by Christian Graus.
|
|
|
|
|
RGB->Gray is transformed as
Gray = (R+G+B)/3;
Bear in might it's a lossy filter, three channels end up being one. Sometimes the RGB values are weighted to make green lighter and blue darker.
|
|
|
|
|
It's commonly done like this:
Gray = 0.3*R+0.59*G+0.11*B;
Cheers,
Drew.
|
|
|
|
|
i want to get selected item in arraylist from chekbox list. For that i want to CHECK whether item is selected or not.
|
|
|
|
|
Do you have your checkbox's in their own collection? If not, you made your job harder.
|
|
|
|
|
Hi Have a good day ....
I hope you will help me to solve this problem .. in my C# Windows Application Form
I have Three Froms
MainFrom -- Has Two Buttons
Btn1 Show From1
Btn2 Show Form2
---------------------
From1 Has TextBox
---------------------
From2 Has PictureBox
---------------------
- I press Btn1 , and From1 Show up ....
- I press Btn2 , and From2 Show up ....
I want , a way that when I write an image path in From1 Textbox
then Fom2 PictureBox Display it ...
I don't want to do this by timers , I wounder if there is way like delegate ? or something ?
thank in advance ...
I know nothing , I know nothing ...
|
|
|
|
|
Create a custom event in Form1 that will be fired when you get a valid path in Form1's TextBox, and have your Form2 subscribe to that event.
|
|
|
|
|
You could do it this way if you passed the instance of Form1 that you created to Form2.
|
|
|
|
|
Not necessarily. That could be done in the MainForm.
If you want to decouple your 2 forms (Form1 and Form2), you could use interfaces(possibly only one for Form1, only exposing the event).
|
|
|
|
|
True... there are a couple of options he has... these all will work.
|
|
|
|
|
You can probably do this by making an event on Form1 that basically makes the text changed event of the textbox accessable outside of the form. Then have the main form respond to the event and pass the value to form2 and call a method on form2 to draw the image. I am presenting it this way assuming that you have both forms open at the same time??
|
|
|
|
|
The easiest way is to have a custom event in Form1 that you raise when you've validated the path, passing the path as an argument in a custom class derived from EventArgs. FormMain can subscribe to that event.
Form2 should have a method, something like public void UpdateImageFromPath(string path){ }. Call that method from FormMain in the event handler for your Form1 custom event.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thank you all ..... I really appreciated every replay ....
I will try what you have said , seems there are a lot of ways
thank you ...........
I know nothing , I know nothing ...
|
|
|
|
|
|
Thank you so much, I have voted for your answer Mr.Giorgi Dalakishvili
I know nothing , I know nothing ...
|
|
|
|
|
You are welcome
|
|
|
|
|
Hello...
Are there any possibilities to use SerialPort Class for communicating with a device using RS485 ?
In google, I cannot find something, that help me.
|
|
|
|
|
It won't work with a RS485 device unless you have some converter, or some other RS485 library, to convert the signals between RS232 and RS485.
|
|
|
|