Search:

Type: Posts; User: MrNorth

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. 3.0/LINQ Help how to improve this code/make it more compact

    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...
  2. VS 2010 Need help with Clipboard and copy to-from Excel

    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...
  3. Copy data from datagrid template column to excel

    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...
  4. Replies
    3
    Views
    180

    VS 2010 Re: Strange code, how make it better?

    Hi!

    Either would be fine, but I guess we can call the issue solved, thanks!
  5. Replies
    3
    Views
    180

    VS 2010 Strange code, how make it better?

    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 &&...
  6. Replies
    0
    Views
    167

    Help with WPF DataGridTextColumn

    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...
  7. How to bind to usercontrol child controls from parent view?

    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...
  8. [RESOLVED] Properly design a user control?

    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...
  9. Re: Does ControlTemplate break control functionality?

    I solved this by removing the stuff from the style and added it in the control itself. Strange but it worked better...

    /H
  10. Replies
    4
    Views
    204

    VS 2012 Should I always use xml comments?

    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...
  11. How to make a button show a contextmenu by mouse left click only?

    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:
    ...
  12. Re: WPF Contextmenu databinding issues

    I solved this issue by removing the menuitem and used a template instead, then databinding worked
  13. [RESOLVED] WPF Contextmenu databinding issues

    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

    ...
  14. Does ControlTemplate break control functionality?

    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...
  15. Replies
    2
    Views
    307

    Re: How to bind a listbox and combobox?

    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...
  16. Replies
    2
    Views
    307

    How to bind a listbox and combobox?

    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:...
  17. Replies
    0
    Views
    385

    VS 2010 Problem with razor syntax in VS 2012

    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...
  18. Replies
    2
    Views
    528

    3.0/LINQ Re: problem with webrequest

    yes you are correct,I missed that.Lol.Thanks for the assistance!!

    /Henrik
  19. Replies
    2
    Views
    528

    3.0/LINQ [RESOLVED] problem with webrequest

    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)
    ...
  20. VS 2010 Any way to simplify this code by using Func, Action and lambdas?

    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...
  21. Replies
    0
    Views
    259

    3.0/LINQ Why does this code stop?

    private async Task<string> Post(string url, string postdata)
    {
    var request = WebRequest.Create(new Uri(url)) as HttpWebRequest;
    request.Method = "POST";
    ...
  22. How to wait for async method on same thread?

    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...
  23. Replies
    1
    Views
    188

    VS 2010 Help with base64 decoding!

    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...
  24. VS 2010 Re: How to create encrypted MIME message using basic framrwork classes?

    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...
  25. VS 2010 Re: How to create encrypted MIME message using basic framrwork classes?

    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.
    ...
  26. VS 2010 How to create encrypted MIME message using basic framrwork classes?

    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:...
  27. How to handle client certificates on windows phone 8 and winrt?

    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...
  28. How to deploy a sharepoint 2010 site to Azure website?

    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...
  29. Replies
    0
    Views
    732

    How to set up Azure VPN for small office?

    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...
  30. Replies
    6
    Views
    463

    Re: Need help to simplify/optimize sql query

    Sorry it is MYSQL, I forgot to mention that.


    kind regards
    Henrik
  31. Replies
    6
    Views
    463

    Re: Need help to simplify/optimize sql query

    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...
  32. Replies
    6
    Views
    463

    Need help to simplify/optimize sql query

    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...
  33. VS 2008 Re: Need help with changing AD login for web app

    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:...
  34. VS 2008 Re: Need help with changing AD login for web app

    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...
  35. VS 2008 Re: Need help with changing AD login for web app

    Thanks for the heads up! I will investigate this further and will get back to ya! I was also very confused by this...

    /Henrik
  36. VS 2008 Need help with changing AD login for web app

    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...
  37. Difference between Pocket PC 2003 and WM 6.5 runtime?

    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...
  38. Replies
    0
    Views
    373

    2.0 Need help to undrstand code

    public List<IDTagPosition> GetTagPosition(IDTag idTag)
    {
    CheckIfInitialized();

    List<IDTagPosition> positionList = new List<IDTagPosition>();

    try
    ...
  39. Where to put the app.config file in Windows 7

    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...
  40. Replies
    0
    Views
    311

    3.0/LINQ Need somehelp with GDI+ and button

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4