miimura's Q&A profile
Windows Forms Modal dialog turning into modeless
This is the issue: When a parent window is disabled while a modal dialog is being shown, the shown dialog ends up behaving like a modeless dialog on re-enabling the parent window again. Any ideas why this behaviour Sounds like a MS .NET framework bug! The summary is like this: 1. A main form spawns a thread. 2. The thread method displays a modal dialog (by calling ShowDialog() on a Form object (let us call this the "second dialog") 3. This displayed dialog has a button which in turn displays another modal dialog. (Let us call this the "third dialog") Everything works ...Show All
Visual Studio Express Editions Having trouble watching training videos
Hi, I'm trying to watch the training videos on Microsoft's site ( http://msdn.microsoft.com/vstudio/express/vwd/learning/default.aspx ), yet the video will pause while the audio continues. Anyway to get these videos to run smoothly without the video pausing for a minute every once in a while I can still here the audio though. Thanks! Leo I downloaded them and I still get the same problem. For example, on the first video at exactly 15min : 11sec the video pauses and doesn't resume until about 18min : 21sec. I personally dislike .wmv, I wish microsoft would have giving the option of a ...Show All
.NET Development ConfigurationElement.ApplyInstanceAttributes
I'm just wondering: [AttributeUsage(AttributeTargets.Property] public class ConfigurationValidatorAttribute : Attribute {...} ConfigurationElement code snippet: private static void ApplyInstanceAttributes(object instance) { Type type = instance.GetType(); *-----> ConfigurationValidatorAttribute attribute = Attribute.GetCustomAttribute(type, typeof(ConfigurationValidatorAttribute)) as ConfigurationValidatorAttribute; if (attribute != null) { ((Configura ...Show All
Visual Basic Adding fields to the CreateUserWizard
I'm trying to add a textbox to the initial step of the CreatUserWizard. Let's say it is tbMyTextbox. Now when I add an event on created user, I want to get the value in the field. I thought I could use dim mc as textbox mc = ctype(CreateUserWizard1.Findcontrol("tbMyTextbox"),textbox) mc.text should be the text of the field. But it can't find the control... so I tried dim mystep as CreatuserWizardstep mystep = createuserwizard1.activestep mc = ctype(mystep.findcontrol("tbMyTextbox"),textbox) But it also fails. The example just uses tbMyTextbox.text which just throws a compiler error. Anyone have any other ideas. ...Show All
Visual Studio MC++ project warnings when built outside VS but no warnings inside VS
We have a large-ish solution (~33 projects). One of these solutions is a Managed C++ library that builds with 0 warnings inside Visual Studio. However when we run msbuild on the solution file this project generates a bunch of warnings identical to this: v:\src\foo\debug\foo.dll : warning C4945: 'ManagedTypeInfo' : cannot import symbol from 'v:\src\foo\debug\foo.dll': as 'ManagedTypeInfo' has already been imported from another assembly 'foo' Any ideas on what might be different between these two ways of building solutions that would cause these warnings I think I figured this out. In ...Show All
Visual Studio Team System Code Sharing And Shelvesets
I'd like to use shelvesets on our team for code sharing. However, it appears that in order for developer A to share code with developer B via a shelveset, developer A can not retain the pending changes in his/her workspace, assuming multiple checkouts are disabled, because the shelveset unshelves into developer B's workspace as a pending change. Has anybody found a way around this without hijacking files It seems like this *could* optionally work similar to getting an earlier changeset into your workspace. When a developer gets an earlier version, it does not show up as a pending change in the developers workspace. Code sharing do ...Show All
Visual FoxPro Excel Sheet Formatting
Dear Experts I use following method to export data to Excel SELECT master1 COPY to C:\gin_exp.xls type xls FIELDS LIKE C*,D* EXCEPT CREDIT,DR_CR RELEASE ALL LIKE Lo* loExcel = createobject("Excel.Application") loWorkbook = loExcel.workbooks.open('C:\gin_exp.xls') loSheet = loWorkbook.sheets(1) 1) How to make sheet rows height=25 2) How to insert three blank rows at the top of loSheet 3) How to apply following format on loSheet.Range("A7:C10") FontColor = RGB(255,0,0) FontSize = 12 FontBold = .T. DrawBorder= "xlContinuous:xlMedium") Please Help * Line styles #Define xlContinuous ...Show All
Visual C# using information from a method?
well this is my code: public void newpnl() { //newpnl to hold rtf document Panel pnl = new Panel (); pnl.BackColor = Color .White; pnl.Height = 1184; pnl.Width = 832; pnl.Top = pnltop; pnl.Left = 90; pnl.BorderStyle = BorderStyle .FixedSingle; pnlContainer.Controls.Add(pnl); pnltop += 1084; //new rtf document created RichTextBox rtf = new RichTextBox (); rtf.ScrollBars = RichTextBoxScrollBars .None; rtf.Height = 984; rtf.Width = 732; rtf.Top = rtftop; rtf.Left = 50; rtf.Font = new Font ( "Times New Roman" , 12); rtf.BorderStyle = BorderStyle .No ...Show All
Software Development for Windows Vista Workflow becomes idle after CallExternalMethodActivity.
I have a workflow executed from an .aspx page. The workflow looks like this: handleExternalEventActivity1 callExternalMethodActivity1 codeActivity1 (never invoked) handleExternalEventActivity2 I would expect the first three activities to be executed, before the workflow instance become idle on the fourth activity (eventSink). However, the callMethod activity is triggered and it invokes the service method as expected, but then it halts, and does note execute the code activity. My Inderface have one event and one method, and looks like this: [ ExternalDataExchangeAttribute ()] interface IPageFlow { even ...Show All
Visual Studio Express Editions Backgroundworker and my.computer.network.ping
Hello, I am developing a small application that checks a list of ip's to see if they are reachable or not. When they aren't available the icon turns red, otherwise it just stays white. I've decided to use a backgroundworker to check if the pc's are available when there are more then 0 computers in the list. However when the program reaches the my.computer.network.ip("insert adres") event my program freezes until it gets a timeout or a reply. I thought that using a backgroundworker wasn't supposed to effect the winform itself. Does anyone know how I can fix this problem With friendly regards, Gwen Just as I ...Show All
.NET Development How use c# ADO.NET to insert the data in sql2005
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; private string strconn = @"Server=WINXP-SP2\SQLEXPRESS;DataBase=my;Integrated Security = SSPI"; private SqlConnection conn; private SqlCommand cmm; private SqlDataAdapter da; private DataSet ds; conn = new SqlConnection(strconn); cmm = new SqlCommand(); cmm.Connection = conn; cmm.CommandText = "select *from zhaoheng"; cmm.CommandType = CommandType.Text; da = new ...Show All
Windows Forms DataGridView Combobox Column
I Have a simple datagridview bound to a database. One of the columns is a comboxcolumn. When i try to drop down the combobox in any row i get the following error. "Getting the Size property of a cell in a shared row is not allowed." Any idea what causes this error Any solution yet I am using Beta 1 (Feb 2005 CTP). Whe ...Show All
Visual FoxPro Set talk, set deleted in forms
Hi; I am issuing SET TALK OFF and SET DELE ON in my application. Later on, when the user opens up a form, set TALK goes ON and in some cases SET DELE goes OFF. I have used the debugger, and I can't seem to find where exactly this happens, although its at the load event. There is nothing there to turn it on. So - what am I missing Aleniko Hi Aleniko To add to what Dave says (he is dead right of course) you can find a full list of all the commands that are scoped to the Data Session in the SET DATASESSION topic of the help file. There are many more than just TALK and DELETED and you ...Show All
Visual FoxPro shall I purchase Visual Fox Pro 9 ?
Hi there. I have considerable background in Visual dBase Plus which is an OO language with considerable means to create forms, tables and some windows applications but it is hard to do any networking. Thus I am trying to migrate to C#. I do have a Visual Studio .NET 2003 Pro and downloaded Visual C# 2005 Express Edition Beta 2. I have created some forms and added some functionality. Now I need to create tables and I need a table designer which I found to be a part of SQL server. It appears I have downloaded SQL Server but it is not working for some reason and I have to find out why. My question is: shall I just purchase a FoxPro 9 ...Show All
Visual C# #define, #if, #elif, #error, # warning
Hi everyone, I have some doubts about #define, #if, #elif, #error, # warning. Are are any real advantages of using these in C# programming language It doesn't happen often, but there are situations where conditional compilation comes in handy with C#. Just the other day I was writing some code that used ODBC that had to be compilable with .NET 1.0 and .NET 1.1. Since ODBC moved from the Microsoft.Data.Odbc to the System.Data.Odbc namespace between those two versions, I used #if to include the correct namespace in each file that used ODBC. I have another program where there are several debug switches that can be turned on/off that we ...Show All
