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

Software Development Network >> Peter Cwik's Q&A profile

Peter Cwik

Member List

Pavan Apuroop
RookieDBA
Santosh A H
Ranal
cwlaualex
Ray Mordy
Gabriel Muñoz Luna
JHarjung
bijuintouch
Tompom
Sculptor
RPagels
ccote
Luis Esteban Valencia Muñoz
airin
DotanP
Eswans2000
holly kilpatrick 22222
LKeene
John Woodiwiss
Only Title

Peter Cwik's Q&A profile

  • SQL Server The name of DataSource in URL of report.

    Hello : Can we make to cross the name of the DataSource in URL of the report Thank you very mutch. Are you asking if you can use the url to have the report use a different datasource then the one that is configured If so, then the answer is no, that is not supported. If you are asking for something else, can you please clarify. -Daniel ...Show All

  • Windows Forms DataRelation, which direction?

    I have two related tables: category and question Each question has a corresponding category_id which is the (primary) key for the category the question belongs to. question->category_id == category->id; If I create a DataRelation between the two tables, does it matter which is the parent table/column and which is the child DataRelation MyRelation = new DataRelation("RelationName", MyDataSet.Tables["question"].Columns["category_id"], MyDataSet.Tables["category"].Columns["id"]); OR DataRelation MyRelation = new DataRelation("RelationName", MyDataSet.Tables["category"].Columns["id"], MyDataSet.Tables["question"].Columns["c ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Overloading WndProc

    Is there a way to overload the WndProc function while using XNA's classes like GameWindow I've seen ways to do it with WindowsForms. Mostly this is for insertion of CD-ROM messages and keyboard input messages. We expose the window handle so I imagine you could do it using that, but we have not tested this scenario so you may get unexpected behavior. Just curious, why do you need to handle keyboard messages this way ...Show All

  • Visual Basic Key hooking problem (VB2005)

    I am using the following code to try and prevent certain keys from being pressed when my application is running. But it always returns a negative number errror. Can someone tell me what I am doing wrong Code: ...Show All

  • Visual Studio 2008 (Pre-release) Feature Request for LINQ designer

    Could I make a small request, or perhaps this has already been done and I'm just not aware of it... When dragging tables into the LINQ Designer I get nice classes that I can customize. But what I would really love is if 2 classes were generated: a base class consisted only of the table's member properties, and an subclass that utilizes all of the LINQ data access features. This way I can decouple the LINQ specific data access code from my business objects and allow me to do other things with them (such as Serialize them!) Can this be done Thank you.. The entity classes generated for LINQ to SQL do not contain any data access logic in them, only some attributes on the properties if you chose to use attribute based mappin ...Show All

  • Windows Forms Corrupt Form - Designer cannot open : help

    Running Visual Studio 2005 using VB. Form was working fine, was in the process of debugging etc. Opened some other modules made changes. Went back to open my form and got the following Error I saw a few other threads of corrupted forms after upgrades etc but didn't seen anything quite like this. Anyone have any ideas Thanks in advance Mike One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Hide at System.ComponentModel.ReflectPropertyDescriptor ...Show All

  • Software Development for Windows Vista c# VFW capVideoStreamCallback(...) (DIB) lpVHdr To Bitmap

    Hi, (Update - previous post stated capSetCallbackOnFrame(..) this was an error sorry for any confusion, the call back being used is capVideoStreamCallback(...)) Im using the old VFW (Video for windows) within a c# application to facilitate video capture, partially throught the excellent ezVidCap control, (activeX wrapper for VFW capture) and due to some unfortunate limitations the win32 API. It is required that the preview runs, whilst recording and that a frame may be captured from the video stream at any time, ie recording, or not recording. ezVidCap will not allow or facilitate frame capture whilst recording but does make available the call back capVideoStreamCallback (). During recording I am using the callback function capSetCal ...Show All

  • .NET Development .NET HttpListener has a limit of 2 concurrent requests handled at a time per process, How can I increase it ?

    I created a simple server using HttpListener using .NET 2.0 The server simply accepts http connections from clients, sleep 3 seconds and return "OK" message. Server Code : HttpListener m_Listener = new HttpListener (); public void StartListening() { m_Listener.AuthenticationSchemes = AuthenticationSchemes .Anonymous; m_Listener.Prefixes.Add( "http://*:1234/" ); m_Listener.Start(); AsyncAccept(); } // this method is called in a loop to listen to new clients private void AsyncAccept() { m_Listener.BeginGetContext( new AsyncCallback (OnNewConnection), nul ...Show All

  • SQL Server Prediction Query for a "weighted" clustering model

    I have a question about writing a prediction query against a clustering model that has the same column added more than once. Per Jamie, I can accomplish some crude weighting by adding a column to my model multiple times. See this post for an explnation... Now that I have that worked out, I was wondering how my DM query would look If I have Input_A1, Input_A2 , & Input_A3 all being source from the same column in my structure do I have to reference all three when writing my prediction query to be most theoretically accurate, yes, however, I would check to see how the results change for your particular model as you change inputs. If you don't have any missing data, it may not make a significant difference. ...Show All

  • SQL Server Black server reports after installing SP2

    After installing SQL Server 2005 SP2 all of our server reports are being rendered with a black background and white text, which needless to say is reversed of how they were being drawn before installing SP2. This only happens when the report viewer is displaying the report in “Print Layout” mode. Normal mode shows the report as expected. Has anyone else had this problem or suggest a solution Thanks in advance. I haven't heard of a resolution that is acceptable yet, with the exception of geting back through all the server reports and deliberatly making the background color white. I'm not too convinced this is nessesarily a video card issue, since every single machine we have seen this on is doing the b ...Show All

  • Visual Studio Team System Print Spooler won't start

    Can anyone help solve this problem, all printers have dissappeared from printers and faxesm any attempt to add printer says print spooler not running. I have followed Microsoft suggestions for restarting and get errors 1068 and 1053, nothing seems to work. I am trying to avoid a reformat if at all possible. The problem occured shortly after installing a new printer Lexmark 6200, though not immediately. I was able to use the new printer for 2 days, I then took my laptop to work and used it with other printers at work. At home again used the Lexmark and then next day at work no printers. A problem with the lexmark looping in scanner mode was stopped by removing the usb cord which iam concerned may have caused some sort of corruptio ...Show All

  • .NET Development using dispose/finalize..

    I am trying to understand when a class needs to implement dispose. Lets say my class is using an arraylist and some other resources. Arraylist is a managed resource, so in this case should I be implementing finalize If I don't implement finalize my understanding is that the GC would still do a GC on my class and therefore get rid of Arraylist. What about dispose Do I need to implement dispose Let say I have another class using a windows script object. This would be a unmanaged resource. Do i now need dispose/finalize Thanks I don't know how WinForms implements they're Dispose code, so I'm afraid I can't help you there. The purpose of implementing IDisposable (or any interface, for that ...Show All

  • Visual Basic Button!

    Hello all, I am a total visual studio newbie and need help with a very basic task and was wondering if anybody could help me. I basically need a button on my userform to be able to link to an external application, for example the user presses the button and the alternate application will then open. Thank you if you can help me with this problem I am having I hope to learn much more within visual studio as it seems to be a vast but brilliant program. As Lars pointed out, you can launch a process with teh Process.Start() command. To hook this up to a button Double click on the form or control in solution explorer Drag a button from the toolbox onto your control double click on the butt ...Show All

  • Software Development for Windows Vista error installing office 2007 on vista rc1

    every time i try to install office pro 2007 beta on vista i get a error and the setup fails anybody have i solution Hello Frankjespo, Can you post more information about the failure -> Error messages -> Screen shots -> Are you attempting to install Office 2007 Technical Refresh (If so you must have Office 2007 Beta 2 installed first.) Thanks, Louis Shanks AppCompat ...Show All

  • .NET Development How to publish website created using Visual Web Developer 2005 Express Edition

    Hi Everybody! I created my website using Visual Web developer 2005 Express Edition on my local machine.My database stored on Sql Server 2000 and My web site stored on another Server. Now i like to publish my website.I also have one server having IIS. Any one can please help me how to publish my website for intranet purpose.This web site is used by internal staff within one building. Thank you Kirti email:kirtimistry2001@hotmail.com The problem u have is u might have created the web site in FTP folder..tats the main reason u r not able to access it from the remote machine.. while creating new website in VISUAL WEB DEVELOPER EXPRESS EDITION it automatically gets stored in FTP folder.E ...Show All

©2008 Software Development Network