Ghawas's Q&A profile
Visual C# Byte Array
does anyone know how to empty an array what i mean by that is clear it so that it has no values. i know Array.Clear is supposed to do this but i cant get that option with a Byte Array Hi Do you mean emptying as in removing all items coz the initialize method only initializes every item in an array (not removing them)... But if you want to really remove all items then you'll have to redeclare it: byte[] myByte = new byte[30]; Console. ...Show All
Visual C++ Dialog Handle and Application Handle
Hi, I'm beginner id VC++, would anyone tell me how to get current dialog's handle and current allication's handle (with and without MFC) with thanks. mohammad Mir mostafa wrote: Would anyone tell me how to get current dialog's handle and current allication's handle (with and without MFC) Application Handle: You can retrieve it from WinMain() or DllMain() (it's the first parameter passed). Pass it as a parameter to eve ...Show All
.NET Development getrequeststream error
To everyone: below is a partial code that i am doing for parsing an html. this works fine on the first access. but at the second round it is hanging on getrequeststream(highligted in red). if there is anyone of you who have encounted this, please advise me of the solution. Thank you so much. Arequest.ContentType = "application/x-www-form-urlencoded" Arequest.ContentLength = postData.Length Arequest.Method = "POST" Arequest.AllowAutoRedirec ...Show All
Windows Forms Simple data binding IsNull property.
Hi, In windows with simple binding, there are some mention of having a property ending with IsNull, anyone knows if this actually works eg. Assume I have a custom class with a property "int SomeNumber", and I have another property "bool SomeNumberIsNull", simple binding will honour the "SomeNumberIsNull" property and bind the property differently Regards, Eddie ...Show All
Visual Studio 2008 (Pre-release) Getting the service claims in the client code
How can I obtain the service claims in the client code, namely If transport security is used, the claims associated with the SSL server certificate If message security is used, the claims associated with the security context established Thanks for the reply. Were can I find some documentation regarding the Message Inspectors Thanks Pedro ...Show All
Visual Studio Express Editions Urgent Help Needed : Cmoiling c# or JAVA class files in VS.net2005 Visual C#
In VS.net 2005 C# the compiler class has been made obsolete. Is there any other class with which i can compile my .cs file. I want to compile .java file through VS.net 2005 visualc# code.. How can I do that... How to execute that Please help me at the earliest. hi, i don't know but you can take see mono project http://www.mono-project.com/Main_Page hope this helps ...Show All
Software Development for Windows Vista tapi32.dll problem while using msdn dvd
Hi there all, We're trying to put togtether a Longhorn machine using the DVD copy sent to us on our MSDN subscription but we are encountering the 'tapi32.dll missing' issue that other have experienced during installation. Everyone who has seen this bug has said it was due to a corrupt download, they re-downloaded and it worked fine but we are using an MSDN DVD copy of the thing Any ideas Could it be something to do with my setup instead or ...Show All
Visual Studio Express Editions install error
Downloaded & installed OK on desktop. On Laptop, still getting the Windows Installer 3.1 error. The installation stops with the error message to send or not to send to Microsoft. On the download to desktop, the Windows Installer 3.1 wasn't one of the items being installed. However, when I did the install to the laptop, it was in the list of items it would install. Both systems xp pro sp2. Any help Hi, &n ...Show All
.NET Development Create virtual com port in C#?
I'm working on a project where I am reading from a com port to receive data from a GPS receiver. I can do this without any problems except for one. There is also another application that wants to read from the com port at the same time. I know there are com port splitters that I could use but I'd rather not have to use any 3rd party software. Is anyone aware of any way of emulating a com port so that I can point the other application to this por ...Show All
Visual Studio Express Editions VS Express vs. VSS
Can you connect to Visual SourceSafe 2005 with VS 2005 Express If so, can you use internet plug-in while you cannot use VSS from inside VS Express you can of course use them side by side without problems (check in and check out your sources outside VS Express and use them in it). ...Show All
Visual Basic Updating Databases
How do I prevent duplicate entries when working with ultrawingrid in VS 2005 I'm using a SQL database. I'm not fimiliar with ultrawingrid..but from a database perspective...a primarykey field keeps duplicate entries from being made.....so if I set up column 0 as a primary key field then the db will not allow any duplicate entires for that field. HTH ...Show All
Windows Forms Visual Inheritance Issues
Ok, when I first read about visual inheritance I almost started drooling. I've been mimicking this behavior for years with controls that I would include on the "inherited forms". I've only just inherited my first form today so nothing fa ...Show All
Visual Studio 2008 (Pre-release) Undeclared Namespace error when using x:TypeArguments
I'm trying to create a Page based on my own derived Page class, which has generic type arguments: < p:ViewModelBackedPage x:Class = " Paragon.SSRM.UI.ToolsPage " x:TypeArguments = " {x:Type p:ViewModel} " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:p = " clr-namespace:Paragon.SSRM.UI.Pri ...Show All
Windows Forms Using Word 2003 Automation- a bug in Word 2003?
I have written some code on VB.NET (and VB6). This code worked in all other versions of Word, and the same code is generated in VBA if you record a macro in Word for an Edit and replace (apart from the "Wordobj" bits) Now a&nb ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. Awesome.. thanks.. that worked.. I have no i ...Show All
