Software Development Network Logo
  • Visual C++
  • Smart Device
  • Game Technologies
  • Visual Basic
  • Windows Forms
  • Visual J#
  • Visual C#
  • .NET Development
  • Visual Studio
  • Microsoft ISV
  • Visual FoxPro
  • VS Express Editions
  • VS Team System
  • Architecture
  • SQL Server

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

Cyberninjaru

Member List

SCourt.NET
Derek C
Jeff Putz
Jeroen12345
VS6ToVS8
Jose Fco Bonnin
Slim
vitriolv
Doggo
Harri V
jayant_jkn
MauroS
Carl Prothman
pato135
Kur Lan
Oussou
Shiznet
AhmadOOka
MatthewR
cdmdc
Only Title

Cyberninjaru's Q&A profile

  • SQL Server SMO Trace - Leaving connected session behind

    I run the following simple code which starts and then ends a trace. smoTraceServerReader.InitializeAsReader(cInfoBase, "2005NOSPIDFilter.tdf" ); smoTraceServerReader.Stop(); smoTraceServerReader.Close(); When the trace gets initialized we get a new session which runs the trace, I know this because I select from sys.sysprocesses and get this row select program_name from sys.sysprocesses program_name -------------------------------------------------------------------------------------------------------------------------------- SQL Server Profiler - 1599a2e3-545c-41ae-a1ee-d4125c99e015 Notic ...Show All

  • Windows Forms Make custom panel class appear in VisualStudio

    Hi, I have a simple question. I have made a custom panel class. And when I add it "codevise" to my form it does not show up in the Form editor in VisualStudio. How can I make it appear there What I've done before is to design the look of the panel on a form, and then copied the designer generated code into my ...Show All

  • .NET Development passing a safe Array as an out parameter to a .net component

    I have a .Net component that passes a stringArray to a client program via an out parameter. This works fine from a .net client and I have successfully passed a SafeArray from MFC to a .net component as an [in] parameter. What seems to evade me is returning returning an array of BSTR from a .net component via the CCW as an [out] parameter, back to this MFC client Can anyone help regards Hi Robert, This call seems wrong to me: SafeArrayGetElement( pSC , &bound[2] , XX); 1) you must pass a BSTR reference to be filled: SafeArrayGetElement( pSC , &bound[2] , (void*)&XX); 2) the third parame ...Show All

  • .NET Development how to get list of servers

    hi everyone, i have a server using windows sockets and runs on multiple computers on lan, and i need to display a list of the servers from a client machine, what is the easy way ,how can i implement it , does using broadcasting a good idea if it doesn't convenient give me an advice, or better show me an example code about how to broadcast because i can't find a sample shows the usage of "sendTo" or "receiveFrom" functions in windows sockets ...Show All

  • Visual Studio 2008 (Pre-release) Anonymous Methods and LinQ

    LinQ provides query language for our collections as far as I understood, And by the way in c# 2.0  there is Anonymous methods which provide us using closures as functors. Did anybody have issues with Anonymous methods Why did they introduce LinQ what is the best way to select elements of a list that satisfy a given predicate LinQ or Anonymous Methods using closure sorry I am kind of confused. Linq is a pattern that makes the use of such methods much easier.  If Linq is available, I see no reason to write the methods by hand. ...Show All

  • Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow

    Has anyone else noticed that typing in Visual Studio 2005 is extremely slow   Whey I type it seems that the screen is always 2 words behind where my hands are.  It makes it extremely frustrating to get anything done. I'm mainly referring to C# code.  It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this   Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. ...Show All

  • SQL Server How to create RDLC?

    How does RDLC work How do I create RDLC reports Thanks in advance. You can find more information about RDLC and the ReportViewer controls here: www.gotreportviewer.com To answer your question, please read FAQ Nr. 8 on that website: Q: What is the difference between RDL and RDLC formats A: RDL files are created by the SQL Server 2005 version of Report Designer. RDLC files are created by the Visual Studio 2005 version of Report Designer. RDL and RDLC formats have the same XML schema. However, in RDLC files, some values (such as query text) are allowed to be empty, which means that they are not ...Show All

  • SQL Server Matrix and scopes: Get the value at a given column/row parent scope?

    Hi all, We are trying to produce a report using a matrix that would show percentages to the column groups in the cells (ratio to parent along the columns): Colgroup = 1 Colgroup = 2 … Col1 Col2 Col3 Col4 … Rowgroup= 1 Row1 3 / (3+9) 9 / (3+9) 1 / (1+6) 6 / (1+6) … Row2 … … Rowgroup = 2 Row3 … … Ro ...Show All

  • Visual Studio Express Editions How do know left control?

    Hi all! I'm working on .Net 2003. When manupulating on control(textbox, combobox...) if move mouse to titlebar when control not lost forcus. How to know left control. Thank Hi there, In .NET 2003 (as you said you were working on): Your controls should have a MouseLeave event that fires when the mouse leaves the control (regardless of whether it has focus or not). However, if you want to know when the mouse leaves a control that still has the focus (i.e. hasn't lost focus) then you can adapt the following to your needs (sorry I can't give more but I'm not sure exactly what you'd want to do with this): priva ...Show All

  • Visual C++ need english

    Getting ready to work on another lab for school and I'm having trouble understanding the lab. This is the program they want me to write: Write a program that declares two twenty-element, one-dimensional integer arrays. Your program should fill these arrays with random numbers by calling a function called Fill_It. You will call Fill_It twice, once for each array, and ask the user to enter two different seed values. Fill_It needs to have a seed value, and low and high range values, and all three integers should be passed to it along with the array. Fill_It will use the seed for srand and then fill the arrays with values between the low and hig ...Show All

  • Smart Device Development SP3 question

    I have a few questions about sp3.  This service pack came as a set of distributable cab files, not as an sdk, so how does Visual Studio know anything about it   It seems to be debugging with an older version of the compact framework. I just ran into issues with this while building an install shield project.  Install shield goes to the sdk folder in Visual Studio 2003 and grabs the redistributable cabs there, not ideal for us since we wanted to release sp3 cabs for our newer devices.  Do I have to manually update all the cabs in the sdk directory   Thanks for any insight. Mike That ...Show All

  • Windows Forms Binding DataGridView to Junction (many-to-many) table.

    Hi.  How do I bind a DataGridView to a junction (many-to-many) table in a way that the DGV displays data from the lookup tables being joined by the junction table  I have worked with the DGV column types such as DataGridViewComboBoxColumn but haven't been able to get them to work in this complicated scenario.  I'd like the user to be able to select values (being displayed in DataGridViewComboBox columns) from the lookup tables  and a new row is added to the junction table.    I have an Author lookup table, a Title lookup table and a junction table called AuthorTitle.   In the DGV I ...Show All

  • Visual C++ C++ interface assembly not visible in other .NET projects

    I created an interface assembly1 in VC++.net 2005 (debug configuration). By interface assembly I mean just 2 public interface classes within a namespace definition. The interfaces, methods and properties are marked public. Interfaces assembly1 references another interface assembly2 - with the same namespace wrapping its public interface definitons, methods and properties. Build them no problem. Now I add assembly1.dll as a reference in a VB.net 2005 class library project, and none of the interfaces (or their methods or properties) are visible. Using the Object Browser the dll is listed but cannot be expanded. If I try an Imports on the Na ...Show All

  • Visual Basic How to modify MS Word Macro to go through entire document?

    Help! I am very new to VB authoring for MS Word macros and I created the following VB code/MS Word Macro to remove every line in a document that begins with "Note: #." How can I modify this macro to delete every occurrance of this line until it reaches the end of the document This code only works for one instance at a time. Sub DeleteNote() ' ' DeleteNote Macro ' Macro recorded 12/6/2005 by Thomas Lunde '     Selection.Find.ClearFormatting     With Selection.Find         .Text = "Note #:"         .Replacement.Text = ...Show All

  • Windows Forms How to populate a listbox with a complicated query

    How to populate a listbox with a complicated query  I created a query in the KeywordSetTableAdapter SELECT KeywordSets.KeywordSet, KeywordSets.ID FROM KSGroups INNER JOIN (KeywordSets INNER JOIN KSGroupKSAssignments ON KeywordSets.ID = KSGroupKSAssignments.KeywordSetID) ON KSGroups.ID = KSGroupKSAssignments.KSGroupID WHERE (((KSGroups.ID)=5)) ORDER BY KeywordSets.KeywordSet Fill a datatable method: FillByKSG5 Return a datatable method: GetDataByKSG5 What is this about I assign KeywordSets - say Peres, Shimon, to KSGroups. In this case I'd include Peres, Shimon to Persons, which KSGroups.ID=5. I've also assigned him to other groups ...Show All

©2008 Software Development Network