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
C

cobyjone

@cobyjone
About
Posts
25
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom permissions in active directory
    C cobyjone

    Does anyone know a way to integrate a custom set of permissions into active directory using C#?

    C# csharp windows-admin question

  • How to convert an API window to a control?
    C cobyjone

    I am using 2.0. If you are using 1.1, try the following although I have not tried this: IntPtr hWnd = //your handle from CreateWindow Control control = new Control(); Type type = typeof(Control); FieldInfo field = type.GetField("window", BindingFlags.Instance | BindingFlags.NonPublic); Type windowType = typeof(NativeWindow); NativeWindow window = (NativeWindow)field.GetValue(control); MethodInfo method = windowType.GetMethod("AssignHandle", BindingFlags.Instance | BindingFlags.NonPublic); method.Invoke(window, new object[] {hWnd, false}); {parent form/control}.Controls.Add(control);

    C# question csharp json tutorial

  • How to convert an API window to a control?
    C cobyjone

    This has worked for me in some cases but in others it is kind of flaky. IntPtr hWnd = //your handle from CreateWindow Control control = new Control(); Type type = typeof(Control); MethodInfo method = type.GetMethod("WindowAssignHandle", BindingFlags.Instance | BindingFlags.NonPublic); method.Invoke(control, new object[] {hWnd, false}); {parent form/control}.Controls.Add(control);

    C# question csharp json tutorial

  • Convert from string to a color
    C cobyjone

    static method Color.FromName(string) takes the name of a color and returns the corresponding Color object.

    C#

  • COM Form From Handle
    C cobyjone

    I am working on a form that will get hosted inside a COM app. For some of the stuff that I am trying to do (adding managed controls to the COM form, etc), it requires that I have an instance to the COM form that is hosting my form. I've tried Control.FromHandle but that seems to only work for Controls that have been created from the managed side of things (verified using Reflector). Does anyone have any other suggestions? I'd really appreciate any help I could get.

    C# com hosting help question

  • AppDomain Question
    C cobyjone

    Yes, IInterface (whatever interface it may be) is in AssemblyC, which both AssemblyA and AssemblyB reference AssemblyC. But no assembly references AssemblyB.

    C# question workspace

  • AppDomain Question
    C cobyjone

    I am trying to have assembly A load assembly B into a seperate domain. It's odd because when I load the assembly into the second AppDomain, it is also loaded into the default domain. So, when I unload the second AppDomain, it doesn't actually unload the assembly. Am I doing something wrong here: AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = AppDomain.Current.SetupInformation.ApplicationBase; setup.ApplicationName = "Test"; AppDomain domain = AppDomain.CreateDomain("NewDomain", null, setup); IInterface i = (IInterface)domain.CreateInstanceFromAndUnwrap("AssemblyB.dll", "AssemblyB.Interface"); If I run AppDomain.Current.GetAssemblies() to get the loaded assemblies before I run this code, it does not show AssemblyB loaded. If I run it after, it is loaded in the default domain. If I unload the second domain, it is still loaded in the default domain. No other project in the solution is dependent on AssemblyB, so it shouldn't be loading it into the default domain. Any ideas?

    C# question workspace

  • Type.GetType(name)
    C cobyjone

    nevermind, i just altered the file format to allow the assembly name as well.

    C# question

  • Type.GetType(name)
    C cobyjone

    I am working on a windows app and having some trouble getting type information by just the name. I have to load a file that will have several different type names (Type.FullName). When I call Type.GetType(fullname), it is always returning null, even for types that I would assume it wouldn't like System.Windows.Forms.TextBox. The only way that I can get it to return a type is if it is a local assembly, put it in format of 'Fullname,AssemblyName'. If it is not a local assembly, then I have to put it in the format of 'AssemblyQualifiedName'. This is ok, but it kinda screws some of the useability of the app. Does any one know a way around this? I know that I can use just the full name of the type if I am doing straight from the assembly reference (Assembly.GetType(fullname)), but I would prefer it if I didn't have to have a reference to the assembly to get the type (even though the assembly will be loaded at this point anyways). Any ideas would be greatly appreciated?

    C# question

  • List of stored procedures in Access
    C cobyjone

    Create a view using query analyzer. Grant select to public. Then access it via a function in vba or directly with a linked ODBC data source. sql: Create View storedproclist as Select name From dbo.sysobjects Where xtype = 'P' and status >= 0 and name not like 'dtp%' Go Grant Select On storedproclist To Public

    C# database algorithms question

  • List of stored procedures in Access
    C cobyjone

    Create a view in sql server around the following sql statement and select out of the view in access: select name from dbo.sysobjects where xtype = 'P' and status >= 0 and name not like 'dtp%' order by name

    C# database algorithms question

  • Constructing a URL?
    C cobyjone

    The best of both worlds: sbRedirect.AppendFormat("~/Maint/surcharge.aspx?StartDate={0}&EndDate=(1)&Market={2}&GroupName={3}&GroupCode={4}&Abbreviation={5}", cpStartDate.SelectedDate.ToShortDateString(), cpEndDate.SelectedDate.ToShortDateString(), ddlMarkets.SelectedIndex, cbCustomer.Checked.ToString(), cbGroupCode.Checked.ToString(), cbAbbreviation.Checked.ToString());

    C# question announcement

  • al.exe utility
    C cobyjone

    I have a satellite assembly with all my resources. I need to append a resource file to that satellite assembly. I don't have all the other resource files that make up that satellite assembly, so I need to be able to just append it on the existing assembly. Any ideas? Thanks

    C# tools question learning

  • Schema Validation
    C cobyjone

    Nevermind, I changed it to Maybe not that exactly, but it worked. Thanks for the help

    XML / XSL xml question database help

  • Schema Validation
    C cobyjone

    When I change it I get this exception "The 'http://www.w3.org/2001/XMLSchema:any' element is not supported in this context". Any advice.

    XML / XSL xml question database help

  • Schema Validation
    C cobyjone

    I am trying to write a schema to validate an xml file. I can get it to validate everything correctly. I have one problem though. In the xml file, after a certain element, I am not going to know what will be there. ex. //After this point, the layout could change at any time (and without notice I might add) //and I don't want to have to keep changing the schema everytime the layout changes. Anyways, my question is, how would I write the schema to stop the validation at that point? Thanks.

    XML / XSL xml question database help

  • Graphics files stumper...
    C cobyjone

    You could change the attributes on the file to make it a system and hidden file when you are not using it. Users shouldn't even be able to see the file then. Then, when you need to change the file, just remove the attributes(if that is necessary, you may just be able to edit the file without removing the attributes) and put them back after your done. System.IO.FileInfo file = new System.IO.FileInfo(fileName); if ((file.Attributes & System.IO.FileAttributes.Hidden) != 1) { file.Attributes &= System.IO.FileAttributes.Hidden; } if ((file.Attributes & System.IO.FileAttributes.System) != 1) { file.Attributes &= System.IO.FileAttributes.System; } //Modify File file.Attributes |= System.IO.FileAttributes.Hidden; file.Attributes |= System.IO.FileAttributes.System;

    C# graphics tutorial question

  • Html Editor and Mail Program
    C cobyjone

    HTMLEditor is a pretty good - http://www.itwriting.com/htmleditor/index.php[^] OpenSMTP.Net is a good smtp library - http://sourceforge.net/projects/opensmtp-net/[^]

    C# html question

  • C# Print Driver
    C cobyjone

    No, because if I am not mistaken, print to file just sends the data stream that it would send to a printer to a file.

    C# csharp tutorial question

  • C# Print Driver
    C cobyjone

    Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?

    C# csharp tutorial question
  • Login

  • Don't have an account? Register

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