|
Take a look at the SetWindowPos API call.
You might also Google 'make form always on top c#'. There are loads of 'solutions' to this problem, some of them might do what you want.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
SetForegroundWindow: makes the specified window the current foreground window and gives it the focus. This function should only be used with windows which your program owns. Of course this function should be used with caution, since the user usually doesn't expect the foreground window to change unexpectedly. The function tells Windows to somehow draw the user's attention to the window, such as by flashing its icon in the taskbar. The function returns 1 if successful, or 0 if an error occured.
maybe i should disable the feature of flashing in taskbar?
|
|
|
|
|
Hi,
i want to export excel file to pdf how can i do this
Thanks
|
|
|
|
|
Ask Doctor Intarweb:
"print to pdf" with any reputable search engine
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I have a listbox control that contains one or more directories. How do I watch this listbox to see if something is added or removed to it so I can proceed to update my other controls depending on what changed. I can't see an event that really pertains to this, maybe DrawItem but that seems like a bit of an ugly solution.
Thanks, sorry if this doesn't make sense, sleep is needed.
|
|
|
|
|
Can't you update the other controls from the code that updates the listbox?
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)
|
|
|
|
|
If listbox is in your application then your code is adding items so you should know when an item is added.
|
|
|
|
|
You probably want the filesystemwatcher, look into the IO namespace for it. Caveat, the early version choked on too many events but I have not used it since v1
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
is there any way to import CSV file to datagridview without all the procedure of connectionstrings and querys????? i want only to imports the parameters of the CSV to the table.....
10x...
Ido
|
|
|
|
|
You can read a CSV into memory as a string array using File.ReadAllLines and use the split method to split on the comma to get your fields.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I love it when I can do this - CSVtoTable[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Great! lovely 10x!!!!
|
|
|
|
|
|
how using properties inheritece?
how chage one properties and then the inherited that i selected take changed?
ex:visible property in text chaged so lable visible propertes changed.because i select lable visilbe properties to inherite from text visible propertis.
thanks
|
|
|
|
|
What
If you give us a proper example of what you want, we may be able to help you achieve it. Try to be a little clearer as the above makes no sense at all.
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)
|
|
|
|
|
If I understand you, which I doubt
generate a VisibleChanged Event for your TextBox
private void aTextBox_VisibleChanged(object sender, EventArgs e)
{
aLabel.Visible = aTextBox.Visible;
}
|
|
|
|
|
i want to thank the all of the pepole that help ech other to improve .
thanks i think i gi ve my answer.
thank u . thank u . thank u.
|
|
|
|
|
Hi
In my application I want to view Windows' Safely Remove Hardware screen from a button instead of clicking the hardware icon on taskbar to see inserted flash disks.
Is there a function to call?
can anyone help me?
|
|
|
|
|
Maybe this article[^] can help?
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)
|
|
|
|
|
|
Can I get the special xml strings (< & etc) directly instead of being translated?
For example, given the data "RCI>", the code:
xmlReader.ReadStartElement("DATA");
data = xmlReader.ReadString();
xmlReader.ReadEndElement();
Gives: "RCI>". Can I get the raw "RCI>" and if so, how?
Thanks
|
|
|
|
|
use
String.Replace Method
*12Code
|
|
|
|
|
|
That's the one.
Thanks very much.
|
|
|
|
|
I have this code in my project:
<br />
string str;<br />
byte[] enc = new byte[str.length];<br />
enc = Convert.FromBase64String(str);<br />
when i trace it, in the 2nd line the enc is a byte with the length of str but when 3rd line executes the enc length becomes 1 and therefore my data is not valid at the end.
does anybody know what should i do?
Roshanak
|
|
|
|