|
how to make sure there is always an item selected in the listview even if the user clicked in the outside area?
|
|
|
|
|
This is the common behavior to most of the .NET UI controls. The selection remains when you click on another control. Only thing that you have to do, is to select for the first time..
If your intention is to show the selection to the user, you may change the background color of the item on selection.
|
|
|
|
|
Set the 'Hide Selection' property to false on the listview.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I want to know how can hide and again show a column in the listview control just like visible=true or =false?
|
|
|
|
|
AFAIK you need to remove the item when you want it invisible, and again you can add when needed.
|
|
|
|
|
Like was mentioned, you have to remove the column from the ListView to hide it, then re-add it when you want it to be visible.
|
|
|
|
|
is there any way to give a domain name then .NET will search for all created emails under that domain name?
|
|
|
|
|
jrahma wrote: is there any way to give a domain name then .NET will search for all created emails under that domain name?
Why would you need that?
I can not think of any other thing other than a SPAMMER needing this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
First, the question is why would yo want this?
The second question is search in WHAT for these emails? Search an Outlook archive?, an SMTP server?, your own database?, ... what is storing these emails??
|
|
|
|
|
Hello,
VS 2008
I am filling the buffer with the read method in the code below, using SlimDX to capture the audio input from the microphone.
The problem I have is that the buffer will overrun. It there anyway to create a circuler buffer that once it gets to the the end it will start over again?
Many thanks for any suggestions,
private void bgwAudioInput_DoWork(object sender, DoWorkEventArgs e)
{
Int16[] samples = new Int16[8192 / sizeof(Int16)];
Int16 audioValue = 0;
int i = 0;
captureBuff.Start(true);
while (captureAudio)
{
if (!this.bgwAudioInput.CancellationPending)
{
captureBuff.Read(samples, 0, true);
audioValue = Math.Abs(samples[i++]);
this.bgwAudioInput.ReportProgress(audioValue);
}
}
}
|
|
|
|
|
Hi,
Steve1_rm wrote: The problem I have is that the buffer will overrun
Are you sure about that? It looks to me as if you are attempting to read beyond the end of the array.
Every iteration of the while loop reads data into the samples array. That's ok but eventually the indexer i has the value 4096 and the array access in the line audioValue = Math.Abs(samples[i++]); will fail.
I can't understand the meaning of audioValue and how it would relate to progress. Did you mean to report total amount of data read perhaps?
Alan.
|
|
|
|
|
Steve1_rm wrote: It there anyway to create a circuler buffer that once it gets to the the end it will start over again?
Sure, just index with i%length or i&(length-1) for powers of 2 (which you have here)
|
|
|
|
|
So i've slowly been learning c# over few months but going slow and is my first language.
One thing i would like to know, is how it would get a c# program to take data from a website then display inside the application. (Not taking data from a database)
Could anyone possible point be at examples or tell me roughly what i would have to do.
Thanks in advance,
Malcom
|
|
|
|
|
Hi,
there are a couple of ways to do that:
1.
add a WebBrowser to your form, make it navigate to your URL, then grab its DocumentText.
You could do that with a hidden WebBrowser as well.
2.
use HttpRequest and HttpResponse classes to access the web yourself.
This is faster, but a bit more complex.
FWIW: make sure to study a good book[^] on C#
|
|
|
|
|
Yeah i have heard of HttpRequest and Response. I didn't want to use a browser.
So on return of the data it is possible to display it differently. For example come up in a textbox or different controls im not really thinking of just now.
Thanks for the book recommendation, i'm looking for the best one at Amazon
|
|
|
|
|
the response is always a string, it is a text following HTML conventions.
|
|
|
|
|
Thanks for the help
|
|
|
|
|
You're welcome.
|
|
|
|
|
You can use ADO.NET to create database for the website, and then connect to it with the C# application.
or you can do someting that call "web service" - open new ASP.NET Web service in your Visual Stduio, there, you can define methods that after you can call to then with your C#.
after you finish define, go to the C# project, and then on the solution explorer->referance of the project click left mouse, click "Web referance", and look for your web service address, then you can use all the methods you defined.
Gindi Bar Yahav - Web & Software developer.
|
|
|
|
|
Hey my friends ...... I have a password text box(i.e PasswordCharacter='*') there is one check box which allows the user to see its password or just the star ....... I tried to change the value of the text boxes passwordCharacter(i.e txtbox1.PasswordCharacter='') but it says "it is not allowed to make empty" ... so how can I do that??
Thank you
|
|
|
|
|
matiIsGreat wrote: I tried to change the value of the text boxes passwordCharacter(i.e txtbox1.PasswordCharacter='') but it says "it is not allowed to make empty"
No, you can't have an empty character literal - unlike a string which has a variable length 0..n and thus can be empty, a character has a fixed size (16 bits). Use '\0' for a null character and it will do what you want. Or, use "UseSystemPasswordChar" instead of "PasswordChar".
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I read an article on Msdn about how to restrict users from setting focus to a specific cell in DataGridView , and I understood how it work , but what really I need to now is how to restrict users form set focus to a multiple cells and especially if two cells are exactly adjacent
for example if I have 4 columns in a DataGridView and and the columns to skip are 2nd and 3rd , so how can i do that
|
|
|
|
|
Take a look at How to: Make Columns Read-Only[^] on MSDN.
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.”
|
|
|
|
|
hi Developers..
I need to print a text and images without using printer driver.
using c#.net
i really need it done any how..
thanking you
|
|
|
|
|
I hope you know exactly the commands you need to send to the printer to do what you want. You can bypass the printing system. There's an example in this KB article[^].
|
|
|
|