|
DevEx do some nice stuff and have a good rep here on CP.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Do you mean commercial components?
|
|
|
|
|
|
Hi.
How can i open page of a specific tab when a condition achieved without click this tab using c#?
modified on Wednesday, April 29, 2009 5:55 AM
|
|
|
|
|
You can programmatically change the current TabPage by using one of the following TabControl properties
SelectedIndex[^]
SelectedTab[^]
If the control is not loaded properly, use the help of ResumeLayout and Refresh methods.
|
|
|
|
|
I have this project that make use of the window media player control axWindowsMediaPlayer to play back a stream coming for a streaming server.
what i need to do is to be able to sample the waveform and draw it as the audio is being played.
would Microsoft.DirectX.DirectSound be usefull?
in C# or VB please...
thank you
|
|
|
|
|
hi , I created a fullscreen form, setting its topmost prperty to true and provide 2 textboxes in it (for username and password)
so i create a lock screen program usin this way.
i use a Timer that ticks every 500msec:
it causes the form stays on top even if user press ALT-CNTRL-DLT
void aTimer_Tick(object sender, EventArgs e )
{
try
{
this.Activate();
this.Select();
this.BringToFront();
}
catch
{
}
}
then i put the address of my program as a startup program, and it will run each time i login
but the problem is when i log in!! if i quicly run a program(beform my (Lock)form open) then i can hack the lock screen and it won't come to top,unless i click it!
it seems that
this.Activate();
this.Select();
this.BringToFront();
doesn't work when first the form is not active!
any suggestions?
|
|
|
|
|
Set the lock screen always on top.
*12Code
|
|
|
|
|
Always on top? is it a property? i think it is TopMost property that i have set to true!
|
|
|
|
|
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;
}
|
|
|
|