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

mikemilano

@mikemilano
About
Posts
57
Topics
35
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Virtual MIDI Ports/Drivers ?
    M mikemilano

    thanks. i knew about midi yoke, but yes, i want to code my own. i appreciate the time!

    C / C++ / MFC database question

  • Virtual MIDI Ports/Drivers ?
    M mikemilano

    I need to make a Virtual MIDI Port. ( actually several ) I have worked with MIDI just enough to be dangerous. I can trigger physical ports, but I need a way to create dummy ports to re-direct midi from one application to another. There isn't a whole lot of information available that I've seen out there, but any direction or insight would be greatly appreciated. Thanks

    C / C++ / MFC database question

  • background program to capture a key press
    M mikemilano

    i have a windows application that currently takes screen shots and copies the image to a directory. the program takes a screen shot of either the active window, or the whole screen based on the keystroke. well obviously the 'active window' screen shot will always take a screen shot of itself, so i want to convert this so it runs in the background somehow. i hope i'm making sense. basically i want to be able to press a couple buttons and no matter what program i'm in, have the computer take a screen shot. do i need to make a windows service? any insight would be greatly appreciated.

    C# question

  • Remote Debugging
    M mikemilano

    i need to develop on a network server here at work, but we can't get it setup right. according to microsoft, you either need to be logged into the network as the same user as the asp.net process runs under, ... or ... logged in as an administrator of the box. our admin says he can't set me up as admin, and i can not login as the asp.net process. I am setup in the 'Debug' group on the server, but I still get permission errors. anyone know any other way i can debug remotely with asp.net ?

    C# sysadmin csharp asp-net debugging question

  • dotnetmagic concepts
    M mikemilano

    i'm using the dotnetmagic.com docking component. i want to develop the content of each dock in a library of its own. ( not using the dotnetmagic component ) the idea is to be able to re-use the same objects if i end up changing things to the application later. for example, i have a search ( in a group box ) and a datagrid. i want to be able to call them from their own class. should i attach the search and datagrid each to their own panels in their own library? i know i'm not doing a very good job explaining this .. espeically if you haven't used the dotnetmagic component. any advice would be appreciated.

    C# com tutorial question career

  • Form.Hide() Form.Show() Problem
    M mikemilano

    I have 2 forms. The application enters on frmMain. Then I want to show frmSetup and hide frmMain. it seems pretty straight forward, but i can not get frmMain to hide. FormSetup frmSetup = new FormSetup(); frmSetup.Show(); frmMain.Hide(); is there anything i'm missing here?

    C# help question

  • Passing a Form reference to a new Form
    M mikemilano

    I'm trying to pass a reference of Form1 to Form2 so I can change things on Form1 from Form2. Here is my logic: Form1private void btnShow_Click(object sender, System.EventArgs e) { FormTwo = new Form2(ref this); FormTwo.Show(); }
    Form2:// .. yes form one was declared up here somewhere as public public Form2(ref Form1 PassingForm) { InitializeComponent(); FormOne = PassingForm; }
    error CS1605: Cannot pass '' as a ref or out argument because it is read-only i can read the error, .. but what would the proper logic be here?

    C# help question

  • .net dll compatibility
    M mikemilano

    can any dll written and compiled in vb.net, c++.net, or j#.net be used unconditionally in a c# project?

    C# csharp c++ question

  • re: socket connection to a url
    M mikemilano

    thanks, but i think i am miscommunicating here. i can connect to ups.com , .. just not the 'Rate' program the UPS documentation calls for me to request information from. all the authentication is done in the xml string i'm sending to them. the problem seems to be with me trying to connect to a sub directory of a domain. so i am probably supposed to connect to ups.com , .. but i must figure out how to send the data to that Rate app in the sub directories. thanks a lot for your time though!

    C# question com xml tutorial

  • re: socket connection to a url
    M mikemilano

    the same script connects to 'localhost' just fine. i think my problem is connecting to https://www.ups.com/ups.app/xml/Rate if i just use "ups.com" , it connects, but then it hangs because ideally i need to send the data to the "ups.com/ups.app/xml/Rate" application so my app can receive data back. once i create the connection, is there a way to navigate to the 'Rate' app before i send the data?

    C# question com xml tutorial

  • re: socket connection to a url
    M mikemilano

    thanks for the reply, .. here is the exception: System.Net.Sockets.SocketException: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for at System.Net.Dns.GetHostByName(String hostName) at System.Net.Dns.Resolve(String hostName) at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at ups.Form1.btnSend_Click(Object sender, EventArgs e) in c:\visual studio projects\ups\form1.cs:line 202

    C# question com xml tutorial

  • re: socket connection to a url
    M mikemilano

    i have been trying to figure out a way to send this xml data to ups for rate quotes. the goal here is to connect to this url, and send data. then receive the data it sends back. i get an exception because i'm trying to connect to a url ( and subdirectories ) instead of an IP. how do i connect to this url and send the data to the appropriate place? here is an example of what i'm attempting:TcpClient tc=new TcpClient("https://www.ups.com/ups.app/xml/Rate"); NetworkStream ns=tc.GetStream(); StreamWriter sw=new StreamWriter(ns); sw.WriteLine(xml); sw.Flush(); StreamReader sr=new StreamReader(ns); txtResponse.Text = sr.ReadLine();

    C# question com xml tutorial

  • tcpclient stream read
    M mikemilano

    i'm working on a server/client app and i'm running into problems. i would like the client to update when the server sends data to it. the problem is with Stream.Read() . This method will hang the application until either data is received, or an exception is generated. is there a way to check if data exists before you call the read method? this is a snippet of the code i'm using:

    TcpClient tcpclnt = new TcpClient();         
    tcpclnt.Connect("10.10.10.10',8001);
    Stream stm = tcpclnt.GetStream();
    ....
    
    listen()
    {
      try
      {
        byte[] bb = new byte[100];
        int k = stm.Read(bb,0,100);
    
        for ( int i=0 ; i
    
    C# sysadmin help question announcement

  • System.Runtime.Remoting.Channels.Tcp not found
    M mikemilano

    thank you! i thought i could just call it.

    C# help csharp visual-studio sysadmin tutorial

  • System.Runtime.Remoting.Channels.Tcp not found
    M mikemilano

    using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; error: C:\Visual Studio Projects\Server\Class1.cs(4): The type or namespace name 'Tcp' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?) i'm trying to follow a tutorial which uses this namespace, but it doesn't appear to exist. when is type: using System.Runtime.Remoting.Channels. i get no drop down for any other options.. and when i manually just force it in, i get a compile error that the tcp methods dont' exist. can anyone help?

    C# help csharp visual-studio sysadmin tutorial

  • OleDbException: Multiple-step OLE DB operation generated errors.
    M mikemilano

    I'm trying to open and query an AS400/DB2 Database via OleDB. I can do this fine via ODBC, but when I try to use Ole DB, I get the following error: OleDbException: Multiple-step OLE DB operation generated errors. My code and query is quite simple, and the exception is caused on the OleDbConnection.Open() method. Could anyone shed some light on what this may mean? Here's my code:string source = ("Provider=IBMDA400;Data Source=10.10.10.1;USERID=myusername; Password=mypassword;"; OleDbConnection con = new OleDbConnection(source); try { con.Open(); } catch (Exception a) { MessageBox.Show(a.ToString()); return; }
    Thanks in advance.

    C# database com help question

  • DataGrid - Click anywhere and act like you clicked to the far left.
    M mikemilano

    Is there any way to click somewhere in the datagrid, but have it highlight the entire row like it would if you clicked the row on the far left outside all the cells? I can get it to highlight the entire row, but it also highlights the text inside the cell i clicked on. I guess I'm answering my own question in a way. Now I need to find out how to make the cell text not highlight. =)

    C# question tutorial

  • C# & mySQL - What Driver To Use?
    M mikemilano

    www.mysql.com lists 2 dirvers for .NET and MySQL. I was wondering if anyone has any feedback on either of these. I don't really understand the difference between these. I've copied the info and link from mysql.com below. http://sourceforge.net/projects/mysqldrivercs/ A free simple .NET compliant MySQL driver. Made in C# but it would be used in all .NET compatible languages (VB.NET, Managed C++,...). MySQLDriverCS was written by Manuel Lucas Vinas Livschitz . http://sourceforge.net/projects/mysqlnet/ ByteFX, Inc. has made available an open-source .NET data provider for MySQL. It is available under the Lesser General Public License (LGPL). The driver is implemented entirely in managed C# code and has no dependency on unmanaged, external libraries. One managed-code, external library is required (SharpZipLib) for compression of the data stream between the driver and MySQL.

    C# csharp c++ mysql com

  • Registry Errors
    M mikemilano

    thanks for the help .. this has made me realize my problem is in the event handler and not specific to the registry. that is a great shortcut for just opening one key. i wasn't aware you could do it that way. i do appreciate the help, .. i'll start a new thread on the new subject.

    C# css windows-admin help question

  • Registry Errors
    M mikemilano

    i am creating a Param object before i call GetValues() here's a little more of the code with the 2 methods i'm using. I can comment out either one of the 'problem' lines, and the methods work fine, but it is when both are not commented that i get the object error. private void CreateStyles(DataGrid dg) { DataGridTableStyle style = new DataGridTableStyle(); style.MappingName = "IssueHistory"; DataGridTextBoxColumn DetailID = new DataGridTextBoxColumn(); DetailID.MappingName = "DetailID"; DetailID.WidthChanged += new EventHandler(this.SaveIssueGrid); RegistryKey softwareKey = Registry.LocalMachine.OpenSubKey("Software"); RegistryKey SC = softwareKey.OpenSubKey("SC"); if( SC != null) { RegistryKey Param = SC.OpenSubKey("Param"); if(Param != null) { DetailID.Width = (int)Param.GetValue("IHDetailIDWidth",50); // <-- problem line } } // code here to add style to dg } void SaveIssueGrid(object sender, EventArgs e) { RegistryKey softwareKey = Registry.LocalMachine.OpenSubKey("Software",true); RegistryKey SC = softwareKey.CreateSubKey("SC"); RegistryKey Param = SC.CreateSubKey("Param"); Param.SetValue("IHDetailIDWidth",this.dgIssueHistory.TableStyles["IssueHistory"].GridColumnStyles["DetailID"].Width); // <- problem line } sorry for the big code post, but i've been working on this for hours with the same results.

    C# css windows-admin help 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