Search results for query: *

  • Users: njsokalski
  • Content: Threads
  • Order by date
  1. N

    Question Code Generation with CodeDOM

    I am working on a method that generates another class using the CodeDom, VBCodeProvider, and whatever other classes are necessary. I will be using the method in a Windows Phone 7 (and possibly at some point Windows Phone 8) app, so my first question is, "Are all the necessary classes available...
  2. N

    Question Defining a Generic Extension Method

    I am trying to write an Extension Method for IEnumerable(Of T). I will be using reflection on the Type T in the Extension Method to get a list of it's properties so that I can create an Anonymous Type that will include all those properties. I have written Extension Methods before, but never a...
  3. N

    Question Class Build Order

    I have several classes in my solution that depend on each other, so the classes need to be built in a certain order for the solution to work. How can I force one class to be built before it tries to build another? Thanks.
  4. N

    Question Cannot fix deserialization error

    I have a class instance that I want to serialize, upload to SkyDrive, download from SkyDrive, and then deserialize. I have the serialization, uploading, and downloading working fine, but the deserialization gives me the following error: There is an error in XML document (2, 2). The generated...
  5. N

    Question Cannot Deserialize using XmlSerializer

    I have the following code that serializes an object: Dim stream As New MemoryStream() Dim xml As New XmlSerializer(GetType(SyncData)) xml.Serialize(stream, New SyncData(CType(Application.Current, App).Recipients, CType(Application.Current, App).Gifts)) However, when I later attempt to check...
  6. N

    Question Using IgnoreDataMemberAttribute for array types in a DataContract

    I have a class that I need to serialize using XmlSerializer. The class is declared as follows: <DataContract()> Public Class Recipient <DataMember()> Public Property ID() As Byte <DataMember()> Public Property Name() As String <IgnoreDataMember()> Public ReadOnly Property Gifts() As Gift()...
  7. N

    Question Parsing a complete date

    I have dates from a data file that I need to parse. Here is an example of one of the dates and what I have so far: DateTime.ParseExact("2013-01-26T02:43:55+0000","yyyy-MM-dd\THH:mm:ss", As you can see, the date includes the timezone offset (the "+0000" part at the end). I am not sure how to...
  8. N

    Question Maintaining Data Between Button Clicks

    I should probably be kicked out of the development field for not knowing this, but I'll ask it anyway. I have a Form with multiple Buttons, all of which modify the same variable. However, each time the variable gets reset. Here is what my code looks like: Public Class frmTest Private myvar...
  9. N

    Question Creating a complete application for EZ-Robot

    I am trying to learn to program EZ-Robot (http://www.ez-robot.com/shop/) using VB.NET. I have downloaded the SDK, but the examples it included didn't really look like they did much, and the SDK documentation (http://www.ez-robot.com/SDK/) didn't seem very helpful. I would like to see a complete...
  10. N

    Question VB with Lego Mindstorms NXT

    I am attempting to learn to use Microsoft Robotics Developer Studio and Visual Studio 2010 with VB.NET to develop applications for Lego Mindstorms NXT. I downloaded and installed Microsoft Robotics Developer Studio, and it added the following project template: Visual C# -> Microsoft Robotics ->...
  11. N

    Data gets restored, but functionality differs after returning from tombstoning

    I have an app in which there is a TextBlock that I dynamically update when the user taps certain buttons. When the user first goes to the page, this works perfectly. When the user leaves, I save all the data into Isolated Storage like I should, and then recover the data when they return. The...
  12. N

    Passing the current index to an IValueConverter as a ConverterParameter

    I have an IValueConverter in which I need the index of the current DataTemplate. I am using an ItemsControl, and the ItemsSource is a List(Of Single). How can I access the current index from inside the IValueConverter or pass it as a ConverterParameter? Thanks.
  13. N

    Sending Grid Content Through a ContentControl

    I have a Windows Phone 7 app that has a ContentControl that I want to use to fill in some of the cells in a Grid in the ContentControl's ContentPresenter in the ControlTemplate. The ControlTemplate already has the Grid, as well as some of the elements I want in it, I want to use the...
  14. N

    Multiple levels of inheritance with UserControl

    I want to create a control from UserControl, and then have another class or control inherit that. Basically, I want the following: Public Class MyBaseClass : Inherits UserControl Public Class MyControl : Inherits MyBaseClass I am having trouble doing this, but I am not sure what I am missing...
  15. N

    Question Return Types for XSD Functions

    I have an XSD file for all the tables in my SQL Server database. In the TableAdapters in the XSD file, some of my queries return scalar values, but the code for the functions generated by Visual Studio 2010 return an Object rather than a typed value. I know how to manually add functions using...
  16. N

    Question Parameter Count Mismatch when Iterating Properties

    I have a function that I am using to iterate and display the names & values of all the properties of an object. Here is my current code: Private Function RequestFormValues(rf As NameValueCollection) As String Dim type As Type = rf.GetType() Dim properties() As System.Reflection.PropertyInfo =...
  17. N

    Using multiple XNA areas in a Windows Phone Silverlight and XNA Application

    I am currently working on an app that uses the "Windows Phone Silverlight and XNA Application" template. I am new to XNA, but I have managed to get it to do most of the things I want. However, I need to show these things in multiple places on the same page in my app. Because I am using the 3D...
  18. N

    Question Templates missing from Windows Phone SDK 7.1

    I am using Visual Studio 2010 and have installed the Windows Phone SDK 7.1 (http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=27570) on my machine. However, several of the Project Templates were not added, such as Windows Phone 3D Graphics Application. I tried doing a...
  19. N

    Question Creating 3D XNA using DrawIndexedPrimitives

    I am relatively new to 3D (and XNA in general), and am working on my first project involving 3D. Right now, I am simply trying to make sure I understand how to draw a triangle using the DrawIndexedPrimitives method. I have been able to draw one using the following: In my override of LoadContent...
  20. N

    Question No Source Available error when debugging

    While debugging a Windows Phone 7 app I am working on, I receive the following message: No Source Available There is no source code available for the current location. This message is displayed in a tab in Visual Studio 2010. The message is only displayed when I have breakpoints, I do not...
Back
Top