|
Actualy I hoped you will do some research yourself...
oakcool wrote:
Well I want to click in a IE window that I openned before.
Why you didn't say that before??? If you need to control IE from your application, there is different way to do it.
Look at this Article[^] if you can have browser in YOUR APPLICATION. If it must be external IE window then e.g this link[^] should give you some idea... Or just type "IE Automation C#" into search engine.
Sorry I won't write any example now... I am sure there are many on the web.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Instead of the SetCursor API mentioned by dnh, you can use the managed System.Windows.Forms.Cursor.Position property , which gets or sets the cursor's position in screen coordinates.
www.troschuetz.de
|
|
|
|
|
I have a RichEditBox which I would like to automatically size vertically to match the length of text (no scroll bars) as the user types. How can I resize the RichEditBox this way in real time?
Thanks in advance.
|
|
|
|
|
Hello. Anyone here know if Kelly Blue Book has an API that can be used in C#?
Doesnt actually have to be Kelly Blue Book but just anything that grabs vehicle pricing information from a query of make and model.
Thanks
Steve Welborn
Software Architect
|
|
|
|
|
|
Excellent thank you very much for the info.
Steve Welborn
Software Architect
|
|
|
|
|
Hi! i have a question about C# and Active Directory. I've been searching all over the place, and i have yet to find what i am looking for.
first, I need a list of the basic objectCategory categories. Mainly the NTID, Phone number, and e-mail address. If there is a method that exports a list of the categories in the selected schema, that would be even better.
second, I need to know how to set the AD properties for the logged on account, based on text input boxes.
Any help would be AMAZING! Also, if there are any really good books on programming for AD, i'd really like to know which one is worth the price.
|
|
|
|
|
|
// the original c++ has those struct:
typedef struct
{
long id;
} StructA;
typedef struct
{
long price
StructA[4] idArray
}StructB
typedef struct
{
long date;
StructB priceArray
}StructC
// a function use those struct
void foo(StructC* quote)
//=============================================
// c# correspoding type
//=============================================
[StructLayout(LayoutKind.Sequential)]
struct StructA;
{
int id;
}
[StructLayout(LayoutKind.Sequential)]
struct StructB
{
long price
[MarshalAs(UnmanagedType.ByValArray,SizeConst=4 )]
StructA[] idArray
}
[StructLayout(LayoutKind.Sequential)]
struct StructC
{
long date;
StructB priceArray
}
// c# function
void foo(ref StructC quote)
It always complain StructB doesnt have layout info...
stuck for whole day
, really need help.
|
|
|
|
|
Sorry, just saw some post ,
currently , struct array as a member of struct is not supported.
But use flat stuct , member like this: arr1, arr2.... sounds not a good idea, Who can give a good work around?
|
|
|
|
|
Just to give you an idea, try changing the line in structB
From: [MarshalAs(UnmanagedType.ByValArray,SizeConst=4 )]
To: [MarshalAs(UnmanagedType.ByValArray, ArraySubType=UnmanagedType.LPStruct, SizeConst=4 )]
Basically you may need to specify the type of data that you have in the array. In this case I used LPStruct but you can try other types. I don't understand why we wouldn't be able to pass other structures after all, it's just a bunch of bytes that have to be marshaled into your managed structures.
|
|
|
|
|
|
I need to be able to get and parse a specific line from a richTextBox. I know you can get all the text from the box, or substrings if you know the start and end index, but I can not find a way to get just one line by using the line index. Does anyone know how to do this? I would appreciate any input you have. Thanks!
|
|
|
|
|
|
I am looking to find out how to add text from a file to a database. I am using the Split() method, and adding the text to a string array. How would I go about adding this text into a DB....into different columns?
|
|
|
|
|
May this help ? :
for(int i=0;i<myArray.Length;i++)<br />
{<br />
DataRow r = mydataSet.Tables[0].NewRow();<br />
r[Your index] = myArray[i];<br />
meDataSet.Tables[0].Rows.Add(r);<br />
}
.
|
|
|
|
|
Thanks for the reply! I am not sure what you are referencing on this line:
r[Your index]?
|
|
|
|
|
The index of the column you are tring to put this value in ,or just it's name just like :
r[3]
r["SplittedString"] .
|
|
|
|
|
I see exactly what you are saying. Let me give you some more detail though. I have created an app that will inventory computer information. It will write this info to a data file using a ; as a delimiter. This is where I get my SplitString. In this text file, one line will represent one computer, so I want to try and add the infomation of that one line into a DB row with Columns that have already been specified.
I am very close to figuring this out, but any help would be appreciated!
|
|
|
|
|
I just came from VB.NET to C# and in VB when ur in the programing window and you click the members box it displays all the events of a form or listbox ect.... it does not do this in C# though is there a way I can fix this?
thanks
|
|
|
|
|
|
Hi,
I've found the decimal code for the languages for a set of exe packages. All i need now is to from this code, i need to get the particular language. How am i to do this in C#?
|
|
|
|
|
|
yeah decimal code for eg if i supply 1033 means it should return English-UnitedStates similarly if i give any code sort of like that, it should return the language. how to do this ?
an elaborate way i did is by switch case. but i want a crisp way of doing this.
forget abt the exe packages.
|
|
|
|
|
A Hashtable (or Dictionary<int, string=""> if you're using 2.0 beta) is the way to go; put all the possible number codes in the dictionary as keys, with their corresponding language strings as values.
hashtable.Add(1033, "English-US");
That way, when you go to retrieve a language name based off the code for that language, you can use:
string languageName = (string)hashtable[1033];
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice
Judah Himango
|
|
|
|