Search:
Type: Posts; User: Simon Canning
Search:
Search took 0.07 seconds.
-
I am coding a MVC 5 internet application and I have a question in regards to a foreign key reference in a model of mine.
I have a model with the following attributes:
public int...
-
Hi,
I am needing to add cascading deletes to my MVC5 Internet Application.
I have a MapCompany model that has a virtual List<MapLocation>. I am wanting to remove all associated MapLocations...
-
I am writing a C# MVC5 internet application and am having some trouble getting the 'ApplicationUser' object in a controller that I have created.
Here is my code:
var userManager = new...
-
Good point... sorry, a spelling mistake.
-
In C#, if I have a list of objects where each list has a list of list items, and each of these list items can be a list of objects (or just a single list item), what is the best way to retrieve a...
-
-
Is there some software that I can use to help construct ADO.NET SQL statements that retrieve the same data as if I was using the Entity Framework?
For example:
If I retrieve some attributes of...
-
I am using Xamarin and as such there is no support for Entity Framework.
Xamarin does have support for ADO.NET. Is it possible to access an C# MVC4 internet application's database using ADO.NET? ...
-
I am developing a C# MVC4 internet application and would like to get the data from this database and use this data in my Xamarin application. Xamarin uses C#, so I think this is a good place to ask...
-
I have figured out the answer.
All I needed was a Public Initialize function for the list.
Thank you for your time.
-
I am developing an MVC 4 C# internet application.
I have a MapLocationCompany class as well as a MapLocation class. I am after each MapLocationCompany object to have a list of MapLocation objects....
-
I am coding in Xamarin and I need to pass an object to another activity, however I am getting an error in relation to converting the object to an 'Android.OS.Bundle'
Here are the errors:
...
-
I am downloading an http file from an ftp server of mine. This file holds the version number for my application, and as such is updated when a new version of my application is released to the public....
-
I have developed an application that has a Sound Class. This Sound Class uses an external audio file that is referenced by a String data type that holds the filepath to the audio file.
When I wish...
-
Basically, convert the variable with simple formatting. I have got it working.
-
Thanks.
If I have a value stored as say 12,345 or 12345, how can easily increment it to 12,346 or 12346? Is there an easier way rather than having to do a string search for the , before the adding...
-
I have a textbox that can hold numbers. I am wanting to ensure that the textbox contains only numbers. Integer.TryParse works well for this, however, is there a way to let numbers such as 7,945 be...
-
-
Is this the correct way to select the items:
For x = 0 To ListOfSelectedItemsInListView.Count - 1
ListViewFields.Items(x).Selected = True
Next
No controls are...
-
Here is my code:
Dim ListOfSelectedItemsInListView As New List(Of Integer)
For Each ListViewItem As ListViewItem In ListViewFields.SelectedItems
...
-
I am talking about the styles that are associated with a font when displayed in a Font dialog. When different fonts are selected, different styles for the selected font are shown. Is it possible to...
-
If I have had a search online with no result.
How can I get a listing of the styles associated with a font where I know the font name?
-
I am getting the following error:
An exception of type 'System.TypeInitializationException' occurred in CanSubliminalMessaging.exe but was not handled in user code
Additional information: The...
-
If I have a Type variable, can I convert a String to the same type as the Type variable without manually use a CBool, CInt, CLng statement? Does the Type (or other) class have such a function for...
-
I have a list of t and am wishing to add this list to a listview. I have coded a class that has an object that specifies the name, text and width of each column for the listview.
What is the best...
-
If I declare the class to be generic, and the class is a form, how can I set attributes such as:
Me.Text = "Form Text"
This attribute does not exist. The form does not now know that it is a...
-
I am wanting to pass a List of T as a parameter of a function and in the function store the reference to this List so that I can add relevant items to this List.
Here is my function code:
...
-
I cannot get the syntax correct for this code.
Here is my current code:
Dim TestList As New List(Of Field)
Dim TestListItemToAddToList As New Field
...
-
The answer to your question is:
-
How is the best way to get a List of all the duplicate items in a List.
Here is my current code that I am working on:
Public Function GenerateDistinctNamesForObjectsinList(Of t As...
-
So basically, do I need to pass an object that has a type (or list in this case), and this determines the type of the list?
-
Here is my function code:
Public Function OpenListFromFile(Of t)(FileName As String) As List(Of t)
'Do code
End Function
I know that I can call the function as follows:
-
-
If I have a List of T, where the Type is an object that always has a .Name property, how I can write a function that returns the .Name value?
Here is my code:
Public Function...
-
Is it possible, to 'mark' two lines of code, and at runtime, get the path of execution between these two lines of code? When I say the path of execution, I am wanting to know all of the lines of code...
-
I currently have a background worker that has a do loop as well as a Thread.Sleep line of code.
When I want to stop the background worker, currently the background worker will only stop after the...
-
-
I have written a Sub to get the method name and line number of an exception.
Here is my code:
Public Sub ExceptionHandler(ex As Exception, DisplayTraceInformation As Boolean,...
-
Ok, here is what I am trying to do...
I have an application that has many Lists of T and each of these Lists has a Form to display the List Items.
Each Form has the exact same code as any other...
-
In Visual Basic.net, can I create an Object with the type from another object.
Here is some code:
Dim TestObjectType As Author
Dim TestObject As TestObjectType.GetType
I am getting an...
|
Click Here to Expand Forum to Full Width
|