Ti's Q&A profile
.NET Development XML Serialization Over TCP Sockets
I have an appliction that serializes an object over a NetworkStream, and I want the receiving application to deserialize the object as effeciently as possible. Is it possible to directly deserialize an object using XML Serialization and NetworkStream's In VB, the receiving application has the following line of code: MessageObj = CType(Serializer.Deserialize(NetStream), Message) The application appears to hang on this line. However, when I close the application that originally serialized the object to the stream, the receiving application continues and successfully displays a value contained within the deserialized object. Is it possible for the object to be deserialized successfully in this manner It see ...Show All
.NET Development Sending a Mail
Hi, How to send a mail from one system to another system with in a same LAN, Using vb.net Windows application [using SMTP] Please Help me. ...Show All
Visual Studio Express Editions table layout panel help
hi y,all I have a table layout panel 8x8=64 squares how do I initialize the panel so I know the x y position of each square... how do I move from square 1to square 7 for example.... if I want to insert a pic in a certain square I need to know the position..... you know what I mean...... please give me a code example.......thank you cheyenne , The following code example demonstrates how to override the OnCellPaint method to create a custom appearance for a cell. For an example that uses the TableLayoutPanel control to create layouts that respond well to resizing: Public Class DemoTableLayoutPanel Inherits TableLayoutPanel Protected Overrides Sub OnCellPaint( _ ByVal e As System. ...Show All
Windows Forms Strongly Typed Version?
I am trying to achieve: myDataSet.memberRow newMember = myDataSet.Member.NewMemberRow(); newMember.referredByID = (long)((DataRowView)memberBindingSource.Current).Row["id"]; It seems to me that the memberBindingSource should be strongly typed since it was generated as part of a datatable, so that I could simply go: newMember.refferredByID = memberBindingSource.Current.id; Am I missing something Is there a way to do this in a strongly typed way ModelListDataSet . AreaMembersRow newAreaMember = modelListDataSet.AreaMembers.NewAreaMembersRow(); newAreaMember.area_id = ( long )(( DataRowView )areasBindingSource.Current).Row[ "id" ]; newAreaMember.model_id = _modelID; modelListDataSet.AreaMembers.AddAreaMember ...Show All
Commerce Server Profile Object
What does the Requires Approval for Account Status in the Profiles for a User Object do I was hoping it would prevent a user from placing an order in the starter site but that does not seem to be the case. Any ideas on how to tie this in or am I just missing something. Xcel. You need to code this yourself. Before authentication the user the Starter Site gets the users profile object. Once you have the object you will need to do a quick check to see if the user is approved. -Max ...Show All
Visual Studio Latest MSDN library compatible with Visual Studio 2003?
Hi: Can the May 2006 MSDN library be integrated with Visual Studio 2003 If not, what is the latest that can be Best Nag It doesn't appear so. The May 2006 Library is available at http://www.microsoft.com/downloads/details.aspx FamilyID=373930cb-a3d7-4ea5-b421-dd6818dc7c41&DisplayLang=en The Platform SDK contains most of the documentation in the Library, though not the Visual Studio doc. http://www.microsoft.com/downloads/details.aspx FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&DisplayLang=en ...Show All
Smart Device Development Help with Timeline/ Measuring time between 2 DateTime's in milliseconds
Hi, im creating a music application for Pocket PC. Link here: http://www.ableton.com/forum/viewtopic.php t=50295&start=0 I wish to measure a time intival between 2 DateTimes's So im using code below: DateTime start = DateTime.Now // wait some time Datetime stop = DateTime.Now TimeSpan span = stop - start; MessageBox.Show(span.totalMilliseconds.toString()); Problem is it's returning whole seconds like 1400 1500 1600 and not a double like 1405.1234 like it says in the api docs. Anyone have any ideas how do i measure time in compact framework in total milliseconds Thanks for your time. Paul. Use System.Environment.TickCount or P/Invoke ...Show All
.NET Development How can I expose a specialized managed template class to C#?
Hi all, I know that only referenced functions are emitted in the metadata so how can I force all of the functions in my template to be referenced. I tired explicitly creating the class like this: template ref class MyClass<FirstType^, SecondType, ThirdType>; That didn’t work. I also tried this: public ref class MyDerivedClass : public MyClass<FirstType^, SecondType, ThirdType> { }; That didn’t work either. I end up with MyDerivedClass and no member functions. So, is there some way I can force this thing into metadata Seeing as no one seems to have any suggestions I've had to come up with some solution and I'm sure it’s not the best. In ...Show All
Windows Forms binding CheckBoxes to bit column types in SQL server. The bit filed values will be put in class properties
Hi Guys, I have my classes like account class...etc. The class is related to Account form. On the form i have few checkboxes: chkCreditIndicator, chkSpecialIndicator, chkHoldBill All those checkboxes I need to bind them to the fields in the account table. My fields are: CreditIndicator, SpecialIndicator, HoldBill. But I go through an accountEntity class to do that. Class AccountEntity property Boolean HoldBill End Class I have my data layer that assigns the fields to the account class: accountEntity.HoldBill= myDataRow("HoldBill") My questions pls: 1/ I defined the fields as bit type in SQL server since they ll be related to a checkbox (either true or false ). Is that good thing 2/ How do I define th ...Show All
Visual Studio Team System Application verifier tool
Hi I want to use a good memory leakage tool for windows mobile 5.0. I found a tool Application verifier for windows mobile 5.0. I installed this tool and platform builder. But when I try to connect it only shows CE default device. Its not showing windows mobile devices. I found out the document with this tool. But not getting how to use this tool with visual studio. Please let me know if anybody use this tool or there is another tool for finding the memory leakage on windows mobile 5.0 device as well as emulator. thnx n regards Hi, The application verifier tool for CE is using an older connection layer. The 'default device' refers to the last device that booted - usually this is what you want to select. Here are a few res ...Show All
.NET Development ResolveEntity for File Entities
So the gist of what I want to do is copy an xml file like: < xml version="1.0" encoding="utf-8" > <!DOCTYPE chart[ <!ENTITY XAxis SYSTEM "XAxis.xml"> ]> <chart> <chart_data> <row> <null /> &XAxis; </row> </chart_data> </chart> The copyed file would contain: < xml version="1.0" encoding="utf-8" > <chart> <chart_data> <row> <null /> <number>1</number> </row> </chart_data> </chart> After looking around the web and experimenting this is what I have: XmlValidatingReader reader = new XmlValidatingReader(new XmlTextReader(@"")); XmlTextWrite ...Show All
.NET Development Default Values with a DataSet and SQL Server Express don't work at the table level
I am new to SQL Server Express and have worked with datasets a little, I am just not sure what I am doing wrong here... When I create a new row with a dataset, the table columns 'Default Values' properties inside of SQL Server Express do not work. If I use the database tools to insert a new record; those 'Default Values' that are in the column properties do get transposed or inserted into the new row for that particlular column if there is no other input. But... if I insert a new row with a dataset; NONE of those 'Default Values' are inserted if there is no value input for that column(s), ALL of those columns recieve a 'NULL' value instead of the 'Default Value'... why ...Show All
SQL Server Connection String Encryption for SQL Server Mobile
I'm seeking suggestions on how to go about encrypting a database connection string in the compact framework. It's something that I thought would be relatively straight forward as I've accomplished it without much difficulty in the full framework, but I'm stuggling to find a solution. I've been trying to implement a solution using public/private key asymmetric encryption using the RSA provider. I've essentially been trying to encrypt the connection string once on my development machine so that I can include both the encrypted connection string value and public key in either code or an external file. I'd then keep the private key out of harms reach. The problem I've encountered in doing this is that that RSA provider seemingly only allows ...Show All
Windows Forms App.config Connection String Encrypted
Hi Guys, I have been looking into how to encrypt the connection strings part in my App.config file. I have written some working code from the MSDN article and it works like a dream. However when I build the program and copy it to another machine and run it it cannot decrypt my connection string. When connection strings are encrypted are they encrypted using my machine hardware Is there any way of a simple encryption system that all PCs can understand. I'm just simply bothered about encrpying the connection string to protect from prying eyes is this possible, has anybody else achieved this before Cheers, Rob Hi, I'm not an expert in this but I looked at it recently with web.config and if I remember correctly the key ...Show All
Visual Basic Problem with activex control.. Please help..
Hi, Not sure if its the right place to ask my question.. We are using an Active X component to get the MAC ID of the system through the browser. The components used are <object classid="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6" id="locator" VIEWASTEXT> </object> <object classid="CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223" id="theId"> </object> It works well for all system except two. The specifications of the systems are as follows: IE version - 6 OS - Windows Xp Professional version 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 and Windows Xp Professional version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 The systems are configured exa ...Show All
