arkiboys's Q&A profile
Visual Basic Creating Group box in Run Time and associating option buttons to it
I want to Create 2 group box control in run time and associate 2 option button each in the two group box. How do I do . Please help You can do this as Dim gr1 As New GroupBox with gr1 .nage = "GrpBox1" .Top = 10 .Left = 16 .Width = 24 .Height = 16 .Visible = True end with Form1.Controls.Add(gr1) now create the redio button as like the group box. and use the code as below to add the redio button to the group box gr1.controls.add(rediobutton1) and you can add the event handler as fallows AddHandler <event name, AddressOf <function name> ...Show All
Visual C# How to Change the Security settings of IE programatically
Hi All, I want to change the security level of the Internet Explorer for Internet Zone to medium.By default its value is high for Windows Server 2003. I want to do it through my C#.net application. How this can be done Thanks, Nupur Hi, Yes it is solved. I was able to modified the CurrentLevel value in the HKEY_CURRENT_USER\software\microsoft\windows\internet settings\zones\3 using the RegistryKey class. Thanks, Nupur ...Show All
Windows Forms In Splitcontainer, what are the panel specific methods?
I need to automate few actions on SplitContainer, for that I need to know wether UI actions are taking place in first panel or second etc. So are there any panel specific methods in Spliatcontainer A panel cannot receive the focus, only the controls that are hosted on the panel. You could write a GotFocus event handler for those controls to keep track of which panel was last active. Rather than doing that for each individual control, here's code that does it for any control: public partial class Form1 : Form { private Panel activePanel; private void hookPanelControls(Control.ControlCollection ctls, EventHandler dlg) { foreach (Control ctl in ctls) { ctl.GotFocus += dlg; if (ctl.Controls.Co ...Show All
Windows Forms Combo box problem
hi im having a little problem with combobox control the problem is that when i show another form on the dropdown event of combobox then the combobox dosent remains drop down... but when i show a dialog (.showdialog) the combobox remains drop down even after the dialog box is closed...... is there any way i can close the drop down of combobox without clicking it.....on some event of my dialog box thanks in advance You should close the form on any of this form events: Deactivate, Leave and also good on Escape key down. Not to mention on selected item with click, double click, select end pressed enter key. ...Show All
Visual C# ToolBoxBitmap not showing for custom control
Hi, I have created a custom control called IFrame. When i complie i get the famous blue defualt gear icon on the toolbox. I then created a new project and added the DLL and i got the control to show up and of course with the default blue bitmap. Now the fun begins: I then went back to the my DLL project and i have tryed all the following permutations and i can't get the bitmap to show up. O yeah, i created a Bitmap called IFrame.bmp thru the VS 2005 IDE and made it 16x16 with 16 colors. Also made it embeded as well. Tryed: [ ToolboxBitmap ( typeof ( IFrame ), "IFrame.bmp" )] [ ToolboxBitmap ( typeof ( IFrame ), "IFrame" )] [ ToolboxBitmap ( typeof (MyNamespace. IFrame ), "IFrame.bmp" ...Show All
Visual Basic VB Output Box
I am a beginner to VB.Net, I am in my first intro class about it, and I have a question: I'm having to do a project on business travel expenses. The guidelines are as follows: Write a program to generate a business travel expense attachment for an income-tax return. The program should request as input the name of the organization visited, the date and location of the visit, and the expenses for meals and entertainment, airplane fare, lodging, and taxi fares. (Only 50% of the expenses for meals and entertainment are deductible.) The output is displayed in a list box that becomes visible when the button is clicked. Sub procedures should be used for the input and output. The whole output box is to look like this: Business Travel Ex ...Show All
Visual C++ C++ in visual
I have just started using visual and my codes don't work. DO i have to change some setting or what's wrong. #include <iostream.h> main() { int a; int b = 20; int c = A + B; cout << "ENTER A VALUE FOR 'A' : "; cin >> a; cout << "Here is the ANSWER when u add 20 to ur varible: " << c ; return 0; } I got an error again 1>------ Build started: Project: code, Configuration: Debug Win32 ------ 1>Compiling... 1>code.cpp 1>c:\documents and settings\gagandeep\desktop\visual codes\code\code\code.cpp(24) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget ...Show All
Visual Basic Disabling sort function in Datagridview
Hi Is it possible to disable the "sort function" in datagridview that happens when pressing the header I would like display some data that you cant order by clicking on the columheader. Can you lock the headers somehow i dont want any column to get sorted . But I am desktop application user and i don't get any such property in datagridview. If u can please help me. ...Show All
SQL Server Matrix Report Textbox Expression
=IIF( Sum(Fields!Percentile.Value, "RegionalSnaps") >= .10, "Yellow", "White") I only want the ones above 10% to be yellow, otherwise white. Any ideas anyone on why the entire range of cells are yellow and not just the one above 10% Ive tried both .10 and 10 for the value, and still the same thing Because you're doing a sum, it's doing it for the entire dataset. If this expression is in a grouping e.g. table, matrix, list etc... then try changing the expresison to =IIF( Fields!Percentile.Value >= .10, "Yellow", "White") Effectively evalueated for every row in the group. ...Show All
Visual C# running code step by step
Hello, I'm using the compiler interface to run code (using the CompileAssemblyFromSource of the code provider, and after it the CreateInstance method of the activator) Is there a way to run code step by step Thanks, There have been several MSDN (and MSDN Magazine) articles on it. Also Mike Stall's blog covers it ( http://blogs.msdn.com/jmstall/archive/2005/09/15/icordebug-mta-sta.aspx ) Michael Taylor - 10/23/06 ...Show All
SQL Server Running code in report (nationalizing reports)
Is there a way for me to include code in a report that run independently of any control expression I want to nationalize the text in various text boxes: First Name: John Doe or Fornamn: John Doe Currently, my client are using CR, and name the text boxes in a special way so when the report "starts", they iterate over the controls on the form and call a DLL file to set the Value of the control based on language of the user (a parameter to the report). I understand that I can have expressions for each of these controls that calls embedded code or a custom assembly, but I have to write that expression *for each control*. I'd rather iterate over all controls and set the value centrally. Another options would be to dr ...Show All
Visual C++ System.DateTime to c++ DATE structure conversion?
can someone help me how to convert the System.DateTime to unmanaged DATE structure in c++ The only DATE that I know in Visual C++ is a typedef double, not a struct. To convert to that DATE just use the ToOADate of the DateTime struct: DATE d = dateTime.ToOADate(); ...Show All
.NET Development Receiving Data From PDA and Read its data error.. pls help
I am currently creating a project for which my PDA will send its mouse event over to the remote PC and the program at the remote PC will read its data. but i am currently get a "ArgumentException was unhandled" : "Argument Length must be greater or equal to zero" in the function Private Sub SerialPort1_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived txtreceive.Invoke( New myDelegate( AddressOf updateTextBox), New Object () {}) End Sub my full program belows: Public Sub updateTextBox() txtreceive.Text = "" With txtreceive .AppendText(SerialPort1.ReadExisting) ' & vbCrLf) ...Show All
Visual Studio Team System I need to extract Team Test Load Agent from VS2005 Team Edition
I want to use MSTest on remote machines. But I could not find Team Test Load Agent in *.msi file ( or in one or few executable files). The final goal is testing our products on remote "clean" machines only with our product and needed MSTest environment installed. When I'm trying to download it I see only the link to VS2005 Team Edition. Any way, the problem exist and I need to get executable file(s) with minimal required environment to run mstest.exe. Note: My company has MSDN Subscription and recieve all crresponding disks in time. Sergio, Load Agent is not included with MSDN subscriptions or any version of VS 2005. It must be purchased separately. Keep in mind that we ...Show All
.NET Development Installation of .Net 2.0 Caused Business Contact Mgr Error
I needed to install Microsoft .Net Framework 2.0 in order to install the Microsoft Web Expressions. (per Microsoft's instructions) After the installation, my pc constantly would have a message appear saying "Business Contact Manager has encountered a problem and needs to close". This message appears even without any program opened. If I open Outlook 2003, I can't do anything except see this message. I uninstalled .Net Framework 2.0 and my pc is back to normal but I want to begin working with Web Expressions. Any suggestions would be greatly appreciated!! Can you provide how you obtained .NET Framework 2.0 Can you look at the %temp%\dd*log and see if there are any errors in those logs ...Show All
