Software Development Network Logo
  • .NET Development
  • Smart Devicet
  • Audio and Video
  • Windows Forms
  • Windows Vista
  • SQL Server
  • Visual C++
  • VS Team System
  • Visual C#
  • IE Development
  • SharePoint Products
  • Visual FoxPro
  • Visual Basic
  • Visual Studio
  • Microsoft ISV

Software Development Network >> Corbin Hoenes's Q&A profile

Corbin Hoenes

Member List

HuWu
Hardrock302
JFoushee
asisurfer
Kartit
Indigo Cowboy
ShAdeVampirE
IamHuM
pshotts
D-S
Andrea Williams
goreng
John Gooding
Samer Selo
JayPi
robinjam
Chris Marts
Joe K
okieflier
itsryan
Only Title

Corbin Hoenes's Q&A profile

  • Windows Forms Drawing along with the Mouse

    Hi, I have a code to draw a line along with the mouse as below: private Color myColor = Color .Red; [ DllImport ( "user32.dll" , EntryPoint = "GetDC" )] public static extern IntPtr GetDC( IntPtr ptr); private void myForm_MouseMove( object sender, MouseEventArgs e) { if (e.Button == MouseButtons .Left) { IntPtr hdc = GetDC( IntPtr .Zero); Graphics g = Graphics .FromHdc(hdc); Pen myPen = new Pen (myColor, 1); Point p1 = new Point ( Cursor .Position.X, Cursor .Position.Y); Point p2 = new Point ( Cursor .Position.X + 1, Cursor .Position.Y + 1); g.DrawLine(myPen, p1, p2); myPen.Dispose(); g.Dispose(); } } Now the problem is, t ...Show All

  • Windows Forms Custom Control not Appearing

    Hi All I've just created a custom control in VC# (Using Visual Studio Pro). I created it as a Custom Control Library Project. When I compiled the control, everything worked well and the .dll was in the correct directory etc. However, when I created a new Windows App project in C#, the control did not appear in the Controls list. I couldn't find it in the Add New Items list, and when I tried to browse for it, it came up as an incompatable file. The Control works fine when debugged and compiled without any errors or warnings. How do I add the control to the VS Library Thanks! Hi, Could you please try the following link. Hope this helps. http://msdn2.microsoft.com/en-us/library/fw694kde.aspx Thank you, Bhanu. ...Show All

  • Visual Basic Toolbox and auto hide

    I noticed a very annoying feature at least in VB 2005 Express. If my toolbox is in Auto hide mode, it is very difficult to place a control to form's left side because toolbox hides that part of the form. I have to place the control first elsewhere and then move it after toolbox is closed. It would be nice if the toolbox hid itself immediately after I've chosen the right component. Is there any tweak to do this -Teemu I agree with you that it does seem a bit problematic as currently implemented, as you essentially need to do two drags (one to place, one to rearrange). I have a work-around suggestion which might make the current situation more palatable. The suggestion only works if you ty ...Show All

  • SQL Server cursor to insert into a table variable

    I would appreciate some help in writing a cursor to populate a table variable based on a result set All the cursor does is find all rows with same area ID and areaName and insert into the table variable the one with the latest modified date, if all modified dates are equal then insert the one with the latest created date. This is the result set(id int, areaID int, areaName varchar(30), created datetime, modifieddatetime): 3 10 MA 2005-03-04 2005-03-04 6 10 MA 2005-05-04 2005-03-04 9 10 MA 2005-03-04 2005-03-04 1 52 PUERTO RICO 2005-03-04 2005-03-04 2 52 PUERTO RICO 2005-03-04 2005-03-04 4 52 PUERTO RICO 2005-03-04 2005-05-04 8 52 PUERTO RICO 2005-03-04 2005-03-04 5 5 NY 2005-04-04 2005-03-04 7 5 ...Show All

  • .NET Development Proxy with credentials

    Hi, I've got real problem accessing webservice via proxy-server requires credentials. When I accessing the service via proxy that not requires it, everything goes fine. My code generated form wdsl.exe and enchanced with my login informations: WebProxy hdiProxy = new WebProxy (" http://10.10.10.10 ", 8080); NetworkCredential cred = new NetworkCredential ( "user" , "pass" ); hdiProxy.UseDefaultCredentials = false ; hdiProxy.Credentials = cred; this .Proxy = hdiProxy; this .PreAuthenticate = true ; Using this code I'm falied to auth via proxy (Squid). Proxy sends 407 code and nothing happens after this, but in about 30 seconds an timeout error. If I'm l ...Show All

  • Visual Studio Programatically Executing a recipe while changing an input argument

    Hi, I found several related topics but none with an answer to this problem. I have a recipe adding an item to a project. The item's name is an input parameter getting its value from a wizard, easy enough. Now I want to reuse this recipe from code, looping over an XML file, and for multiple names found execute the existing recipe while overriding the name argument. Using reuse by xi:includes, I can create a new recipe that mirrors the original but without the wizard. An action from another recipe needs to execute this new recipe. Now I know it is not possible to execute a recipe from within an action (unless it is in another package), so I find the recipe and try to execute its actions using the IActionExecutionService. Not t ...Show All

  • Visual Studio uninstall problems

    I have Visual studio 2005 professional and express editions installed on my computer. I would like to uninstall the express editions. When I try to uninstall them, I get an error message saying "Setup is unable to determine a valid ordering for the uninstallation. See the error log for further details." I don't know where the error log is or else I would post it here. Also, I get frequent errors with professional edition. Should I install SP1 or uninstall professional, and reinstall fresh then install sp1. A lot of these issues came up when I uninstalled VS 6 while VS 2005 was installed. Speaking of VS 6, it is uninstalled, but it left 10 megs of junk in the program files/microsoft visual studio 6 folder (including the ma ...Show All

  • Visual Basic Change system time using vb.net

    Does anyone know how to change the system clock using code. I want to be able to set the date and time in my code. Any thoughts Thanks!!! I dont think you are exactly reading my post. I dont just want the time on the form I have several buttons. ex. first button has a plus sign, second button has a minus sign. when i click on the button with the plus sign it should increase the hour or minute by 1. It is just as if i was setting the time on the pc clock. I hope this is clear. Thanks!! ...Show All

  • SQL Server .NET Runtime Optimization error on SQL Server 2005

    I posted this on the .NET Framework inside Sql Server forum as well.  Sorry if the cross-post offends anybody. I upgraded my primary production server this morning to SQL 2005.  Everything went fairly smoothly, but a couple of hours after my installation was complete, I found the following error in my event log:   Source: .NET Runtime Optimization Service EventID: 1101 .NET Runtime Optimization Service (clr_optimization_v2.0.50727_32) - Failed to compile: Microsoft.ReportingServices.QueryDesigners, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 . Error code = 0x80070002   I am a little stumped since we did not install Reporting Services.  We only installed Database Serv ...Show All

  • Visual Studio Team System Schema Compare - Plumbling for Transaction Support Bug?

    When I do a schema compare, I have 'Include SQL plumbling for transactional synchronization scripts' unchecked. IOW, I do not want my scripts to contain any transaction support. However, I've noticed in some cases, DBPro adds transaction support anyway. It doesn't do it for the entire script but only in those cases where DBPro decides to rebuild a table (such as when column orders in a table between source and target are not the same). Below is an example. This was generated with the Plumbling option turned off. Is this a bug Thanks - Amos. --------------------------------------------------------------------------------------------------------- PRINT N 'Rebuilding [dbo].[ProjectBillingSchedule]' GO SET TRANSACTION ISOLATION ...Show All

  • Smart Device Development Using WMA codec to play media files directly without using WMP

    hi, i wish to know if anyone has any experience in integrating a wma decoder with smartphone to be able to play music files directly without using WMP(windows media player) I dont want to use WMP since i want to play protected content on my smartphone regards shailu155 Hi all, I have a similar problem: IGraphBuilder::RenderFile() returns VFW_E_CANNOT_RENDER when I try to play an .mp3 file on WM6 emulator or device. On the other hand this .mp3 file plays on WMP successfully. Moreover, IGraphBuilder::RenderFile() succeeds when I try to play an .amr or just .wav file. Does it means that WMP don't use the Direct Show And, PLEASE help! ...Show All

  • SQL Server pfpagealloc error

    I am running Sql Server 2005 SP 2 CTP and keep getting an error which says Internal Error pfpagealloc.cpp file is corrupt. This did not happen with SP1 and is very speradic. I get the problem when using both excel and the visual studio browser to manipulate an anylsis services database. I can then try again and everything works. I also get the same problem sometimes with my overnight rebuild of the cube. Paul This is exactly the issue I was getting and I did try to log my problem with connect. Unfortunately they obviously needed log files to be able to trace the problem and as unfortunately the system was live I had to go back to sp1. Please let me know if you have any luck with a resolution I will ...Show All

  • Visual Basic A question about the CheckedListBox.CheckedItemCollection

    Hi, I would appreciate it if somebody could give me some insight to my question. What is the best (safest) way of saving a CheckedListBox.CheckedItemCollection outside of the created (and used) CheckListBox, such that, if the user clicks numerous Checkboxes and then clicks a "Cancel" button... the CheckedListBox.CheckedItemCollection will be repopulated with the checks that existed before the user made changes Also, please let me know if I have the wrong idea about how to go about finding a solution to this problem. Thank you! Public Class Form1 Dim c As New List( Of Integer ) Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering in a window

    Hello I would like to have on the same window some buttons and other controls and rendering. One idea i have come up is rendering on texture and then copying this texture to the window. But it would seem not too good. Is there a way to limit rendering to a specified rectangle, so it does not take all window AN Hi, in the creation of the device you have to provide a handle to the object where you want to render. I only created the device to a panel (rectangle inside a window) in c# and c++/cli, just provide the panel's handle to the CreateDevice function. In c++ should be quite similar. ...Show All

  • Visual C# sometimes kill all processes and some time some of them????!!!!..

    my application is to kill running processes I have wrote this code and it is working fine but sometimes ... It is sometimes kill all application I select and some times kill hust some of them ... what is the problem ... this is my code ... private void button6_Click( object sender, System.EventArgs e) { if (checkedListBox1.Items.Count!=0) { try { Process[] myProcesses; myProcesses = Process.GetProcesses(); switch (MessageBox.Show("Are you sure, that you want to close all Applications ","Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)) { case DialogResult.Yes: foreach (Process p in myProcesses) { string Name = p.MainWindowTitle.ToLower( ...Show All

©2008 Software Development Network