Gokuldas's Q&A profile
Visual Basic Grouped Eventhandling
Hi everybody, I have a groupbox in a form. In the groupbox are some radiobuttons. I need a methode to be excuted every time one of the rediobuttons is cklicked. Sounds easy so far. But I don't wan't to write for every radiobutton a onClick sub. So I tried to handle a groupbox event so that I can look which radiobutton was clicked but it didn't realy work. Private Sub setBookmark(ByVal gbSelectedas As GroupBox) For Each item As RadioButton In gbSelectedas.Controls If item.Checked Then ...Show All
Software Development for Windows Vista windows workflow - supend activity
Had few queries in windows workflow foundation 1) how do I pend or suspend an activity inthe workflow 2) Is it possible to supend the activity in the workflow until an external data is recieved. If yes how can this be done 3) how do I set the data source for the activity in the workflow. thank you Basically you can use a listen activity with two branches. One branch can contain an eventsink activity (as Paul mentioned) to receive an external event into the workflow and another can contain a delay activity that's initialized to your timeout interval. The Expense Reporting Sample demonstrates how to do ...Show All
Visual Basic DrawRectangle method creates oversize rectangle
Why does the DrawRectangle method generate rectangles that are 1 pixel too big I'm unsure if this is a bug (which it certainly looks like) but if you draw a rectangle and use the FillRectangle method, it fills correctly, but when you draw it using the DrawRectangle method, it's one pixel out. I know the obvious solution is to reduce the size of the rectangle by 1, but it's most annoying, especially if you use the Rectangle.Inflate method to draw a border around a filled rectangle in a minimal code approach, it doesn't draw correctly. For Example: Private Sub Form1_Paint( ByVal sender As Object , ByVal e As System.Windows ...Show All
SQL Server Formatting Date/Time
What do I have to use to Format my date/time fiels so that they will not include the both the date and the time I imported the db's and reports from access and anything date/time shows both. The VBA functions I know are powerless to fix this. So: Format(fields!DateField, 'hh:mm') Format(fields!DateField, 'ddmmyyy') What are the equivalents Yes, I read the manual. Still not obvious to me. - Thanks in advance. Format is the VB.NET Format function (see e.g. http://msdn2.microsoft.com/en-us/library/59bz1f0h(vs.80).aspx ). The following expression should work for you (note: you have to use double quotes not single quotes for the format s ...Show All
Windows Forms Big Bug Question
I'm trying to determine whether or not my bug has enough energy to grow (because in order to grow from a radius of 16 to 17 it has to move away from it's food source). My question is this. Is the determination of whether or not there is enough energy to grow made before or after a) the bug gets energy from taking a bite& ...Show All
.NET Development .net framework solutions???
Hi guyzzz i always hated .net framework . coz ppl have to install .net framework in their computer before using my .net app but fortunetly i heard about such appz like thininstall which combines only the used functions and methods used in ur project and build the exe that runs at any machine without installing .net framework here is more about this techneque: http://thinstall.com/help/index.html linking_netframework.htm Please if anyone know more about that or has got this program pass it on Thanks ...Show All
Windows Forms New version questions
1. What has changed with the new version 2. Are there any changes to the Object Model 3. Have any new 'tweaks' been implemented, such as abillity attributes 4. Can you give us a little hint *Please* about what we can expect to see in v1.2 Thanks in advance for the info, and thanks again for the great game! Inkog 1. There aren't ...Show All
Visual C++ #pragma unmanaged and _MANAGED macro
We would like to use _MANAGED to determine if the code is compiled as native or managed code. Unfortunately, _MANAGED is always defined when /clr switch is used. #pragma unmanaged does not undef the macro. Is there any way to tell for sure that the code is being compiled as native or managed Thanks, Sean 1) If you compile /CLR --> _MANAGED & _M_CEE will be defined. 2) If you compile /CLR:pure --> _MANAGED & _M_CEE & _M_CEE_PURE will be defined. 3) If you compile /CLR:safe --> _MANAGED & _M_CEE & _M_CEE_PURE & _M_CEE_SAFE will be defined. Hope this helps! Than ...Show All
Windows Forms How to pass a keyboard command to a Child Form
Hello, I have a keyboard command that I am trapping in a main form by setting these properties for the form. this .KeyPreview = true; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this .ChildForm_KeyDown); The part I am stuck on is I know have the commands trapped using protected override bool ProcessDialogKey(Keys keyData) { if (keyData.Equals(Keys.Alt |Keys.A) || keyData.Equals(Keys.Alt |Keys.B)) { MessageBox.Show("Command Caught"); return true ; } else { return base.ProcessDialogKey(keyData);}} However instead of displaying the message "Command Caught". I want to be able to pass the command direc ...Show All
Software Development for Windows Vista IfElse Activity in a While Activity
Is there any reason that I shouldn't be able to drag an IfElse activity into a While activity I'm unable to do so. I'm running Workflow Foundation beta 2. Thank you in advance... While activity can have only one child activity. You can add Ifelse directly to while or add a sequence and then add other activities to that sequence ...Show All
Visual Studio Team System Team Foundation Build Engineer
I am not sure if this is an appropriate post for this forum. If it is not, please suggest the proper forum for me to post it in. We are looking for a Build Engineer who has experience with Team Foundation Build, or one that can learn quickly. This could be a remote project based contract or something permanent in the San Francisco Bay Area. At a minimum, we are looking for a build engineer to setup and automate the build process and automate the nightly deployments of our smart client and WCF services solutions. This would support ~6 developers and QA and include the new smart client click once applications, WCF services and new compan ...Show All
Microsoft ISV Community Center Forums How do I avoid multiple instances of Excel
Hi We're running Office Professional 2003. I've written a quotation system in VBA with an Excel user interface. Each quotation is a separate workbook. The pricing information is also in other workbooks. The application creates its own commandbar that enables users to easily transfer data from the pricing workbooks to the quotation workbooks. All this works fine as long as all the workbooks are under one instance of Excel. However, the quotation system may either be initiated from a workbook or a word document. If the quotation system is already running and a user tries to start it again from Excel then I'm able to detect this, but i ...Show All
SQL Server DTS package Export - from SQL to DBF
Hi all I am using DTS package to export data from SQL Server 2000 to .dbf file. Problem is that FLOAT or NUMERIC (dbase Data Types) are mapped to SQL_DOUBLE (ODBS SQL Data Type) by default. So, When I create DTS package in SQL server and create a dbf table, it converts numeric into double. As a result, when export is done all my integer values appear as double in .dbf file. Can anyone please recommend any solution for this Thanks! Regards Karthikeyan ...Show All
Visual Basic vb6 to vb .net showdialog() exception
Hi.. IM working on a migration from VB6 to .Net. I got the next function (code below) where I get the parameters from Database for the current station. After executing the select I get Y's, enter the if as a true an after executing the showdialog to try to display the Login screen, I get the next error: ex.tostring "System.ArgumentException: Stream was not readable. at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) at System.IO.StreamReader..ctor(Stream stream) at AmesComm.TextIO.GetParameter(String parParameterName, String& parRetCode, String& parRe ...Show All
Microsoft ISV Community Center Forums Custom file description keywords: read/write in VBA via API
In Windows Explorer, I can select a file, go to properties, and under 'summary', I can input keywords into the description, for use later when searching for the file. I would like to be able to read/write these file keywords via VBA. I assume I need to access the Windows API, but more than that, not sure what library etc. I would need to use. Can anyone advise me how do to this best regards, & ...Show All
