Hi!
I am looking for ways to improve this block of code, similar kind of code is found throughout the application I am working on, and I wonder if there is a way to compact it, make it more...
Type: Posts; User: MrNorth
Hi!
I am looking for ways to improve this block of code, similar kind of code is found throughout the application I am working on, and I wonder if there is a way to compact it, make it more...
Hi!
I am trying to figure out how to send a List<Of Person> into the clipboard so I can paste the properties as text in excel.
Person is an object that has some basic properties such as...
Hi!
Im struggling to solve a problem. My customer want to copy grid data from the application into excel. This works out of the box almost for all standard columns. The problem is a template...
Hi!
Either would be fine, but I guess we can call the issue solved, thanks!
Hi!
I stumbled upon this code in a project
private void TextBox_KeyDown(object sender, KeyEventArgs e) {
var t = (TextBox)sender;
if (t.IsReadOnly == true &&...
Hi!
Im managing a WPF application that has a very inconsistent UI. Now the customer want to streamline it a bit, and I have stumbled upon a problem with several of the datagrids.
it seems, as...
Hi!
I spent some time googling but so far no luck finding a good article, which is strange since thi´s should be a really common topic.
The situation is like this. In a current view+viewmodel...
Hi!
I have created a very basic user control. It has 3 textboxes andits purpose is to present a string that is split up into three different values. Say the string is xxx-AAAA-BBB. Then the user...
I solved this by removing the stuff from the style and added it in the control itself. Strange but it worked better...
/H
Hi!
I need a second (or third) opinion about the xml comments you can add with ''' or /// in visual studio. Usually I just comment on stuff that needs explanation, and I always comment classes...
Hi!
I want to show a contextmenu filled with databound items when the user left clicks a button.
I have tried this code in this post:
...
I solved this issue by removing the menuitem and used a template instead, then databinding worked
Hi!
I have a button where I want a context menu to appear. But for some reason I can't get the databinding correct. To figure this out, I created a small sample project:
Here is the ViewModel
...
Hi!
I am using a MenuButton from BetterWPF-controls in my project, but since it's looks dont fit ino our project, I wanted to change the appearance by using a ControlStyle to override the default...
Hi!
Thanks for the info, however I realise now that my example was a bit too simplified, and the bigger picture is a bit more complex, so maybe you can help me with that.
The reason I asked...
Hi!
I want to show the exact same content in a listbox and a combobox. Is there an easy way to bind the items collection of the listbox to the items collection to the combobox?
Here is my code:...
Hi!
Today something wierd has happened with my Visual studio and Project, for example this line of code:
<h2 @Html.EditAttributes(x => x.TeaserHeading)>@Model.TeaserHeading</h2>
In the...
yes you are correct,I missed that.Lol.Thanks for the assistance!!
/Henrik
Hi!
I ahve implemented a simple method that makes a POST to a webserver and return the response. Here is the code:
public void SendRequest(string baseUrl, string post, string method)
...
Hi!
I need to write a piece of code that has to be executed in turn, e.g. first A, then B, then C then D. The methods have to be called async, but the flow of events is sync. I solved this by...
private async Task<string> Post(string url, string postdata)
{
var request = WebRequest.Create(new Uri(url)) as HttpWebRequest;
request.Method = "POST";
...
Hi!
I am working on a program for phone 8. What is different here is that async calls are executed on the main UI thread, hence I can't use the AutoResetEvent WaitOne() and Set() methods since the...
Hi!
Im currently working on a client that get information from a backend server (Linux/java). The server and client send smime messages between eachother, and for some reason, when the server...
We use the HttpWebRequest() class
We got this project from the Android team and they used Bounce Castle with built in support for creating S/MIME messages. Sadly, this support is not available in...
Just to give you some more info... we plan to use this in Windows 8/Phone 8 hence we can't use the standard Cryptography libraries, but are forced to use the 3rd party library from Bounce Castle.
...
Hi!
I ahve been tasked with implementing a library that can create and receive encrypted messages in the S/MIME standard. A message can look like this:
MIME-Version: 1.0
Content-Type:...
Hi!
I have an assignment which is about convering an existin windows forms framework to windows phone 8.
Not surprising, I ahve some problems with the Cryptography namespaces.
The server...
Hi guys!
I have just created a sharepoint 2010 website on a VM in Azure. Now I want to deploy this to the Azure website I have created. How can I do this? I have spent the past hour googling but...
Hi!
I just spent a few hours googling how a most basic set up and configuration of a small office VPN would look like. I want to set up something with these requirements:
* The office has 20...
Sorry it is MYSQL, I forgot to mention that.
kind regards
Henrik
Hi!
Thanks a lot, that query now looks a lot better. Using CASE was the best way here, thanks for pointing me in that direction! Subqueries are evil! ;)
I noticed that there might be a bug in...
Hi!
I ahve the following sql:
select CONCAT(r.firstname, ' ', r.lastname) as name, (select sum(rts.hours)
from reportedtime rts
where rts.resourceid = rt.resourceid
and rts.timetypeid...
Hi!
I think I have found the problem, just need to ckeck one thing first.
IN the original code that works with Active Directory, they use the following code on th resultset fopr the ldap query:...
Hi!
This customer is really funny, now all of a sudden they are saying that they don't run their domain controller on a windows machine, but rather on a linux LDAP server. Yuck! But they have...
Thanks for the heads up! I will investigate this further and will get back to ya! I was also very confused by this...
/Henrik
Hi!
I got a new assignment today that has the following problem:
The company I work for has a product that has been used mostly for internal use within our company (big company). Now we have...
Hi!
The backgrond is this. Our customer moved one of their mobile apps from pockt pc 2003 to WM 6.5 a while back. The move semed fine and the app was up and running within hours. Yesterday I got a...
public List<IDTagPosition> GetTagPosition(IDTag idTag)
{
CheckIfInitialized();
List<IDTagPosition> positionList = new List<IDTagPosition>();
try
...
Hi!
We are currntly lifting an old Win XP application to Windows 7. In the old app, the app.config files are placed in program files folder, but due to the policies in Window s7, that is no longer...
Hi!
I need to create avery basic control that is a button. It will have an image and a text label under the image.
I have come so far that I have created a control that inherits from...