|
GreenApple30 wrote: static List<member> MemberArray = new List<member>
Do you mean you wanted to use MemDoc instead of the above code? If that's the case then you just simply need to create an instance of MemDoc:
MemDoc MemberArray=new MemDoc();
...
foreach (Member memberItem in MemberArray) {
...
}
|
|
|
|
|
Hi,
I have a field of type datetime in my SQL database and I want to populate that field from parsed date from email message. My email message parser is giving me this following string as date.
"Thu, 13 Apr 2006 11:37:18 -0700 (PDT)", now , is there any common way to convert this string into C# DateTime Format so that I can insert this value in my SQL datetime field.
Please help...
Thanks
|
|
|
|
|
|
Thanks a loooooooooooot for the information.
|
|
|
|
|
|
I am adding items to a listView, but during runtime I see them being displayed one next to the other, instead of one below the other. I mean that I see that item 2 gets added to the listView and is displayed parallel to item 1 present in the listView instead of being displayed below item 1. Can anyone tell me the reason and possible solution to display it one below the other?
|
|
|
|
|
|
Hi,
I want to write a program that controls IIS. The reason that I don't want to use MMC(tool of Microsoft used to configure IIS) is that I want to group some operations to do a specific thing into 1 operation.
Can you give me some suggest?
thanks for your help,
Hung
|
|
|
|
|
Hi to all
In windows application (C# or Vb.net) How we can add (one time) some PictureBox or ImageList into project and reuse its in all Forms.
in normal we must for each form add its ImageList and PictureBoxe.
it is very important to reduce exectable file size.
Please Help me: zolfaghari@usa.com
zolfaghari <zolfaghari@usa.com>
|
|
|
|
|
put it in a usercontrol and load that control whenver (wherever) you want it
regrads,
g00fy
|
|
|
|
|
can anyone tell me some way to set different colors for different Items that I add to my listview? I am inserting strings into a listview, but I want them to appear in different colors, how can I do that?
|
|
|
|
|
You can set the foreground and background colors of items in a list view, as in:
ListViewItem lvi = myListView.Items.Add ("Hello");
lvi.ForeColor = Color.Red;
lvi.BackColor = Color.Beige;
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
In reply to your email:
Do you know how do I do this:
I am adding items to a listView, but during runtime I see them being
displayed one next to the other, instead of one below the other.
I mean that I see that item 2 gets added to the listView and is
displayed parallel to item 1 present in the listView instead of being
displayed below item 1. Can you tell me the reason and possible
solution to display it one below the other?
Best Regards
Rahul Taing Set the list view's View property to Details .
/ravi
PS: Am posting your email here so others may benefit from your question. Replying to a post (vs. sending email) is the preferred way of communicating at CP as it allows others to share (and provide) information.
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Hi,
Is there a way to find out Internet Explorer (or Firefox) settings through C#? I am writing a WinForm Application and need to collect information about the user's browser settings, including the list of plug-ins installed for the browser.
Does anyone have any ideas how I can get this information? I really appreciate your help!
Thank you,
Farhat
|
|
|
|
|
Hi,
Check this link http://www.dotnetbips.com/articles/displayarticle.aspx?id=172
I think this may be useful for u...
Thank you,
Vaibhav
|
|
|
|
|
Thanks Vaibhav,
That article seems to talk about getting the browser capabilities from ASP.NET. What I want to do is to create a windows application that can run in the background and monitor the internet settings of the browser, especially what plug-ins have been installed. If a change is made to them, the application can record it in the internal database. I have looked around and can't seem to find a way to do this. Is there a way to accomplish it? Is there a way to enumerate the plug-ins available on the computer?
Thanks,
Farhat
|
|
|
|
|
How to open a html page by IE when click a linkbutton or a button in Compact Framework?
Thanks
Nothing
|
|
|
|
|
Hi, I am using the P/Invoke to call some methods from an API "wrg303API.dll". I am currently facing problems to convert few of the methods and variables to .NET (c#)..
1. [C/C++ declaration] char szSerNum[9];
[C# declaration]
[MarshalAs(UnmanagedType.ByValArray,SizeCount=9)]
public char [ ] szSerNum;
2. [C/C++ declaration]
DWORD dwVcoFreq[8];
[C# declaration]
[MarshalAs(UnmanagedType.ByValArray,SizeCount=8)]
public DWORD [] dwVcoFreq;
Can I write "string" instead of "char [ ]" and then put the limit on its size. Any suggestion for the "DWORD" array
Now the methods which have problem:
3. [C/C++ declaration]
BOOL __stdcall G3BlockScan (int hRadio,DWORD *Freqs, int Count,int StopSquelchRaw,DWORD feedbackTime,
HWND WinHandle,DWORD Msg);
[C# declaration]
[DllImport("wrg303api.dll")]
public static extern bool G3BlockScan(int hRadio,ref uint Freqs, int Count,int StopSquelchRaw, uint FeedbackTime,
IntPtr WinHandle,uint Msg); I am using IntPtr for HWND .. is it right? Or there is an other option.
4. [C/C++ declaration]
BOOL __stdcall CodecStart(int hRadio,void __stdcall (*CallbackFunc)(void *),void *CallbackTarget);
[C# declaration]
5. [C/C++ declaration]
DWORD __stdcall CodecRead(int hRadio, void *Buf, DWORD Size);
[C# declaration]
I need the equivalent of methods 4 and 5 in C#
6. [C/C++ declaration]
BOOL __stdcall G3GetPath(int hRadio, char *Pathname, size_t size);
[C# declaration]
[DllImport("wrg303api.dll")]
public static extern bool G3GetPath(int hRadio, string Pathname, size_t size);
What will be the equivalent of “size_t” in c#
I would appreciate if any1 can help me...
|
|
|
|
|
Hi everybody
Where i can put my code if i whant he to be execude befour postback or how to make some event who start befour post back???
Pleas help me
than you
//using version visual studio 2005
-- modified at 16:54 Friday 14th April, 2006
|
|
|
|
|
Are you talking about postbacks in a web application? If so, then the ASP.NET forum would be right place to ask.
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
if (!this.IsPostBack)
{
// Your code
}
The novice.
|
|
|
|
|
Hello,
Are System.Diagnostics.Debug methods automatically ignored by the compiler when DEBUG is not defined? Or do I still need to wrap it with a #if DEBUG ... #endif ?
I tried testing this by running a System.Diagnostics.Debug.WriteLine(...) on a Release run and it seems ok. I'm just having a problem when it comes to a release installer. Just wanted to make sure that this isn't the cause of the problem.
Thanks much!
~Rafferty
|
|
|
|
|
Rafferty Uy wrote: Are System.Diagnostics.Debug methods automatically ignored by the compiler when DEBUG is not defined? Or do I still need to wrap it with a #if DEBUG ... #endif?
Yes they are ignored. Most methods in Trace and Debug classes have the COnditionaAttribute set. If a method is called with this attibute and the value has not been defined, it will not be called (not even emitted). Pretty nifty, considering the other mentioned alternative
|
|
|
|
|
Great! Thanks for the confirmation leppie!
~Rafferty
|
|
|
|
|
Hello,
I'm posting what I hope will not be too ignorant of a question regarding com interop
A number of times I've seen in examples on this site a piece of code where the author has used com interop to call a method from an external dll (I assume c++ dlls being called from the c# code). My question is if you did not author the c++ dll yourself what is the best method to find out what the classes, methods, etc are that are contained in the dll? Basically, where do you determine what it is that you need to call from the dll?
For example, consider this call to an external dll (from an article here on Code Project):
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
How did the author determine that in the dll that he called that there is a WritePrivateProfileString method and that it takes 4 string parameters? Is there some utility out there that allows you to browse c++ dlls and that you can use to determine what method and parameters you would need to import?
Bear in mind that I'm still learning c# and com interop is one subject that I've struggled to understand fully.
Thanks.
|
|
|
|