Hello,
I'm developing an application for windows mobile 6.5. Im writing the code in c#.net and want to send sms due to my app.
I checked out the POOM and sms sending worked fine.
Code:
SmsMessage msg = new SmsMessage();
msg.To.Add(receiver);
msg.Body = messageText;
msg.Send();
But there's one problem. I want ...
I'm using Nhibernate and I have a requirement that the validation rules must change in time. The framework I'll use is NHibernate validator, but I don't really know how to make dynamic rules, the validation is quite simple with xml files or attributes in the entity class, but the catch is to make this rules updatable. Is there a way to a...
I have a WPF UserControl, which I use in a WinForms Control within an ElementHostControl. Then I start a WPF Window, while the Windows Form is still open. If I then close the WPF Window, and try to add a Child Element to my WPF UserControl, it crashes at "InitializeComponent()" (of the Child Element) with the exception:
"A first chan...
Hi
How can i write all bits of a file using c#?
For example writing 0 to all bits
Please provide me with a sample
...
In my ASP.NET MVC 2 (RC) project - I'm using AutoMapper to map between a Linq to Sql class (Media) and a view model (MediaVM). The view model has a SelectList property for a drop down in the view. I have a custom value resolver to populate the SelectList property items from the db, but am wondering if there's a way to pass a couple value...
I've got a Browser Helper Object written in C# that makes a HTTPWebRequest POST to my server when the user clicks a button on a windows form, and in the normal case this works great. However, every so often, I'll get a BHO that seems to go crazy and continually send me a huge number of HTTPWebRequests (around 50 to 100 per minute). The...
Hi,
I'm fairly new to C# programming and need some help.
I am trying to assign values I've gathered from a JSON feed to my own type, a class in which I have defined certain fields (properties) to put the JSON elements into, plus elements that are derived from a RegEx pattern matching process. This will then allow me to access the objec...
I am using the .NET Chart Control library that comes with .NET 4.0 Beta 2 to create and save images to disk on a background thread. I am not showing the chart on the screen, however, simply creating a chart, saving it to disk, and destroying it. Something like this:
public void GeneratePlot(IList<DataPoint> series, Stream outputStream...
Has anyone seen this problem?
Is there a method I can call from my page to force the popup to initialize and load all inner controls?
Thanks!
...
So I've got a whole bunch of options, every different page/tab can have their own local options. We'll have maybe 10-15 pages tabs open tops. I need to implement a way to show the global defaults, weather the all the tabs have consistent values. I'm working on the model/viewmodel portion of a WPF app.
I'd love to find a way that is m...
Is there any way to store a Silverlight page's state in the browser's history as with IProvideCustomContentState (a WPF class)?
...
I have a Linq to SQL class.
There is a one to many relationship in my database.
The relationship maps correctly in the designer, and an EntitySet<> property is created in the designer.
When I run the code, the EntitySet<> does not populate with any data, even though there are associated records, they do not populate into the EntitySet...
Hi fellow experts, here is my situation. I have created a DataSet, in my projet, that is linked to my Crystal report. Howhever, when I run the application and that I look at my report, there is decimal on all of my numeric fields. How can I remove them?
For your information, when I right-click on one of these numeric field, I don't have...
Hi,
I have a collection of TwitterCollection objects held within a List. I am populating the TwitterCollection object (tc) via a foreach loop, and then accessing it through LINQ.
My class with its properties looks like this:
//simple field definition class
public class TwitterCollection
{
public string origURL { get; set; }
p...
I am using MySQL Connector/Net and I want to write a query against a table whose name will be specified at runtime.
This example is off the top of my head (not tested):
public class DataAccess
{
public enum LookupTable
{
Table1,
Table2,
Table3
}
public int GetLookupTableRowCount(LookupTable tabl...
I am creating an Excel spreadsheet in C#. I like to have the header (first) row pinned in place when the user scrolls the rows. How can I do this in C# (or VB.NET)?
...
I came across the following given a asp.net page containing
<div id='test'>
<input type='checkbox' id='ch1' name='ch1' runat=server />
<input type="button" id="view_test" />
</div>
and the following jquery code to show this div in a dialog
$("#view_test").click(function() {
$("#test").dialog({ show: 'slide', width: 600, title...
I have a named pipe that's created in a managed process. I have a 2nd process that tries to open a file handle to the named pipe, however the 2nd process is running under an lower privilege than the process that created the named pipe. My understanding is that I need to create the named pipe in the first process with a security descripto...
I was wondering whether it's possible to validate a required size for an icon before trying:
Dim myIcon = New Icon(theIcon, requestedSize).
This falls over for negative numbers, so that's an easy check.
It appears it falls over if the number is less than half of the smallest icon.
I've looked at the icon class but can see nothing for...
Ok, my title doesn't help. But read the post and you'll understand.
What i want to do:
Imagine I have a Flyer table with 2 columns in my SQl Server:
FlyerID (int)(PK)
FlyerDate (smalldatetime)
FlyerID is a foreign key on other tables, for example Store table. Store has 3 columns:
StoreID (int)(PK)
Name (nvarchar)
FlyerID (int)(FK...