Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

spAAwn

@spAAwn
About
Posts
14
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Singe Sign-On in a one domain webportal environemnt
    S spAAwn

    Scenario: One application domain with one IIS, one Active Directory, one MS Exchange Server One portal startpage which uses certificate authentication via smartcards, mapping the certificate to a user account in the domains Active Directory. The user puts his smart-card in his reader and accesses the portal-startpage over the internet. After successfull authentication the portalpage is shown in his browser. This page contains for instance a link called "mail" which will take the user to a page where outlook web access has been capsulated into a webcontrol and presented on the mail-page. Question: Will he automaticly be logged in and shown his personal inbox (SSO)? According to my own research on the web the way I understand it is that when he gets logged on to the portal a session-key containing all his credentials from the information in Active Directory will be created by IIS. This key will live throughout the whole session and automaticly be used in further functionality-requests by the user. In other words, once hes logged in to the portal SSO will work. Is this correct? If not, how can this type of functionality be reached? thanks for your time /Rickard

    ASP.NET windows-admin question sysadmin security cryptography

  • Single Sign-On in a one domain webportal environment
    S spAAwn

    Scenario: One application domain with one IIS, one Active Directory, one MS Exchange Server One portal startpage which uses certificate authentication via smartcards, mapping the certificate to a user account in the domains Active Directory. The user puts his smart-card in his reader and accesses the portal-startpage over the internet. After successfull authentication the portalpage is shown in his browser. This page contains for instance a link called "mail" which will take the user to a page where outlook web access has been capsulated into a webcontrol and presented on the mail-page. Question: Will he automaticly be logged in and shown his personal inbox (SSO)? According to my own research on the web the way I understand it is that when he gets logged on to the portal a session-key containing all his credentials from the information in Active Directory will be created by IIS. This key will live throughout the whole session and automaticly be used in further functionality-requests by the user. In other words, once hes logged in to the portal SSO will work. Is this correct? If not, how can this type of functionality be reached? thanks for your time /Rickard

    Web Development windows-admin question sysadmin security cryptography

  • Best way to integrate windows messenger functionality to an application
    S spAAwn

    Anyone got any good ideas?

    C# sysadmin json question

  • Best way to integrate windows messenger functionality to an application
    S spAAwn

    Hi. Im running a private live communications server and I would now like to add windows messenger-like functionality to an application which will use this server to communicate. Whats the best way of doing this? Can you integrate the windows messenger client directly in some way (preferably with full control) or do you have to create your own client? If so, which api is best to use, the RTC api or some messenger api? regards /Rickard

    C# sysadmin json question

  • Make a program autostart and create a tray icon for access
    S spAAwn

    Hi! How can I develop a program for a pocketpc/winCE that will automaticly start at boot, and run in the background. It would also be nice to make a system tray icon appear which the user can doubleclick to access the program. Is this even possible? Or are there any alternative ways to go about this sort of funcionality? Kind of new to Compact Framework development... thanks! /spaawn

    Mobile question

  • Windows Service -ish application for pocket PC:s. Howto?
    S spAAwn

    Hi! How can I create a program that works just like a normal Windows Service for Windows CE? I need the program to autostart when the operating system loads, and to do its work without making the user aware of it. thanks! /spAAwn

    Mobile question

  • Windows Service like application for Windows CE?
    S spAAwn

    Hi! How can I create a program that works just like a normal Windows Service for Windows CE (Pocket PC)? I need the program to autostart when the operating system loads, and to do its work without making the user aware of it. thanks! /spAAwn

    C# question

  • How to access a function in a codebehind file?
    S spAAwn

    Hi! Im working on a commerce server site (starting from the microsoft "startersite"). I have built a leftpane usercontrol, with 2 picture buttons. Id like to be able to change the imageUrl:s of these at runtime by using a function in the codebehind file. My aspx file looks like this: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftPane.ascx.cs" Inherits="Microsoft.Solutions.Applications.LeftPane" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>

    ASP.NET csharp visual-studio com sysadmin tutorial

  • Delete last row from a datagrid bound to an arraylist, without getting index out of range when picking another row afterwards.?
    S spAAwn

    Hi! Im using an arraylist bound to a datagrid to show some info. I also let the user delete rows from the datagrid using a contextmenu. IE rightclick on the row, choose "delete item", and the row disappears. Everything works fine except when I delete the last row, then when I choose another row I get a "Index out of range exception". this is my deletemethod: private void DeleteItem(object sender, System.EventArgs e) { //get the index of the selected Item, same index in the ArrayList int index = commentGrid.CurrentCell.RowNumber; try { comments.Comments.RemoveAt(index); if (comments.Comments.Count < 1) { menuItemExport.Enabled = false; toolBar.Buttons[2].Enabled = false; } dataChanged = true; commentGrid.DataSource = null; commentGrid.Refresh(); commentGrid.DataSource = comments.Comments; commentGrid.Refresh(); } catch(ArgumentOutOfRangeException) { return; } } I heard this was some kind of bug in .NET, but I dont know how to work around the problem! Any help is much appreciated. thanks! /Rickard

    C# help csharp database tutorial question

  • Arraylist bound to datagrid problem when arraylist is part of another class?
    S spAAwn

    Hi! I have a class that looks like this: using System; using System.Collections; namespace AreaData { [Serializable()] public class Wrapper { ArrayList _Data = new ArrayList(); int _MovieLength = 0; public Wrapper() { } public Wrapper(ArrayList a, int l) { _Data = a; _MovieLength = l; } public ArrayList Data { get{return _Data;} } public int MovieLength { get{return _MovieLength;} set{_MovieLength = value;} } } } In my mainform I have a datagrid which is bound to the ArrayList of this class. Everything works fine, except when I try to change a value in the datagrid at runtime, then at first the change doesnt commit, and after that when I click somewhere else I get an error box: "Error when committing the row to the original data store" Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. Do you want to correct the value? Everyting works fine, when the arraylist is located in the same class as the datagrid! Any solution to this would be really appreciated! thanks /Rickard

    C# help css database question

  • draw on transparent control over a mediaplayer
    S spAAwn

    Thanks alot, I´ll look into it.

    C# graphics help question career

  • draw on transparent control over a mediaplayer
    S spAAwn

    No wont work either, unless im doing something wrong, here´s my entire transpanel class: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; public class TransPanel : Panel { private Bitmap _backBuffer; public TransPanel() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque,true); } protected override CreateParams CreateParams { get { CreateParams cp=base.CreateParams; cp.ExStyle|=0x00000020; //WS_EX_TRANSPARENT return cp; } } protected void InvalidateEx() { if(Parent==null) return; Rectangle rc=new Rectangle(this.Location,this.Size); Parent.Invalidate(rc,true); } protected override void OnPaint(PaintEventArgs e) { if(_backBuffer==null) { _backBuffer=new Bitmap(this.ClientSize.Width,this.ClientSize.Height); } Graphics g=Graphics.FromImage(_backBuffer); //Copy the back buffer to the screen e.Graphics.DrawImageUnscaled(_backBuffer,0,0); Font fnt = new Font("Verdana", 16); Graphics gf = e.Graphics; gf.DrawString("GDI+ World", fnt, new SolidBrush(Color.Red), 14,10); g.Dispose(); //base.OnPaint (e); //optional but not recommended } protected override void OnPaintBackground(PaintEventArgs pevent) { //do not allow the background to be painted } protected override void OnSizeChanged(EventArgs e) { if(_backBuffer!=null) { _backBuffer.Dispose(); _backBuffer=null; } base.OnSizeChanged (e); } }

    C# graphics help question career

  • draw on transparent control over a mediaplayer
    S spAAwn

    Hi! Thanks for your answer, bringToFront() makes no difference. refresh() does, but only temporary, it seems like i need to refresh the transControl continuously while the movie is playing, and I dont like that solution, also it makes the rectangles flicker. /Rickard

    C# graphics help question career

  • draw on transparent control over a mediaplayer
    S spAAwn

    Hi! Im using a custom made doublebuffer transparent control over a mediaplayer-control. I would like to be able to pause the movie and then draw red marker rectangles on the transparent control. I would like to be able to see these rectangles while playing the movie. Everything works fine except for the last part, the rectangles dissappear as soon as I resume the movie. This is a test onPaint method in my transparent control: protected override void OnPaint(PaintEventArgs e) { if(_backBuffer==null) { _backBuffer=new Bitmap(this.ClientSize.Width,this.ClientSize.Height); } Graphics g=Graphics.FromImage(_backBuffer); //Copy the back buffer to the screen e.Graphics.DrawImageUnscaled(_backBuffer,0,0); // Get the graphics object Graphics gfx = e.Graphics; // Create a new pen that we shall use for drawing the line Pen myPen = new Pen(Color.Red); // Loop until the coordinates reach 250 (the lower right corner of the form) for(int i = 0; i < 250; i = i + 50) { // Draw a 50x50 pixels rectangle gfx.DrawRectangle(myPen, i, i, 50, 50); } g.Dispose(); gfx.Dispose(); } Any tips? THanks for your help /Rickard

    C# graphics help question career
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups