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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
K

kselman

@kselman
About
Posts
17
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sharepoint web part using DLL created with IKVMC (Java to C# compiler) [modified]
    K kselman

    www.ikvm.net [^] Im trying to implement some features from a Java application on my employer's SharePoint site. I used IKVMC to compile the Java JAR file to a strongly named .DLL file. Before starting on the web part in VS2005, I wanted to make sure it would work. So I created a basic WinForm app and added the DLL as a referenced assembly (also added two DLLs that came with IKVM) in the application folder. Everything works. So -- I moved on to creating the web part. I fired up my Virtual Machine (using V2005, VSeWSS 1.1 and W2K3 Server). I added the DLL and put in the same code and I get the following: [IllegalArgumentException: interface com.iwi.teenserver.dao.hessian.cust.CustomerDataAccess **is not visible from class loader**] java.lang.reflect.Proxy.getProxyClass(ClassLoader loader, Class[] interfaces) +3149 java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h) +53 com.iwi.teenserver.dao.hessian.IWIHessianProxyFactory.create(Class api, String hostName, Int32 port) +122 com.iwi.teenserver.dao.hessian.IWIDataAccess.getCustomerDataAccess() +64 DriverSummary.DriverSummaryWebPart.CreateChildControls() +133 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170

    modified on Thursday, July 24, 2008 4:48 PM

    Web Development csharp java sharepoint com design

  • C# PictureBox.MouseDown
    K kselman

    Thanks for the quick reply! Sounds good I will use a Timer then.. Thanks -Kevin

    C# csharp question

  • C# PictureBox.MouseDown
    K kselman

    I hope this is an easy one. It seems like it should be. I have a pictureBox that I am using as a button. I'm swapping images in and out for up and down states. When the user clicks and holds the mouse down I want it to execute the MouseDown code multiple times until they MouseUp. private void mirrorAdjust_MouseDown(object sender, MouseEventArgs e) { mirrorPictureBox.Image = Resources.MirrorDown; //while(MouseDown) ?? Is there a state I can check here? FunctionToRepeatUntilMouseUp(); } private void mirrorAdjust_MouseUp(object sender, MouseEventArgs e) { mirrorPictureBox.Image = Resources.MirrorUp; }

    C# csharp question

  • run exe on different computer
    K kselman

    check out PSEXEC.EXE from Sysinternals.com once you have loaded the .NET framework on his computer.

    C# csharp help question

  • C# 2.0 ASP.NET Postback & ObjectDataSource
    K kselman

    I think this is an easy question.. (2nd try) I have a DataList displaying data from a ObjectDataSource and below that an input form that inserts data into the same table. When the user clicks submit, upon postback the DataList is showing the data prior to the submit. How do I refill the data on postback? Id post some code but filling of dataset and databind is 2005 "magic".. here is the code Im using in the ButtonClick function: NewsDataSetTableAdapters.CommentsTableAdapter commentsTable = new NewsDataSetTableAdapters.CommentsTableAdapter(); commentsTable.Insert(newsID, subjectTextBox.Text, commentTextBox.Text, ipAddress, DateTime.Now, emailTextBox.Text);

    ASP.NET question csharp asp-net

  • Isuses with timers + fast intervals
    K kselman

    Im guessing the next Tick will be delayed. Good question.. You can experiment with two timers and two counters .. the one with the lower count would be the delayed function.

    C# question winforms

  • C# 2.0 ASP.NET Postback & ObjectDataSource
    K kselman

    I think this is an easy question.. I have a DataList displaying data from a ObjectDataSource and an input form that inserts data into the same table. Upon postback the DataList is showing the data prior to the postback. How do I refill the data on postback? Id post some code but filling of dataset and databind is "magic".. here is the code Im using in the ButtonClick function: NewsDataSetTableAdapters.CommentsTableAdapter commentsTable = new NewsDataSetTableAdapters.CommentsTableAdapter(); commentsTable.Insert(newsID, subjectTextBox.Text, commentTextBox.Text, ipAddress, DateTime.Now, emailTextBox.Text);

    C# question csharp asp-net

  • Inheriting a class and using property grid
    K kselman

    I have a class inheriting another class. Im using the property grid to let the user modify data in that second class. the base class has an enum I dont want displayed in the property grid. Ive used attributes to hide and document items int the base class. what can be done to hide things when viewing the property grid from the inherited class?

    C# css question

  • C# 2.0 Process.Start
    K kselman

    Thanks for the reply. I dont want the user to interact with the first process while the second process is running. I have a function that disables all the controls. So I think I will use that with a new thread. I was hoping to let the parent form look responsive even though they couldnt do anything until the 2nd process was done. Its and application that launches installers and it also can delete files.. so I dont want them clicking on a button that could delete parts of something that their currently installing..

    C# csharp

  • C# 2.0 Process.Start
    K kselman

    I have an app that launches another app. I dont want to return out of my function until the second app has exited. So Im using a while loop. But the first application needs repainting if you move the second app around on the screen. When I call invalidate in each pass it cleans up the garbage but does not draw controls. I see place holders of where buttons and other controls should be. ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "InstallIDS.exe"; Process process = Process.Start(startInfo); while (!process.HasExited) { Thread.Sleep(500); this.Invalidate(true); }

    C# csharp

  • C# 2.0 BackgroundWorker
    K kselman

    Welp.. Its working now.. not sure what was going on with it before. Unfortunately I changed too many things between testing and Im no longer receiving the Exception. It said something about "Background Worker has already completed" I think was I calling ReportProgress during the Completed event.. but I tried to recreate the problem to report to you here.. but that didnt cause the exception. I also had a pointer to a helper class that was init'd outside of the DoWork function, but I put that back in and it still works.. *shrug* sorry.. i usually dont jump the gun and post a request for help.. but It sure seemed that I could not re-use the B.W. with out hooking its events back up. Which is not the case.. Just calling RunWorkerAsync() re-runs it as expected. You reply did help, because you seemed confident to be able to re-use RunWorkerAsync and sure enough the problem was on my end.. Thanks for the quick replies.. -- Kevin

    C# csharp question

  • C# 2.0 BackgroundWorker
    K kselman

    I got an app where I use the backgroundworker and when it's done it fires off the BackgroundWorkerCompleted event. Which is all good. but I need to reused the object later on. I get an exception that the BackgroundWorker has already completed. So I tried myBackgroundWorker = new BackgroundWorker(); but none of the events are hooked up any more and it just sits there. Is there anyway to reset it?:confused: or do I have to set all the properties each time I use it? -Kevin

    C# csharp question

  • C# 2.0 TreeView and ToolTips
    K kselman

    I have a TreeView control inside a TabControl. Im adding my items from a collection. foreach (LogicStatementLine line in ift.Triggers) { newNode = new TreeNode(ift.GetObjectName(line), 10, 10); node.Nodes.Add(newNode); newNode.Tag = line; } I have set the ShowNodeTooltips to false on the TreeView control. Yet Im still getting them when the text extends beyond the viewable area. Is there anyway to turn them off completely?

    C# csharp question

  • C# 2.0 Key + Mouse Move
    K kselman

    Thank you! that worked.. before your response I found a few crazy methods of importing user32.dll etc. This is exactly what I was hoping for. I am a bit confused as to how it works.. what is Control ? the current control in focus? I was expecting using sender or e to find the data. if (Control.ModifierKeys == Keys.Shift) { ......... }

    C# question csharp

  • C# 2.0 Key + Mouse Move
    K kselman

    in my mouse move event how can I tell if the user is holding down the shift key?

    C# question csharp

  • SelectedItem not working??? I'm stumped!
    K kselman

    need more code... if your seeing the same result without a crash your probably acessing the parent object in your heirarchy. what control is ca_id ?

    C# csharp database graphics xml json

  • C# 2.0 ToolTip on ChildPanel
    K kselman

    I have large child panel control Im using for a direct3D render engine. I want to use the balloon tooltip when they mouse over XY locations on the child panel. I want to use the popup event already in the ToolTip control to check whether their over an acutual item or not.. if not.. bail out... my problem is.. the ToolTip only shows up once... popup only gets called once.. im not surprised because its one big control and Im still within its bounds.. but is there anyway around this?

    C# csharp 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