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

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

Onats

Member List

John Doherty
Corey Furman
Michael Klucher - MSFT
Vineet Kaushik
kcchesnut
Banhnam
bkejser
Gary Cabana
GAtkins
Rashar
nechmads
Simulacrum
TBing
Jon Abbott
nbrege
cssjm
xlordt
Richard114
KC416
Andeezle
Only Title

Onats's Q&A profile

  • Visual C++ how to find the value of a macro?

    Hello everyone, I am wondering what is the easiest and safest way to find the value of a macro For example, if I, #define FOO "value1" The value of FOO I can get is "value1" and if then I, #undef FOO #define FOO "value2", then the value of FOO I can get is "value2". thanks in advance, George Hi Peter, Peter Ritchie wrote: What are you trying to do You ask how to get the value of a macro then provide an example of getting the value of a macro... I do not provide a sample at all. I just provide a usage scenrio about macro value change, rather than source codes. regards, George ...Show All

  • Windows Forms How can i make a program run in the background?

    hi please anyone tel me how can i make my program run in the background. i am making a C# server program and i need to run it always and tat too in the background. thanx add a systrayNotifyIcon component on your form add a contextMenuStrip component on your form in the systrayNotifyIcon properties, set the ContextMenuStrip to the contextMenuStrip component you just added on the form. Select the ContextMenuStrip component and you will see a menu system at the top of your form, this menu system will be the system showing when the user right click on the icon in their systray. Create the menus as you normally do and create methods for them to do stuff, what ever it is.   Then on ...Show All

  • Windows Forms Preprocessor Macros with Windows Form Designer Compiler

    Is there any type of preprocessor with the Windows Form Design Compiler so I can have a piece of code in my .h file not get evaluated by the compiler. For example here is an event I only want to be availabe under special circumstances. #ifdef ADD_SPECIAL_EVENT this->specialEvent += System::EventHandler(this, processSpecialEvent) #endif Thanks Keith ...Show All

  • Visual C++ How do I draw to a DCcompat Bitmap then BitBlt to screen to reduce screen flash while scrolling?

    Hi guys, I'm a grad student in cognitive psych with a decent background in C++.  I've post here before and you guys were very helpful, which I greatly appreciate.  Anyway, I've got another issue. I'm designing a program for a study that involves using a CView class and drawing several things using the dc in the OnDraw function.  What I draw usually goes greater than the screen height and I've implemeted a vertical scroll bar to scroll up and down to see it all.  The problem is that when I scroll up and down there is alot of screen flash due to redrawing as the scroll bar moves.  I need it to be smooth or otherwise it messes with the perception rules for the study.  What ...Show All

  • .NET Development Question about DataTable Constraints

    It seems the only constraints you can add to a DataTable are UniqueConstraints and ForeignKeyConstraints. I would like to see a CheckConstraint such as column value < x or > 0 or <> 0…. Is this possible with DataTables aztec2_step wrote: Perhaps there's a way to just raise an error on validation. I'll have to look into this yet.... Yes, validate the column data before it is put in the row...either from direct data reads or from user input. With user input you have validation events to work with ...Show All

  • Visual Basic Datagrid Postbacks

    Hi all, I have a datagrid that gets data from a SQL database.(Windows Forms App) The problem is i need to loop through (or somehow process) the datagrid once a button is pressed and update some fields in the SQL database. These fields are bit fields that are using the DatagridBoolColumn style. If the user clicks the colums and change the check values then it must be saved. I cant seem to get the loop to work and have tried a number of other samples i found. Any direction would be appreciated I am using VS2003. Below is the load which is good but i havenot included the click event cause i have deleted it all :). Thanks in Advance Michael Private Sub POS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ...Show All

  • Visual Basic Crystal Report And Similar Tool For Printing Document

    May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. There are quite a few software vendors who have got report generating tools. Your choice will probably come down to cost. If you are using VS2005 then you may want to stick with the free version of crystal provided, but you can always find others by googling report generators. As for crystal tutorials, try going to the business objects website as there are walk through examples there. ...Show All

  • .NET Development reading key values in App.config file with C#

    Hi, I am using .NET 1.1 and trying to read key/value pairs from the App.config file that I have defined as below: <configuration> <appSettings> <add key ="filetype" value = "EPI"/> </appSettings> </configuration I am using the following code snippet to read the key value into C# but I am unable to get it to work. public static string getFileType(){ string filetype = ConfigurationSettings.AppSettings("filetype"); return filetype; } Could anyone tell me how to make this code work. Please note that I am using .NET 1.1 and cannot use the Configuration Manager available in .NET 2.0 . Thanks       That is correct , there will be {a ...Show All

  • Visual Studio Team System Access to RUP process template?

    We're a RUP shop and have used TFS for one project. We applied the MSF Agile process template for that project, used Sparx Enterprise architect for our UML and requirements traceability, and then bodged up some integration between the two. We're about to start a new project and I am wondering if there's a chance of getting an early look at the (R)UP process template. Can anyone from MS VS Team comment as to availability Thanks in advance. Osellus ( www.osellus.com ) provides following solutions for RUP and VSTS users: a) Exporting RUP 7.x (RMC) to VSTS: VSTS ContentBridge b) Multi-user tool for tailoring RUP (and MSF etc.) and exporting to VSTS: IRIS Process Author c) Exporting RUP 5.x ...Show All

  • SQL Server Composite Key

    Hello, just wondered if anybody could either tell me the answer or point me in the right direction to the following question. I have a table that maps Users to Requirements The following is Valid Where User = Jon, Bob and Requirements = 1, 2.... User Requirements Jon 1 Jon 2 Bob 1 Jon 3 Bob 2 The following is not Valid Jon - 1 Jon - 2 Bob - 1 Jon - 1 So I basically need to know how I can enable the above constraint. Any help is much appreciated Jon ...Show All

  • SQL Server Report Viewer Output pdf to shared file folder

    Hello, I've developed an application in Visual Web Developer 2005 Express using a sqlserver 2005 express database. The application accepts user input via a number of wizard steps and in the final step renders a report of the final output in the report viewer control within the application. Is there a way to have the rendered document automatically saved to a fixed shared directory (in pdf format) without the user needing to export it manually Thanks there is a render control to get the report in three formats 1. Image 2. Excel 3. Pdf I hope this command helpful for u dim getbyte() as byte=rptviewer.LocalReport.Render("Pdf",Nothing,Nothing,Nothing,Nothing,Nothing,Nothing ...Show All

  • Software Development for Windows Vista Black Screen / Freeze after first reboot

    I have spent many hours the past week trying (unsucessfully) to install Windows Vista. I have downloaded and installed all the most recent drivers and BIOS updates for all of my hardware. I have run the Vista Upgrade Advisor and it says that my system should be good to go and that there are no serious issues. The only item on the "Task List" is to download Vista drivers for a wireless networking adapter I have in the system to be installed after. I have tried to do an upgrade from Windows XP and a Full Install of Vista with the same results. I start the install and everything goes smoothly (installer unpacking files and getting ready for installation) until right after the first reboot. The system restarts and tries to boot in ...Show All

  • SQL Server How to work out the difference of two numbers in SQL table.

    Hi I have 2 columns the first column is a counter thats always counting up like a meter, the second column is a formula that calculate the difference between the counter(column one). like Counter Difference 1 1 3 2 6 3 9 3 11 2 13 2 17 4 25 8 The first row is taken as it is, but the second row will be difference = 3-1 the third one will be 3-6 and so on. How can I do this in a SQL table or any other away Your help will be highly appreciated. I understand what you are trying to achieve, but it would be most helpful if you told us how the user is going to insert the number in the counter r ...Show All

  • Windows Forms Threading

    Hi all, I have a Client Server Chat application in which i have created a server application that accepts messages and then sends back to the users. The client application is a thread that starts and connects to the server A list of connected clients is maintained in the db and is visible to all the clients. Now when the user selects a user from the list and starts a client to send a private message with that user, this message is sent to the server the server sends this message to the another user and a the client receives this message, Now when this message is received the client starts a new client window, The problem is this window is created but the controls on this window is not displayed. Any ideas will be ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. So... What is XNA then?

    So XNA then is the next step of the DirectX API for .NET languages (previously called Managed DirectX), is just a new technology completely different that will be shiped in a separate way of DirectX or is the real way in which DirectX 10 will move, adding an "unmanaged" API for the past contents using Directx 8 and 9 The ZMan, do you have a Z of ZuperZMan on your alter ego's suit THANK YOU A LOT for this answer. It is precisely what I was asking for! Because not only I was worried about the architecture used for developing XNA around DirecX, the fact is that we will have to distribute XNA games! And I worried that if I program under XNA then I will have to give not one, but three packs of runtimes/APIs so that my game wor ...Show All

©2008 Software Development Network