|
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.
|
|
|
|
|
Hi Nathan, thanks for the response, I will try your suggestions.
- John
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Hi,
I have installed Microsoft SMTP server in IIS of Windows Server 2012. When i have given Windows Integrated Security in Outbound security. The mail messages are stuck in outgoing queue of smtp server (in C:\inetpub\mailroot\Queue).
If i use anonymous authentication or basic authentication, the mail server is just working fine.
Anyone suggest what could be the possible reason for this?
|
|
|
|
|
Wrong rights on the user-accounts; does not sound like a C# problem.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The following features must be supported:
1. Fast drawing of many(more that 10-100k) single points and small lines.
2. Fast drawing of several (up to 10-100) images with high resolution(~1500x1000), which can be
a) partially out of view
b) all images in view at the same time scaled to small size
c) all in view with big size having transparency
3. Graphic control should be able to take only part of Windows Form (because UI is written using DevExpress)
Currently my choices are OpenTK and MonoGame, but I'm not sure they can do all this easily.
|
|
|
|
|
They should be able to cope with what you're after better than using GDI+ (the default for Windows Forms). I would suggest that you might want to start off with a quick prototype application to see if it fits your needs. As for integrating with Windows Forms, have a read of this[^].
This space for rent
|
|
|
|
|
Unity3D "may" be easier than MonoGame; MonoGame is more low-level.
Does that make Unity3D slower? Don't know; would check it out.
|
|
|
|
|
I have used both SharpDX[^] and SharpGL[^] and can say that they are both quite powerful.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|