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

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

Zwigby

Member List

daisy1225
LarrySmith
Shah Yogesh
Andrew Renner
Dick Campbell
ajteeder
ureyes84
NealG
Jeff Sholl
Dinesh.s
Jaden
jali
adlen
richard22
shodan
B_Barry
KaBob
justinv
Gabriel Florit
Olivier.Destrade
Only Title

Zwigby's Q&A profile

  • Visual Studio Team System how to access the branch statement to use in fxcop?

    hi, i am writing a rule to check is declaration avoided in inside loops. For that i am checking is declaration avoided inside branching statements of MSIL. For that i need to access br.s and blt.s opcodes. I dont know how to access them... Can any one help me Thanks in advance... Hi Guns, loop detection and assignment inside loops is more complicated than just looking for branches. This usually is done with dataflow. Trying to implement this by just looking at instructions will probably be very tough. However, if you want to see all MSIL instructions in a method, use Method.Instructions. Each instruction object will hav ...Show All

  • Windows Forms VB.net help needed involving Printing and Print Previews

    Hi everyone, new programmer here. I'm working on a new .net windows form project, involving Print Preview and Printing. I just need to know how to send certain objects to the Print Preview window, then Print from there. Here's what I got so far: Public Class frmVBACCW Inherits System.Windows.Forms.Form Private Sub mnuFilePrintOrder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFilePrintOrder.Click 'Begin the process for Print Preview With ppdPrintPreview .Document = prtPrintDocument .ShowDialog() End With End Sub Private Sub prtPrintDocument_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Pri ...Show All

  • Visual C# When and how the instance of a singleton object will be disposed..?

    using System namespace DesignPattern { class Connection { private static Connection instance; private Connection() { } public static Connection GetInstance() { if (instance == null ) { instance = new Connection(); return instance; } else return instance; } } } Now this is a singleton class .So every consumer of this class will get an single instance of this class. My question is that when and how the instance of this singleton object will be disposed.. An extended example would be great. If you desire ...Show All

  • Windows Forms Adding Scroll bar in MDI Parent Windows

    Hi All, Currently I am working on a Windows Application Desinged using the .net 2.0 Framework. At the start of the application, i want to calculate the Size of the window that should be (for example say height : 2000 and Width : 2000) Now if the Size of the display area is less then the calculated size, it should show the scroll bar in the MDI Parent form so that the user can navigate In the WIndows Forms Class there are two Property called AutoScroll and AutoScrollMinSize -- using these two property i can simumate my scenerio. But it is having the problem with MDI Parent Form. Whenever i try to do the same using these property, ...Show All

  • SQL Server Uninstalling SQL Server September CTP failed

    I want to install the Sql Server Express on my computer so I've tried to uninstall the Sql Server September CTP. I tried to remove it from the Add/Remove Programs. Then something very weird happend. The Microsoft Sql Server 2005 CTP disappeared (so I thought it was uninstalled) from the Add/Remove Programs's list but I can still run it from Start -> All Programs -> Microsoft Sql Server 2005 CTP. And it works properly. What should I do to remove it Do you know any removal tool for the september CTP ...Show All

  • SQL Server FileWatcher Task or System.IO??

    I would need to make a SSIS package which must to watch all the day long if a file come and then save into a variable that path+file. FileWatcher task do that for me or better totally focusing this requirement in a conventional .NET Script using IO classes and all that sort of stuff OK, what about this here: http://www.sqlis.com/default.aspx 23 HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • .NET Development How to access primary key value

    I have a simple access DB, first field is ID and is autonumber, its also the primary key. Then I have a simple routine to insert new record, something like. Dim sql as string = "INSERT INTO table (name,address,phone) VALUES ('bob','windermere avenue','456225')" Dim conn as oledbconnection = new oledbconnection(connectionstring) Dim cmd as oledbcommand = new oledbcommand(sql,conn) cmd.executenonquery Obvously this will insert new record and access will assign an ID, my question is how do I get this ID Thanks I am having the same problem! I am having .mdb database , table have Primary key Replication_ID type. ...Show All

  • Visual Studio 2008 (Pre-release) ANN: Updates Dec CTP - Chess, Math Eq, Amazon Ads, Map Browser

    http://www.valil.com/winfx These are the individual links: http://www.valil.com/winfx/Valil.Chess.WinFX.xbap http://www.valil.com/MathEquations/Valil.MathEquations.Sample.xbap http://www.valil.com/winfx/ads.html http://www.valil.com/winfx/MapBrowser.bin.zip I intend to post the updated sources at the beginning of the next year. If you really need the source code, send me an email and we'll discuss. In my opinion, Avalon is a great piece of software (even if it's in CTP stage) and the forum/newsgroup/blogs/documentation has been an invaluable source of information. I want to congratulate the Avalon t ...Show All

  • Visual Studio Express Editions Intellectual Question??

    Hi There Below Is a Is a Generated VB Simple Program. - A Windows Form with a Rich Text Editor Control loaded with the Text - "Hello World Without A Printer"....... < Global .Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose( ByVal disposing As Boolean ) If disposing AndAlso components IsNot Nothing Then components.Dispose() End If MyBase .Dispose(disposing) ...Show All

  • Visual Studio Tools for Office Revisions in Bookmarks

    When I access a Microsoft.Office.Tools.Word.Bookmark object in my code I was hoping to use the Revisions property to get the revisions within only that bookmark.  I seem to get all of the Revisions of the entire document.  Is this the way it is supposed to work Bill Microsoft.Office.Tools.Word. Bookmark book; IEnumerator books = Controls.GetEnumerator(); while (books.MoveNext()) {     if ( books.Current.GetType().ToString() ==       "Microsoft.Office.Tools.Word.Bookmark" ) book = (Microsoft.Office.Tools.Word. Bookmark )books.Current; else   conti ...Show All

  • Visual Studio Express Editions Need Help to get a third party class working

    Hello, I’m absolutely new in c++ but I try write a programm to communicate with my Weather Station Interface. Normaly I use c# but it is so difficult to Handle this Interface that I decided to use c++ because there is someone who wrote a class to communicate with the Interface. I installed the vc++ Express Edition and the plattform SDK to use windows.h. But now I have a part of code where I get an compiler Error that is so "strange" that I didn’t understand it. Code: bool CWStation::ExecCmd(Command Cmd, char *Param) { int TryCount = TRYCNT; while (TryCount) { SendCmd(Cmd, Param); Sleep(50); if (RecvData() == 0) { ...Show All

  • Software Development for Windows Vista Clarification about Scheduler services and Workflow Hosts

    Hi there... I have some questions about the scheduler services and workflow hosts. I'm building a WF application using a State Machine workflow and ASP.NET. I' ve read few times that is better use the ManualWorkflowSchedulerService than the DefaultWorkflowScheduler service. I know the differences between them, the first one donate a thread where the workflows instance will be run, this means the workflow instance is synchronous with the Host. DefaultWorkflowScheduler service it's different, creates threads for the workflow instances, this means the workflow host is asynchronous with the host. If my host  ...Show All

  • Windows Forms showing only date part of datetime in datagridview control.

    Dear experts!! I have a stored procedure which converts a datetime field of a table to date using the following built-in function. CONVERT(char(10),<column>,105) To be precise: My table name is Purchase, and the datetime field is PurchaseDate. Select CONVERT(char(10), PurchaseDate,105) as PurchaseDate FROM Purchase. -The above command works fine as I run and test it in SQL express "New query'. But as I bind my dataGridview control to this stored procedure, all other field are shown except for this one. The field just remains Blank. Can anyone please give me a clue Thanks. ...Show All

  • SQL Server T-SQL not working for parameterized query

    We have been using OLE DB for our connection types, but recently (after hearing some most compelling PASS/SSIS seminars) sounded like ADO.NET connection type was going to raise the performance. However, using T-SQL we get errors when we try doing parameterized INSERTs. Is this a bug (as of Sept CTP) or have we overlooked something P.S. Please don't suggest using stored_procs, we don't want use them yet.. Query: (Simplified for demonstration purposes) INSERT INTO ETL_Instance_Store(CompanyAppID) VALUES( ); Parameter Mapping: User::rsComAppId   Input   Int32   0 Error: [Execute SQ ...Show All

  • SQL Server Percentile

    Hi, l would like to calculate 80% and 95% percentile of a column from my table in SQL server 2005. Does SQL server 2005 provides such built-in function, if not, how should l do Any suggestion (Suggest to MS : Please include percentile as a built-in function on the next services pack). Thanks and happy labor day! Lookup the NTILE and RANK functions in Books Online. -- David Portas, SQL Server MVP Whenever possible please post enough code to reproduce your problem. Including CREATE TABLE and INSERT statements usually helps. State what version of SQL Server you are using and specify the content of any error ...Show All

©2008 Software Development Network