|
Yeah... that would be ideal but it's not going to happen. This is a classified government network. They've centralized our Exchange servers and they are totally unreliable. There's absolutely nothing I, or anyone in my organization, can do about it. We basically live with what we've been given.
So our solution is to create a messaging capability within our .NET WinForms/SQL Server application. For our ~400 users, this would just be another module amongst the other functionality they currently have in the application. I'm trying to call this "messaging" because this won't be "email" - no Exchange, no SMTP, no POP, no IMAP.
Messages would be stored in a SQL Server table structure. The UI would resemble Outlook and would let users create messages, reply, forward, manage folders where messages are stored, etc. But the driver behind this would be the message data store in SQL Server.
|
|
|
|
|
Yikes. I'f familiar with the government crap. I did a 4 year stint at DHS/CBP and it wasn't taken kindly that I called people out for not doing their jobs when their customers (us) were down because of misconfigured servers and routers.
I don't know of any library that offers the functionality you're talking about. If you can't find one, this is going to be using existing control libraries and building it from scratch.
|
|
|
|
|
Sounds like generic forum-software?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I thought about that but this is a WinForms environment and I don't know of any forum software with a WinForms UI.
I expect I'll need to roll my own solution...
|
|
|
|
|
PSU Steve wrote: I expect I'll need to roll my own solution Yes, since you already have some wishes. Any PC will have a modern browser, any forum-software would be easily installed and simple to access. If you do roll your own, I'd recommend taking some open source .NET forum software, to create a new fork and to write only the UI-part.
Having read the entire thread, I'd recommend an Outlook-addin that simply saves the message and the recipient in a database, and write some webpage to list all the messages where the current user is the recipient; would mean that one "adds" an alternative (and redunant) way of sending a message, without replacing the original setup. Additionally, people could still be using a single application with a familiar UI.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
this is a good one. thanks for sharing your answer.
|
|
|
|
|
|
Hi,
I'm facing problem when creating a customer paper size in vb.net 2010.
Below is my source to create a new paper size:
Dim pkCustomSize1 As New PaperSize("CustomSize", 100, 200)
But, i can't find this paper size in the Devices and Printers -> Print Server Properties.
Can anyone help how to create custom paper size by using vb.net?
Thank you
|
|
|
|
|
|
why is there no exclusive group for mvc while there is exclusive group for wfc wpf etc..?
|
|
|
|
|
This is not the place for such questions, try Bugs 'n' Sugs.
|
|
|
|
|
Hi Richard
Where is Bugs and Sugs. I couldn't find it?
T?hanks
|
|
|
|
|
|
Because it can't exist without ASP.NET. Ask whatever question you have in that forum.
|
|
|
|
|
So you think wcf can exist without asp.net? Doesn't make sense.
|
|
|
|
|
I was only commenting on MVC and, typically, the one that runs on top of ASP.NET.
|
|
|
|
|
Actually, yes it can. WCF doesn't rely on ASP.NET at all - granted, it's a common use case for it, but it doesn't rely on it being anywhere in the chain.
This space for rent
|
|
|
|
|
There are already a lot of messages being posted somewhere which would better fit into another forum. If there was a forum for each and every technology or concept many people wouldn't find the right one anyway. If you'd asked me, I'd say let's merge some forums.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
yes..i think there should be different foram for mvc.............
|
|
|
|
|
Hello,
I'm a beginner in the whole MVC thing.
I want to do a form where I get the user details by a user-dropdown-list in the same view.
Like, like (select *from users where username) is this possible on the same view and how?
I allready tried the MS tutorial but it doesnt help that much.
I'm Using the Entity framework with Database first.
Thank you
|
|
|
|
|
You should post this in the ASP.NET forum.
|
|
|
|
|
Ooh I'm sorry, didn't see there is a asp forum I'm sorry, this can be deleted
|
|
|
|
|
you can get the list of names from db or by using entity framework in controller action method so save it in a viewbag and using foreach loop display it in view using razor in a select list. After that using select change of jquery you can raise post ajax call with the changed item. by using it get the complete details of the person and return it to the view and display it in the labels using success function of the ajax call. I hope I am clear. It works for sure
|
|
|
|
|
The error...
Error 1 'await' requires that the type 'Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformationCollection>' have a suitable GetAwaiter method. Are you missing a using directive for 'System'? C:\Users\jo\Documents\Visual Studio 2013\Projects\Btle01\Btle01\Form1.cs 29 46 Btle01
My code...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using Windows.Devices.Bluetooth;
using Windows.Devices.Enumeration;
using Windows.Foundation;
using Windows.System;
namespace Btle01
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void OnFormLoad(object sender, EventArgs e)
{
}
private async Task GetDevs()
{
foreach (DeviceInformation di in await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector()))
{
BluetoothLEDevice bleDevice = await BluetoothLEDevice.FromIdAsync(di.Id);
listView1.Items.Add(bleDevice.Name);
}
}
}
}
List of project references...
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Runtime.WindowsRuntime.dll</HintPath>
</Reference>
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Tasks" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Windows.Devices">
<HintPath>..\..\..\..\..\..\..\Windows\System32\WinMetadata\Windows.Devices.winmd</HintPath>
</Reference>
<Reference Include="Windows.Foundation">
<HintPath>..\..\..\..\..\..\..\Windows\System32\WinMetadata\Windows.Foundation.winmd</HintPath>
</Reference>
<Reference Include="Windows.System">
<HintPath>..\..\..\..\..\..\..\Windows\System32\WinMetadata\Windows.System.winmd</HintPath>
</Reference>
</ItemGroup>
I am targeting v8.0.
The only solutions I can find is; add a reference to windows runtime, but so far as I know I have done that.
What am I missing or doing wrong?
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
modified 17-Feb-16 11:30am.
|
|
|
|
|
I see that this has been gathering dust for a few days, so I'm sorry if I'm too late to the party to help you.
foreach (DeviceInformation di in await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector()))
This is a problem. basically you're attempting to iterate a collection of promises, but without a custom iterator the compiler has no idea what to do with those promises.
The easy fix is to move the asynch resolution to a variable and await it, like so:
...
var myArray = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector());
foreach(DeviceInformation di in myArray)
...
Alternatively, you can abuse some of the async functionality in LINQ (I haven't validated this block, so it might need tweaking):
var result = await Task.WhenAll(Windows.Devices.Enumeration.DeviceInformation
.FindAllAsync(BluetoothLEDevice.GetDeviceSelector())
.Select(async x => await BluetoothLEDevice.FromIdAsync(x.Id)).ToArray());
result.Select(x => listView1.Items.Add(x.Name));
There are plenty of other ways to skin this cat, should you happen to like cat skins. Both of these approaches should work, though.
|
|
|
|