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

Software Development Network >> kbrocksi's Q&A profile

kbrocksi

Member List

Larra
zppro
LoveMeSomeCode
JackZhangca
ivanchain
TurboTom
Hendro Wijaya
asiaindian
kdancer100
ReneeC
Farhan H Soomro
Softwhere
Manaxter
mrboldt
Ruki
TarPista
ryan101
Wee Bubba
Kamii47
Keith Chapman
Only Title

kbrocksi's Q&A profile

  • Visual Studio Team System Team Explorer --> Team Project Work Items Link broken -- How to fix?

    Hi, One of our Engineers just encountered this problem. under the Team Explorer window, expand the Team Project. The Work Items link is broken. It was working before, but now it is broken. How do I fix this He is the only one encountering this problem. Any help is appreciated. Thanks, staffan Also, check for the permissions for work item tracking...whether he got all rights to explore..like work item read or write... Check the TFS event viewer error log.....whether any log in TFS work item tracking... Thanks, Kathir ...Show All

  • Visual Basic Install Windows Service Using InstallUtil.exe

    It's my first to write a service with Visual Studio 2005, at first i had an application written as Console Application, I did copy the code into a new Windows Service Project so my code like like the following: Imports System.IO I mports System.Security Imports System.Security.Permissions Imports system.Data.Odbc Public Class Service1 Protected Overrides Sub OnStart( ByVal args() As String ) Watch() End Sub Protected Overrides Sub OnStop() Some code Here End Sub <Security.Permissions.PermissionSet(SecurityAction.Demand, Name:= "FullTrust" )> _ Private Shared Sub Watch() Some code Here End Sub ' Define the event handlers. Private Shared Sub OnChanged( ByV ...Show All

  • .NET Development Possible to register a C# program to the R.O.T. for OLE automation?

    Hi all, I was wondering if it was possible to "register" your own created c# program for OLE automation This would be the equivalent of accessing something in Excel via OLE. Like: Dim ExcelApp As Object ExcelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") Edit: and just to clarify, I understand how the GetActiveObject works (by looking up the object in the Running Object Table). I guess I need to know if it is possible to register a program with the Running Object Table. When a dll or executable does conatain IL code it is considered as assembly by .NET. You can register your public types with regasm to make them visible to COM. http://msdn2.microsoft.com/en-us/library/t ...Show All

  • .NET Development sorting data in tables

    as abv, how can i do it im using sql server express 2005. my situation.. i had retrieved data and sort them before i add them into a combobox. so the problem now is that the ID at the combobox doesnt tally with the ID at the database. the data in the table will continue to increase as time goes.. eg. combobox 0. apple 1.orange 2.pear table 0.orange 1.pear 2.apple i would like to sort the data before i can use the ID for another purpose. SelectedIndex is just the number of the selected item in the listbox. So instead of using selectedindex, use the SelectedItem and cast this to a DataRowView and extract the value, like so: DataSet ds = null; DataTable t = null; private void button2 ...Show All

  • SQL Server Dynamic Textbox height?

    Hi, I often have a 'label' text box next to a 'data' textbox. If the data textbox expands how can I get the label to match it in height . I tried to set the height of one to the height of the other but got errors. Thanks, Dear,   suppose u have a lable and a textbox. In textbox u have a value(!Fieldname.value) In the label function box write the code like this ="hello" & space(len(!fieldname.value)) & "." So it will read the (!fieldname)length and add that length to ur lable with space function.I used a dot "." at last in the function because there should be something to hold the space. U can customise the code according to ur need. HTH from sufian. ...Show All

  • SQL Server error in ssis package!

    Hi, [OLE DB Destination [1146]] Error: An OLE DB error has occurred. Error code: 0x80040E23. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E23 Description: "Cursor operation conflict". [DTS.Pipeline] Error: The ProcessInput method on component "OLE DB Destination" (1146) failed with error code 0xC0202009. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. [DTS.Pipeline] Error: Thread "WorkThread0" has exited with error code 0xC0202009. have any of u encountered this error package is wo ...Show All

  • .NET Development Error: Unable to open shim database

    I get this kind of events logged in the eventlog: Source: .Net Runtime Type: Error Unable to open shim database version registry key - v2.0.50727.00000. Is this 'normal' behaviour or is there a misconfiguration. I have this messages on Windows 2003 Server, on SqlServer2005 boxes as well on TFS app tier and Terminal Server running VS2005. Strange thing is: everythings seems to work OK... Rene Can you run regmon (from sysinternals) and filter on errors only, to see which registry key is actually the culprit   Tnx   Rene ...Show All

  • Visual Studio Tools for Office infopath 2003 toolkit for visual studio 2005?

    Hi, Can u please send me the path for downloading infopath 2003 toolkit for visual studio 2005 i searched in many places every where they i got it visual studio .net 2003 but i want that toolkit for VS 2005 Thanks & Regards The correct version of the Microsoft Office InfoPath 2003 Toolkit for Visual Studio 2005 is now posted on ProductsWeb as the VS 2005 edition “ Tools for Office – InfoPath ”: http://productsweb/product.aspx productnameid=1658&status=3&platformid=-999&category=1 Hope this helps! Mei ------------------------------------------------------------------------------------------------------------------------------------------------ This posting i ...Show All

  • Visual C# Generics: Test for a datatype

    Hello, I want to add special handling for a generic class I am writing. See below: class MyGeneric<T> { private T val; public MyGeneric(int src) { // I want to add customized handling such as this below: if (T is string) val = src.ToString() } } Is this possible with generics The code belos is not exactly what I want to do, but hopefully it gets the point across... I want to have customized handling for cartain types for T. Thanks for the suggestions...  I tried doing the cast as suggested, but got yet another couple of compile-time errors (see code below): error CS0131: The left-hand side of an assignment must be a variable, property or indexer| error CS0029: Cannot implicitly con ...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

  • Windows Forms DataGridView Sorting ????

    I have a GridView i am populating the same dynamically....By adding colums and rows. Like DataTable dt = new DataTable (); dt.Columns.Add( "ProjectName" ); dr = dt.NewRow(); .... So in the design view this ProjectName is not visible..i need to enable sorting. So how do i do it. You can call the DataGridView.Sort() method: My_DGV.Sort("MyColumn", ListSortDirection.Ascending); You can also use a DataView to mantain sorted the view, put it like DataGridView.DataSource. http://msdn2.microsoft.com/en-us/library/system.data.dataview.aspx Regards. ...Show All

  • Visual Studio Team System Checkin of file fails because I do not save items I did not edit

    I have checked out a file for edit and made a one line change. Now I am trying to check the file back in. When I click the checkin button in the pending changes window, which only contains the single file I have checked out, a dialog comes up asking me: "Save changes to the following items " It then lists the project solution file and one of the projects in the dialog box (I already saved the file I want to check in). If I answer "no", the dialog goes away and my file remains checked out. The same thing happens when I cancel out (hit the x). I have made absolutely no changes to anything other than the source file I am trying to check in. So why does TFS seem intent on foisting some change in the solution file o ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is there an easy way to generate a random color?

    I was trying to generate a random color to be passed into the Sprite Batch Draw function to put a tint on the sprite being drawn. mSpriteBatch.Draw(mBackground, new Rectangle (0, 0, 1024, 768), mRandomColor); However, there doesn't appear to be any way to create a new color from RGB values for the XNA frameworks Color object. I had thought that I would be able to do something similar to how you would create a new color when using the System.Drawing dll. Color mRandomColor= Color.FromArgb ( ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) ) ; Is there an easy way that I'm just overlooking to achieve that same effect Yep... XNA's different from the one you used in Window ...Show All

  • Visual Basic Convert VB struct to LPBYTE

    Hello evrebody. I'm trying to use the Setjob API within my vb.net project but I don't reach to pass my JOB_INFO structure to the API. So my question is : How to convert a VB structure to a LPBYTE I use this declaration : Public Declare Auto Function SetJob Lib "winspool.drv" ( ByVal hPrinter As IntPtr, ByVal JobId As Int32, ByVal Level As Int32, ByVal pJob As IntPtr, ByVal Command As Int32) As Boolean and Structure JOB_INFO_2 Public PrinterJobId As Integer Public pPrinterName As Integer Public PrinterName As Integer Public PrinterUserName As Integer Public PrinterDocument As Integer Public PrinterNotifyName As Integer Public PrinterDatatype As Integer Publi ...Show All

  • .NET Development Well, I'd assume...

    I've created some code which runs a Socket asynchronously. This code has been fine until recently, where now, any time the client socket is either ungracefully exit, or if the connection attempt fails, the code fails with an unhandled AccessViolationException producing the following: System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System" StackTrace: at System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait, IntPtr ignored) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallbac ...Show All

©2008 Software Development Network