|
I would like to pull out some icons from
Windows (Its Shell32 Dll)to Image list
How can i approach to those icons ??
C# Windows Form
|
|
|
|
|
How can read a text by text to speech microsft engine ?
Regards' AmirJalaly
|
|
|
|
|
Hi All,
I have a listview which I have enabled multiselect and want to delete all of the user selections.
The user presses a button to do this. How can i delete all selected rows in the listview?
Thanks for the help.
Stephen
|
|
|
|
|
Hi!
The first approach would probably be to iterate over the SelectedIndices collection and to remove the items in there. You have to be careful, though, not to alter the collection inside the loop.
So I'd suggest a for loop instead of a foreach and to iterate over the Items collection and to check for the Selected property:
for (int i=0; i<ListView1.Items.Count; i++)
{
if (ListView1.Items[i].Selected)
{
ListView1.Items.RemoveAt(i);
i--;
}
}
(written from memory, no guarantee for correctness )
mav
|
|
|
|
|
The code isnt complete. I would suggest:
<br />
for (int i = ListView1.Items.Count - 1; i >= 0; i--)<br />
{<br />
if (ListView1.Items[i].Selected)<br />
{<br />
ListView1.Items.RemoveAt(i);<br />
}<br />
}<br />
|
|
|
|
|
You're right, I forgot to escape my <
Sorry for not verifying the results...
My for loop was:
for (int i=0; i<ListView1.Items.Count; i++)
mav
|
|
|
|
|
Can anyone please guide me how to set the properties of Windows Control Library dll when we are using it in HTML page ?
Say for ex:
<OBJECT id="ucl" name="ucl" classid="http://localhost/UserCtrllib/ControlLibrary.dll#ControlLibrary.rtfcontrol" VIEWASTEXT width=275 height=500></OBJECT>
I have a property : FileName in the rtfcontrol class. I need to assign file for the file name thru html.
How will i do that ? It tried the following
<script language =javascript>
function callFun()
{
ucl.FileName = "abcdefg.xml";
}
</script>
but says ucl is undefined.
Let me know where have I gone wrong ?
-Sreenath
|
|
|
|
|
hello i have a program using a TcpListener and x number of Sockets each has thier own thread my real question is how to i determine if the sockets have lose thier connection i have a thread that handles the sockets connection and determines if the user has sent any data or not and then passes it off to the main thread. i tried using Socket.Connected but it didnt do anything i have a try block within the user thread and i tried using catching a SocketException but that didnt work either what are your suggestions
thanks
|
|
|
|
|
If I want to insert 100000 record. What are the fast way to insert. I use Microsoft Access
|
|
|
|
|
First, don't use Access.
Second, no matter what, this is going to take a while. Access is file based meant as a small desktop database, not the monster your about to make it with that kind of an import.
Access/Jet doesn't have a bulk import ability like SQL Server does, at least programatically. Depending on the source of the data, you can import delimitted text files, but only in Access. Access parses up each line and INSERT's the data one line at a time. Your app will have to do the same thing, call an SQL INSERT statement for each and every record that your going to put into the database.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I'm trying to hash a password so that only the hash is stored in the database and not the password itself. Can I use FormsAuthentication.HashPasswordForStoringInConfigFile in a Windwos Forms application? Or is ther anything similar?
Thanks,
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
|
Colin Angus Mackay wrote:
FormsAuthentication.HashPasswordForStoringInConfigFile
This is a little bit of topic, but anyway: This one really puzzles me. I'm usually amazed about the design of the BCL but in this case my first thought is 'where are HashPasswordForStoringInDatabase(), HashPasswordForStoringInNonConfigFile() and HashPasswordConvertItToStringAndReturnReferenceToString()'. I also don't understand why the second parameter is a string instead of an enum.
Confused regards
Dennis
|
|
|
|
|
|
Colin Angus Mackay wrote:
Let me know if it works or not.
It did work. I just had to manually add a reference to System.Web.dll and it all worked.
Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
my project use an access data base (mdb file) and i want to encrypt that file to prevent abusing the database but if i change the file my project cannot use it because adoconnection can not connect to this encrypted file and if i decode the enrypted file in my project,during running of my project the database file can be abused in out of my application area. what should i do with this problem...
thanks
m.rastgar
|
|
|
|
|
when i create a setup for my project with .net setup project when i use it in other windows which .net framework isnt installed on it, the setupping of my project doesnt work and its error message says you need .net framework to run this setup. what should i do to have a complete setup of my project without any problems in the computers which .net framework isnt installed on them. if the answer is to install .net framework on destination computer, how should i do that. please tell whole procedure ...
thanks
m.rastgar
|
|
|
|
|
A .net application can only run on a machine with .net framework installed.
here is an article on the deployment of framework issue:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/dotnetframedepguid1_1.asp?_r=1
-spif2001
|
|
|
|
|
Hello all,
I hope someone out there can help me! I am beginning to write a Karaoke hosting program, similar to Mimic Audition 2 and MTU Hoster (a quick GOOGLE will show you the apps I mean).
In order to start off, I need to be able to rip CD+G discs in to BIN or ISO format, in a similar way that something like CDR-Win can do. I found the C# CD-Ripping code on this site, and thought I'd give that a quick whirl, but unfortunately when trying to play the ripped file back through a karaoke player I get one frame of graphics, and an awful lot of noise rather than music.
Has anybody got any ideas how I could go about doing this? I believe the graphics are sub-channel data to the audio file.
Any suggestions greatly received!
Paul.
|
|
|
|
|
Hello
I have a question :P.I need to know where the top + left locations of the richtextbox carot (ie. where the text is being entered !) when the keypress event is fired. Does anyone have any idea of how to go about this?
Thanks in advance.
|
|
|
|
|
Does anyone know of any examples of calling a web service in C# without using the Visual Studio auto class creation system?
Problem: I have a web service which is not stuck on any one URL. How do I allow a user to change that URL on the fly and call another instance of the Web Service.
|
|
|
|
|
|
I didn't want a simple answer. I wanted the long drawn out theoretical solution that leads to the simple answer after many hours of ripping my hair out.
Indeed, there is a property called 'URL' that can be modified from the default. Silly me.
-Thanks
|
|
|
|
|
Hello all,
Thanks for all help that you provide.
I made a C# Com+ component with 4 method all of them marked with [autoComplete(true)]. and i use this Component in another desktop application i need to make a one transaction for this method if one fail should all rollback
and this the code:
the component code:
<br />
[AutoComplete(true)]<br />
public int SaveTimeCard()<br />
{ <br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int RowNBR = DB.Insert("Insert Into TimeCard_Info .....");<br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_STD()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int STD_Row = DB.Insert("Insert Into TimeCard_STD....."); <br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_OT()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int OT_Row = DB.Insert("Insert Into TimeCard_OT......."')");<br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_DT()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int DT_Row = DB.Insert("Insert Into TimeCard_DT.....");<br />
}<br />
the application us this component:
<br />
DataAccess.SaveTimeCard() ;<br />
DataAccess.SaveTimeCard_STD();<br />
DataAccess.SaveTimeCard_STD(); <br />
<br />
DataAccess.SaveTimeCard_OT(); <br />
DataAccess.SaveTimeCard_OT();<br />
<br />
DataAccess.SaveTimeCard_DT(); <br />
DataAccess.SaveTimeCard_DT();<br />
hay
|
|
|
|
|
Anybody know where there is a third-party freeware MailMessage provider that works with the majority of operating systems that does not require a CDO wrapper provided by Outlook.
I cannot be certain that the end user would have Outlook installed or what their operating system is, and the SMTPMailer code provided in several of the articles on www.codeproject.com require the implementation of the CDO object. While I understand that there is an MX record that could somehow be interfaced with, I suspect that this MX record is more related to extracting a file from an existing Outlook installation.
Would like to bundle a freeware version that would simply send an email message with all of the required parts namely, from, to, bcc, subject, message and attachments. There is not any need to receive any or extract any email messages, only to send them from a C# windows form.
Would appreciate some input. Thanks
|
|
|
|