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
M

Mostafa Siraj

@Mostafa Siraj
About
Posts
31
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can SharePoint work with MySQL instead of MSSQL
    M Mostafa Siraj

    Hello, Can SharePoint work with MySQL as a backend instead of MSSQL, if yes is there any sources that describe how to accomplish this. note: I mean here with SharePoint backend database the one that stores the Lists information and other SharePoint specific data Thanks in Advance Mostafa

    SharePoint sharepoint database mysql sql-server tutorial

  • Can't connect to https page
    M Mostafa Siraj

    Hello, I'm trying to access an https page, I don't know why .NET doesn't allow it here is the error I got "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." and when I try to override ServicePointManager.ServerCertificateValidationCallback with this function

    public static bool ValidateServerCertificate(
    object sender,
    X509Certificate certificate,
    X509Chain chain,
    SslPolicyErrors sslPolicyErrors)
    {
    return true;
    }

    I got time out exception. here is a snippet of my code

        ServicePointManager.ServerCertificateValidationCallback += new System.Net.Security.RemoteCertificateValidationCallback(ValidateServerCertificate);
        CookieContainer c = new CookieContainer();
    
        reqLogin = (HttpWebRequest)WebRequest.Create(url);
        reqLogin.Method = "POST";
        reqLogin.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3)     Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)";
        
        reqLogin.ContentType = "application/x-www-form-urlencoded";
        reqLogin.KeepAlive = true;
        reqLogin.CookieContainer = new CookieContainer();
        reqLogin.CookieContainer = c;
        //reqLogin.CookieContainer.Add(col1);
        reqLogin.AllowAutoRedirect = true;
        reqLogin.UseDefaultCredentials = true;
        reqLogin.Timeout = 5000;                     
    
        using (StreamWriter sendingData = new
            StreamWriter(reqLogin.GetRequestStream()))
        {
            sendingData.Write(postMessage);
            sendingData.Flush();
            sendingData.Close();
        }
    
        resLogin = (HttpWebResponse)reqLogin.GetResponse();
    

    I'm sure that you faced that problem before, i'm searching about a solution for this problem from 4 hours and couldn't find any solution, I really hope that you can help me Thanks in Advance.

    C# security help csharp dotnet algorithms

  • is there a Template for ISAPI filter creation in vs2005?
    M Mostafa Siraj

    Hello, I need to create ISAPI filter, but can't find its template in VS2005 C++ templates can I add it by any means or I have to get back to VC++ 6?

    C / C++ / MFC c++ wpf question

  • losing resolution when using PNG as background image
    M Mostafa Siraj

    this is the PNG file (it was already published) http://img27.picoodle.com/img/img27/4/7/12/f\_OriginalImam\_f44b121.png this is after I use it as a background image in the form http://img34.picoodle.com/img/img34/4/7/12/f\_Thisisafterm\_5d8b51e.jpg I tried SizeMode=StretchImage && also I tried SizeMode=Zoom and both still have the same bad resolution

    C# help question tutorial

  • losing resolution when using PNG as background image
    M Mostafa Siraj

    about the 2 suggestion -the display mode for the PictureBox is in "Scale" already -I created in photoshop photos with dpi up to 5000 and all of them just turn to the bad resolution as soon as I put them in the application :(:(:(:(

    C# help question tutorial

  • losing resolution when using PNG as background image
    M Mostafa Siraj

    Actually I generated the png file from Photoshop and it generates as you see a very good results but the problem is when I'm using it as a background image, it looses its resolution, and no the bad resolution at the second page is not because of the screen shooting it's the look of the form I have. no one face such a problem before I thought that it's common, how do you create your forms???

    C# help question tutorial

  • richtext box retaining color information
    M Mostafa Siraj

    Simply you can encapsulate the color used by the client with his message -that's the simplest solution e.g. Class Message { String message; Color color; //or in general message properties } another possible solution is to send a notification to Client B whenever Client A changes his color this will save your bandwidth -not to send each time the color while it was changed for only one time- I hope that helps you. Good Luck

    C# help question lounge

  • losing resolution when using PNG as background image
    M Mostafa Siraj

    this is the original image before using it in the form http://img27.picoodle.com/img/img27/4/7/12/f\_OriginalImam\_f44b121.png this is after I use it as a background image in the form http://img34.picoodle.com/img/img34/4/7/12/f\_Thisisafterm\_5d8b51e.jpg how can I keep the good resolution at the first when I use it as a background image for my form??? Thanks

    C# help question tutorial

  • losing resolution when using PNG as background image
    M Mostafa Siraj

    Hi all, I have a PNG image -with very high resolution- I want to use it as background image for my form and make the form transparent. the problem is when I do that I lose the resolution, I tried to use PictureBox but I still have the same problem so the question is. How to solve this problem or if I'm using the wrong way, how can I build a form with the look I want from PNG image -I care for the image to be PNG to have the shape I want for the form- Thanks in Advance really appreciate your help.

    C# help question tutorial

  • Programming competition
    M Mostafa Siraj

    TopCoder.com is the best description of your requirements.

    The Lounge question

  • Database Design Issue
    M Mostafa Siraj

    I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

    Database question csharp asp-net database design

  • ftp FtpWebRespose.GetRespone() Exception
    M Mostafa Siraj

    I'm using local ftp -using windows XP- I can access it through my browser ftp://localhost/ but when I'm trying to access it through my C# program I had an exception and here is my code FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://localhost/"); request.Method = WebRequestMethods.Ftp.UploadFile; //request.Credentials = new NetworkCredential("anonymous", // "janeDoe@contoso.com"); request.Credentials = new NetworkCredential(username, password); StreamReader sourceStream = new StreamReader(filePath); byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd()); sourceStream.Close(); request.ContentLength = fileContents.Length; Stream requestStream = request.GetRequestStream(); requestStream.Write(fileContents, 0, fileContents.Length); requestStream.Close(); FtpWebResponse response = (FtpWebResponse)request.GetResponse(); I get an "Invalid URI" at request.GetResponse() so can anyone figure what am doing wrong thanks in advance "Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure" -Nelson Mandela-

    C# csharp com

  • how can I test my FTP application?
    M Mostafa Siraj

    I'm building FTP application (Download, Upload, Delete ..etc) and actually I don't have access to FTP server to test my code. is there any way to simulate FTP server at my machine or any free access FTP servers for testing. Thanks in Advance. "Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure" -Nelson Mandela-

    C# question sysadmin testing beta-testing

  • Can C# run over linux
    M Mostafa Siraj

    well i have a related second question -maybe it's stupid one-, i understand that Sun made JVM -Java Virtual Machine- to support portability for all O/S, but what i don't understand why Microsoft used also a Virtual Machine while their .NET applications are going to run only over Windows

    C# csharp java linux tutorial question

  • Can C# run over linux
    M Mostafa Siraj

    can i develop an application in -for example- VS2005 and run it over Linux, well i know about the mono-develop project!! but it's different from my requirement, am talking about full portability like in Java?? thanks in advance Never stop learning!!

    C# csharp java linux tutorial question

  • Generating menu items dynamically from Collection?
    M Mostafa Siraj

    assign event with any change in your Queue and update ur menu sub items then

    C# data-structures question announcement

  • Versioning
    M Mostafa Siraj

    The most famous project to help u with versioning is CVS, well am using it with Mono-Develop over Linux i don't if there is a version for Windows, but i guess there is a version for Windows Pray for people Die everyday in Iraq

    C# question announcement

  • COM Port Settings
    M Mostafa Siraj

    I'm not sure that i understood ur question right, so tell me if this wat u meant just make the attributes of the system static, so when u assign it from the combo box all the application can c it

    C# help com tutorial

  • sorting an ArrayList with different attributes
    M Mostafa Siraj

    Yeah you got my point but can u plz help me with code example, coz i don't know how to implement wat u said thanks in advance

    C# question algorithms help

  • sorting an ArrayList with different attributes
    M Mostafa Siraj

    I know that i can "do whatever i want" but only in one compare function i want to write many compare functions depending on the variable i want

    C# question algorithms help
  • Login

  • Don't have an account? Register

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