|
you'd have to set OwnerDrawand property to true and add DrawColumnHeader, DrawItem or DrawSubItems event..
life is study!!!
|
|
|
|
|
hi seishin,
Really thanks for your help.Could you please suggest me some code samples for implementing the same.I am really new to this concept.
So if you could send me some sample code, it would be of great use.
Thanks in advance.
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
http://www.codeproject.com/cs/miscctrl/customheader.asp
life is study!!!
|
|
|
|
|
I am developing a c# application which opens a .xls file using Excel object of c#.
If the file is already opened by another user for writing I need to display that users name in a MessageBox.
I have noticed that if Excel objects DisplayAlerts option is set true Excel application displays a messagebox for notifying the username who is modifying the file. But I want to display customised messagebox from my application.
Please help me. Solution required urgently.
|
|
|
|
|
Hi,
I don't know which shade of lipstick to apply tonight - any suggestions
Seriously though, I have the following code populate a multiline text box:
DateTime currentDateTime = DateTime.Now;<br />
string now = currentDateTime.ToString("MMM dd, yyy");<br />
textBoxMemberNotes.Text = now + Environment.NewLine + Environment.NewLine;
The problem I wish to overcome is that the resultant text is highlighted and if the user just starts typing then the text inserted by the above code is rightfully deleted.
How can I "move the cursor" (so to speak) programatically so that this doesn't happen?
Thanks in advance
Glen Harvy
|
|
|
|
|
The following should work (maybe you have to tweak the parameters). Alternatively you can set the SelectionStart and SelectionLength properties.
textBoxMemberNotes.Select(textBoxMemberNotes.Length - 1, 0);
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
how can i dynamically call a windows user control in a windows Form
|
|
|
|
|
just initialize as u declare and initialize any other object.
<br />
UserControl1 userControl1 = new UserControl1();<br />
And then assign it to the panel that you wish it to show in.
<br />
userControl1.Parent = Panel1;<br />
this wont yet show the user control, you should use the show function to show it in the panel
<br />
userControl1.Show();<br />
|
|
|
|
|
How can i get a table (no ID) through Webbrowser object in C#?
Any suggestion for me pls?
|
|
|
|
|
Give some detail abt ur work.. it is difficult to understand..
Ravi Kant Srivastva
(Design Engineer)
HandsOn Technology
|
|
|
|
|
After a HTML page is loaded by Webbrowser object, i can get the textbox, combobox and even submit a form through that webbrowser. But i cant find a way to get a table.
Cuz i wanna get the table (have no ID), in the HTML page, then i can retrieve the data from that table cell. I can do it in MS Access like this:
txtResult = WebBrowser0.Document.all.tags("Table")(TableNum).Rows(RowNum).Cells(ColNum).innertext
I wanna do the same thing in C#. Any hints or sample?
|
|
|
|
|
There u r buddy... but MS-Access creates it own internal ids or sometime table after tables...
if u want to do this...
do like this...
var oTBL= document.getElementsByTagName("table");
this will return a array of all the tables from ur webpage... but the problem is how will u find ur tables. if u r having more then one table or nested tables...
so do 1 thing and its recommended .. when ever u have to work on objects u should keep ids, if dynamic then dynamic ids.. that will make ur life lot easier...
if u have only one table then
<br />
<br />
var oTBL= document.getElementsByTagName("table");<br />
for(var i=0;i<oTBL.length;i++)<br />
{<br />
}<br />
<br />
|
|
|
|
|
I want a web API for sending and receiving mail
in C#
RoshanSrivastava
|
|
|
|
|
There are tons of articles for mail handling, try searching the articles..
Internet - the worlds biggest dictionary
|
|
|
|
|
I just discovered the "\protect" and "\protect0" RTF code word (whatever RTF people call them, code words or tags or whatever). I wanted to implement it into my little program (it has a RichTextBox control).
I can get it to protect the rich text just fine (cannot be edited), but it's not unprotecting protected text at all. Can someone please take a look at my code snippet and tell me what I'm doing wrong?
Note: The following code is inside my KeyDown event handler, inside an if-block that checks for the CTRL key being down, so CTRL+P makes this run.
if (e.KeyCode == Keys.P)
{<br />
string line = rtf.SelectedRtf;<br />
string text = rtf.SelectedText;<br />
Console.WriteLine("-----LINE-----\r\n{0}\r\n", line);<br />
if (line.IndexOf("\\protect") > -1)
{<br />
Console.WriteLine("unprotected:");<br />
line = line.Replace("\\protect0", "");<br />
line = line.Replace("\\protect", "");<br />
Console.WriteLine(line);<br />
rtf.SelectedRtf = line;<br />
}<br />
else<br />
{<br />
Console.WriteLine("protected");<br />
int start = line.IndexOf(text, line.LastIndexOf("\\"));<br />
int end = start + text.Length;<br />
line = line.Insert(end, @"\protect0");<br />
line = line.Insert(start - 1, @"\protect");<br />
rtf.SelectedRtf = line;<br />
}<br />
}
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
This is just to help new people.
In this code following line of code should be changed
string line = rtf.SelectedRtf;
string text = rtf.SelectedText;
TO
string line = rtf.Rtf;
string text = rtf.Text;
It works for me after making this change
Thanks
|
|
|
|
|
Found few articles about writing to the event log but I just want to save the event log (appevent.evt and system.evt)
Any body knows an easy way to do this c# (NET 1.1)
thanX in avance
|
|
|
|
|
Hi,
Seems to me you can copy these, just like all other files, e.g. with File.Copy
Luc Pattyn
|
|
|
|
|
Tried to copy the files as you mention but they get corrupted (even when done manually). Some body told me that need to used the event viewer program to properly ave them. So I am looking for the example to do that.
|
|
|
|
|
Is there a way in which I can access and create NTFS Object Ids (the one NTFS uses to keep track of shortcut links etc), from within a C#/NET application, without resorting to issuing commands via Process.Start etc.
Ta PhilD
|
|
|
|
|
I can't get my namespaces to work! If I have a group .cs files with "namespace AAA {" at the top, aren't I supposed to be able to access all of these files by placing "using AAA;" at the top of my program?
P.S. Do NOT give me an answer including anything with Visual Studio. I don't have this program, and won't for a long time.
---
A 13 Year Old Programming Wiz
The elementary kids were right!
"1" + "1' does = "11"!
|
|
|
|
|
csc.exe has built-in help, use /? to see it
I believe you need /reference (or /r)
all namespaces mentioned in using statements, need to be referenced, except maybe
for a couple of default ones (such as System itself).
the program one is not allowed to mention has a free "Express" version that I would
recommend...
Luc Pattyn
|
|
|
|
|
Luc Pattyn wrote: the program one is not allowed to mention has a free "Express" version that I wouldrecommend...
What does this mean? (Oh thanks, by the way; it worked )
*** Never give me an answer have anything to do with Visual Studio. I don't have this program, and it'll be that way for a long, long time. ***
---
A 13 Year Old Programming Wiz
The elementary kids were right!
"1" + "1' does = "11"!
|
|
|
|
|
you're welcome.
it means you can download [^] and use a professional IDE with no charge
provided you are runnine WinXP with SP2.
Luc Pattyn
|
|
|
|
|
I have to use my dad's mac for internet, and i can usually use a flash drive to transfer files to my pc, which doesn't have internet (and won't for a long, long time). I tried downloading the installer from that website, but it requires you to be connected to the internet. I found another that didn't need the internet to install, but it is to big for the flash drive. my parents said they are getting an adapter that'll plug into my computer so it can have internet, but it is fairly expensive and I'll have to get it for my birthday, which is in about 4 months.
*** Never give me an answer have anything to do with Visual Studio. I don't have this program, and it'll be that way for a long, long time. ***
---
Description: A 13 Year Old Programming Wiz
The elementary kids were right! "1" + "1' does = "11"!
|
|
|
|