|
I did that and I got the right values:
xxx;sss;zzz
|
|
|
|
|
So it is working?
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Well, it does seem to be working but there is something wrong. The first value is 760 so why don't I get "Good to Go".
|
|
|
|
|
My guess is that the value is not really "760". I bet there is an extra character in there, like a space or a tab or something. Check the ".Length" property on the value that looks like it is "760", and I bet it is not 3. If this is correct, then just call the ".Trim()" method on the string prior to comparison to remove extraneous whitespace.
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
You are a life saver, thanks so much. It just needed trimmed.
|
|
|
|
|
I want to know more about C#, I have a project about the "Website Mapper", Use C# language, I don't know how to realizing the function. How to use C# realizing graphic website map, This is my Question. Thank you very much.
Project Description:Represent in a graphical form the hyper linking of web pages and evaluate the status of all links from a web site.
WebSite Mapper analyzes the contents of a web site, and create the hyperlinked sitemap
|
|
|
|
|
If I understand your question you wish to automatically create a site map?
If so - this[^] is written in PHP, but it may be a good starting point.
|
|
|
|
|
My Question is: Which C# Controls will use realize the graphic website map? at Vs2003 or VS2005 development tool.
the controls can show the Static or 3D GRAPHIC ?
Question description: When you scan any website map, search the website map, and than show the graphic(static or 3D) website map?
Thanks
I don't know the PHP, I just know the C# or asp.Net
|
|
|
|
|
Hi, all:
I'm using a PrintPreviewControl to create a thumbnail document view for users. Everything works fine, except for the small MessageBox that gives the page count flashes.
Is there a way to suppress this MessageBox (or, at least, a clever work around to hide it)? This is w/VS2008 (if that matters).
(Also, where do I go to find out this stuff on my own?)
Thanks,
Balboos
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol
|
|
|
|
|
hi
unfortunately you can not.
PrintPreviewControl uses System.WindowsForms.PrintControllerWithStatusDialog initialized with System.Drawing.Printing.PreviewPrintController as underlying Controller to display the Preview.
the only thing you could do would be to write your own PrintPreview - Control.
you can find this out by using Reflector. it's a great tool if you want to take a look how things are done in the framework. it's frustrating sometimes but always very helpful
greets
m@u
|
|
|
|
|
Thanks for the news, even if it's bad. At least I needn't keep looking for an answer.
Your suggestion about creating my own printPreviewControl. Makes me wonder what I can use to show the mini-facsimile of the screen. Also makes me wonder why MS doesn't let these things be under programmer control.
A strategy I'm consider is to pixelize the image and then draw on the Form. It doesn't seem worth it - especially since I'm reasonably sure I'd not have accesss to the printPreviewControl bitmap, either.
Balboos
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol
|
|
|
|
|
Hi,
I want to serialize a List<int> so that it looks like:
<br />
<ArrayOfProductIds><br />
<ProductId>1</ProductId>><br />
</ArrayOfProductIds><br />
Or if this is too difficult:
<br />
<ArrayOfProductIds><br />
<int>1</int>><br />
</ArrayOfProductIds><br />
But...I want to be able to deserialize the XML back to a List<int>.
|
|
|
|
|
Create a new class that inherits from List<int>, has the attribute [Serializable], and implements either IXmlSerializable or ISerializable (depending on how you will serialize it). This will enable you to control the xml created/read when serializing or deserializing. Hope this helps,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
I have written this code to read the XML
<br />
public void ReadXml(System.Xml.XmlReader reader)<br />
{<br />
reader.ReadStartElement();<br />
<br />
while (reader.ReadToNextSibling("ShoppingListItemId"))<br />
{<br />
this.Add(reader.ReadElementContentAsInt());<br />
}<br />
}<br />
When I read the following it works fine:
"<ArrayOfShoppingListItemId>\r\n<ShoppingListItemId>1</ShoppingListItemId>\r\n</ArrayOfShoppingListItemId>"
But when I get back a string from the database without the '\n' and '\r' it skips the while loop? Why is it doing that?
"<ArrayOfShoppingListItemId><ShoppingListItemId>1</ShoppingListItemId></ArrayOfShoppingListItemId>"
|
|
|
|
|
Would it be a problem if I installed .Net 1.0 and 2.0 on the same machine?
thanx
|
|
|
|
|
Hi,
you can install all .NET versions side-by-side, they don't interact.
Vista comes with most of them preinstalled.
You can install several Visual Studio versions side-by-side; they don't interact except
the one installed last will be launched when double-clicking one of the relevant
file extensions (such as .cs).
|
|
|
|
|
No.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
While in most cases there's no problem, you should be aware that .NET 1.x and 2.0 do collide when it comes to CAS (that's a point I had to learn the hard way).
If you set CAS policies with .NET 1.x, then these policies are not used if .NET 2.0 is installed as well. Only the 2.0 policies will be effective, even for applications running with .NET 1.1!
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
That's news for me. Thank you!
|
|
|
|
|
hi i have adde handler for html document like this but i am not able to find arguments for the event
could any one help me for this
mshtml.HTMLElementEvents2_Event the_event = (mshtml.HTMLElementEvents2_Event)elem;
the_event.onclick += new mshtml.HTMLElementEvents2_onclickEventHandler(htmlonclick);
with regards
Balagurunathan.B
|
|
|
|
|
If you're using Visual Studio, you can just click on the delegate name, hit the F12 key, and it will show you the arguments.
You can also use a class inspector tool like the free Lutz Reflector[^] to show you this information.
|
|
|
|
|
What I usually do is when adding the event handler, I just push tab twice, to get the following effect...
SomeObject.SomeEvent +=
SomeObject.SomeEvent += SomeEventHandler(SomeMethod);
private void SomeMethod(...) {
} Hope this helps in the future,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Heyo all,
I got this isue that I'm not able to solve for some dark reason.
I am currently working on a macro (own, independant program) that will log me in when another program (totally NOT made by me and I do not know how everything is implemented) is done loading. I can see this by a loadingbar.
Now it is not that hard to find the handle and such for this loadingbar.
So far I used (manually) Spy++ to spy on that loadingbar and noticed that when it's done loading, there aren't any messages send anymore. Which are "WM_PAINT" and "WM_ERASEBKGDN".
It is totally not important what the values are, only that the message is sent.
In Spy++ I'm able to see those messages, but in my C#-application I'm not able to.
Basically:
1. I start the other program (solved)
2. Wait until it's done loading (unsolved)
3. Type in the login information (solved)
I hope that it is clear to you that I only need code that lets me read those messages in that loadingbar and it must be possible to implement it in my C# code. Everything is ok, as long as I'm able to get a result back in my C# code, as for instance a boolean, an id of the message or the time of the message.
All I want to check is if there is no message sent for 5 seconds, so I'm sure that I can type in my login information (automated).
Thanx in advance and I hope somebody knows how to do this.
|
|
|
|
|
|
I have found many, many examples that use the SetWindowsHookEx function. But in my case they never work. Though I have never used the GetWindowThreadProcessId function before. That may make a little difference, although I've tested it with all the proccess Id's before...
I want to place a Hook into a different application of which I totally do not know how it works. So far I guess I have to inject a DLL, but how exactly I do this or what this DLL has to be able to do, I don't know.
All I want is the same functionality as Spy++ has: reading all the messages of a Window, which is in my case a loadingbar. It has it's own hwnd and such, and it receives/sends messages such as WM_PAINT (I want to read those!).
So far I'm only able to successfull place either a hook on the same process or a global hook. But those two aren't good enough for what I want to do. Though, it's rather easy to send messages to that loadingbar, so I'm realy confused why reading them should be so hard/difficult.
Thank you for your quick reply and I actually hope you can bring me a little exampe from somewhere that shows me how to place a hook on a different process totally different of the process my program is running in: exactly what Spy++ does...
I will try with the GetWindowThreadProcessId function, but I think that won't help either...
|
|
|
|