Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: realizing a URL using Regular Expressions Pin
Ed.Poore9-Jun-06 4:57
Ed.Poore9-Jun-06 4:57 
GeneralRe: realizing a URL using Regular Expressions [modified] Pin
Rizwan Rathore9-Jun-06 7:56
Rizwan Rathore9-Jun-06 7:56 
GeneralRe: realizing a URL using Regular Expressions Pin
Ed.Poore9-Jun-06 10:06
Ed.Poore9-Jun-06 10:06 
GeneralRe: realizing a URL using Regular Expressions Pin
Rizwan Rathore9-Jun-06 22:04
Rizwan Rathore9-Jun-06 22:04 
GeneralRe: realizing a URL using Regular Expressions Pin
Ed.Poore9-Jun-06 23:38
Ed.Poore9-Jun-06 23:38 
QuestionMesh array Pin
mehrdadc488-Jun-06 21:20
mehrdadc488-Jun-06 21:20 
AnswerRe: Mesh array Pin
WillemM9-Jun-06 2:39
WillemM9-Jun-06 2:39 
QuestionStringPointer Problem with TVM_GETITEM! [modified] Pin
suguimoto8-Jun-06 20:58
suguimoto8-Jun-06 20:58 
Hello!
[modified] Thanx to OrlandoCurioso!
I have tried to use a SendMessage with TVM_GETITEM with a TVITEM struct... but I got no result at all =/
Here is the code(piece):

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct TVITEM
{
public int mask;
public IntPtr hItem;
public int state;
public int stateMask;
[MarshalAs(UnmanagedType.LPStr)]
public string pszText; // string pointer
public int cchTextMax;
public int iImage;
public int iSelectedImage;
public int cChildren;
public IntPtr lParam;
}

StringBuilder sb = new StringBuilder(256);
TVITEM tvItem = new TVITEM();
tvItem.hItem = (IntPtr)Int32.Parse(textBox1.Text);
tvItem.cchTextMax = 256;
tvItem.pszText = sb.ToString();
tvItem.mask = TVIF_TEXT; // TVIF_TEXT = 0x0001;
IntPtr j = SendMessage(TreeHandle, (int)TV_Messages.TVM_GETITEM, (int)0, ref tvItem);
MessageBox.Show(j.ToString());

I´m still having some troubles... I think my only problem now is with the the String Pointer... If I can make it work... I can Retrive my item´s name from the TreeView... and it´s done!

Thanks!

-- modified at 9:27 Friday 9th June, 2006
AnswerRe: Problems with TVM_GETITEM and TVITEM! Pin
OrlandoCurioso8-Jun-06 23:42
OrlandoCurioso8-Jun-06 23:42 
GeneralRe: Problems with TVM_GETITEM and TVITEM! Pin
suguimoto9-Jun-06 0:53
suguimoto9-Jun-06 0:53 
QuestionSNMP Message Pin
murad basdag8-Jun-06 20:25
murad basdag8-Jun-06 20:25 
Questionhi help Pin
champ_vicks8-Jun-06 19:01
champ_vicks8-Jun-06 19:01 
AnswerRe: hi help Pin
J4amieC8-Jun-06 22:00
J4amieC8-Jun-06 22:00 
AnswerRe: hi help/select n deselect checkbxes in gridview Pin
Mairaaj Khan8-Jun-06 22:08
professionalMairaaj Khan8-Jun-06 22:08 
Questioncamera connected to local system Pin
leelaraj8-Jun-06 18:54
leelaraj8-Jun-06 18:54 
AnswerRe: camera connected to local system Pin
Ed.Poore8-Jun-06 22:33
Ed.Poore8-Jun-06 22:33 
QuestionCreating setup project which install mdac and fremework Pin
Dewang Ajmera.8-Jun-06 18:45
Dewang Ajmera.8-Jun-06 18:45 
AnswerRe: Creating setup project which install mdac and fremework Pin
Kodanda Pani8-Jun-06 20:57
Kodanda Pani8-Jun-06 20:57 
Questionhow to send live audio/ video streams on two ports Pin
duaaali8-Jun-06 18:09
duaaali8-Jun-06 18:09 
QuestionDatagridview row display Pin
printscreen123458-Jun-06 17:25
printscreen123458-Jun-06 17:25 
AnswerRe: Datagridview row display Pin
Mairaaj Khan8-Jun-06 21:40
professionalMairaaj Khan8-Jun-06 21:40 
AnswerRe: Datagridview row display Pin
Office Lineman9-Jun-06 7:18
Office Lineman9-Jun-06 7:18 
GeneralRe: Datagridview row display Pin
Mairaaj Khan9-Jun-06 21:01
professionalMairaaj Khan9-Jun-06 21:01 
GeneralRe: Datagridview row display Pin
printscreen123459-Jun-06 21:18
printscreen123459-Jun-06 21:18 
QuestionRemote capture SharePoint? Pin
Lane Yu8-Jun-06 17:16
Lane Yu8-Jun-06 17:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.