ocanon's Q&A profile
.NET Development Process.start not behaving as expected
This bit of code produces a blank message box : Dim MyProcess As New Process Dim startInfo As New ProcessStartInfo( "notepad.exe" ) MyProcess = Process.Start(startInfo) MsgBox(MyProcess.MainWindowTitle.ToString) Any sebsequent attempt to access any MyProcess property comes up with nothing. This produces a message box with the expected text: Dim MyProcess As New Process Dim startInfo As New ProcessStartInfo( "notepad.exe" ) MyProcess = Process.Start(startInfo) While MyProcess.MainWindowTitle.ToString = "" MyProcess.Refresh() Threading ...Show All
Visual Studio 2008 (Pre-release) Selection problem in ListBox
I have a ListBox that is binded to a list of data. Sometimes, there is duplicate data that cause a behavior that i'm not sure is normal. Even if the ListBox is at selection mode single, clicking on a duplicate item, cause the other to be selected. Is it a normal behavior This behavior occur if you have the same data object in the data list that is bound to a item source of a ListBox Thank you Husk60 wrote: I have a ListBox that is binded to a list of data. Sometimes, there is duplicate data that cause a behavior that i'm not sure is normal. Even if the ListBox is at selection mode sing ...Show All
SQL Server server is not a subscriber (SQL2005)
Just setup 2 boxes w/ SQL Server 2005 (Developer Ed) (SP1) Server A: Tablet PC running XP (publisher/distributor) Server B: running Win2K (subscriber) Setup replication and recv'd error: 'server B is not a subscriber'. This error is very vague and does not offer any direction to look for a solution. unable to locate help on a solution from online books. thx. for your review and input to this issue..bt Can you provide more information on how do you setup replication What steps you performed and on which step you observe the error Are you using Management Studio UI to setup replication or ju ...Show All
Visual Studio 2008 (Pre-release) dragging control will immediately crash visual studio
Problem repro: create a new windows application fx project, create button on the grid, drag it to another location. After about 0.5 seconds visual studio throws an error and asks me if I want to debug. If i choose yes, I can get to this call stack: > ntdll.dll!7c901230() [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] milcore.dll!53216a95() milcore.dll!5316ba53() milcore.dll!530d9318() milcore.dll!530d5b1b() milcore.dll!530d5b38() milcore.dll!530d93c2() milcore.dll!530d9204() milcore.dll!530d9464() milcore.dll!530d94b3() milcore.dll!530d57be() milcore.dll!530d57c8() milcore.dl ...Show All
SQL Server SQL server 2005 management studio
I just installed VS 2005 along with sql server 2005 cpt. No errors & VS works fine, but I cannot find the management studio. I have used Add/Remove to check for the possibility that I could add management studio -- no luck. Did a file search for sqlwb.exe -- again no luck. When viewing list of installed programs with Add/Remove I do not see an entry for sql 2005 tools. Should there be Any help would be much appreciated -- TIA. I'm having similar problems with finding the 'sqlwb.exe' file. I have removed VS and SQL Server 2005 already, but I was wondering how you cleaned up the registry ...Show All
Visual Studio 2008 (Pre-release) WS Compression
Hello! As you already know in real life distributed app must use sometimes slow internet connections (~128k). The XML messages tend to be large. When using ASMX 1.1 (and WSE 2.0 SP 1/2/3) we were able to apply a SOAP GZIP Filter that enable compression both on server and client. This option was in many cases ( almost every case ) the only option that we had in order to make Web Services working at an acceptable level. And, no less important, transparent to users and developers (and is working on IIS < 6.0). My question is if in Indigo (or WSE 3.0 or ASMX 2.0) is still possible to work in this way (or maybee is something better a ...Show All
Windows Forms Resizing a control problem in design mode
I have created a UserControl and a designer for it and I am having problems with the adornments drawing incorrectly when resizing the control in design mode. When resizing the control, the adornments are drawn to the original control bounds and not to the resized control bounds. If I select something else, and reselect the control, the adornments draw correctly. Here is how I am declaring the UserControl: [ Designer ( typeof ( UserControl1Designer ))] public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } } Here is the designer code: class UserControl1Designer ...Show All
.NET Development Generic's - Collections
Hi all, I aint too cluded up on Generics yet, but let me give you a run down on my problem so that you can advise me if Generics is the way for me to go. OK - I have a a couple of collection classes that inherit from CollectionBase. These collection classes all have the same property members that I have overriden,, such as Add, Remove (Overloaded), this, etc etc. I may be going down the wrong route with Generic's here, but could I have one Collection Class with these Property Methods that holds generic Types, and then do some running conversion to the appropriate types Am I going down the right path with this Tryst The idea behind ...Show All
SQL Server The Xml field in SQL database is so slow!
I feel when I operate XML field, it's so slow! no matter insert or delete e a record. how about you Please describe some details about your application from data schema and access pattern perspective. What’s the schema of your data What do you store in one XML instance How do you store folder hierarchy What kind of DB transaction folder operations or bookmark operations translate into What performance do you observe and expect Thank you and best regards, Eugene Kogan Technical Lead SQL Server Engine ...Show All
.NET Development Web service that calls methods from imported dll doesn't work on IIS but it woks on development environment.
I have web service that imports "xx.dll" written in c++. This "xx.dll" make a connect to the MapPoint activex and return some data from MapPoint. Everything works fine in development environment, but when I deploy to IIS, then I'm getting "External component has thrown an exception". I did a trace in "xx.dll" and I find out that everything stops on call "MapPointApp->Connect()". I think it could be problem with permissions in IIS, but I don't know what Thanks, Miran You have to check what are the permissions required in order to make a call ...Show All
Visual Studio Landscape print quality poor
I'm using Local processing mode on a Winforms app, and have a report that I'm printing in landscape (width 11in, height 8.5in). I am printing this report using the ReportViewer (not printing directly to the printer in code). When the report shows up in ReportViewer, it looks fine. If I adjust the report to print in portrait (set in the rdlc), and print the report, the fonts look fine. However, when I print this report in landscape (set in the rdlc), the font rendering is poor, w/ jagged edges on the fonts. I've reduced the report just down to a simple header w/ no other content and tried different fonts, sizes, and margins, but the quality i ...Show All
Windows Forms restricting Data Grid navigation
Hi I have a datagrid with two columns. The left column has been setup to be readonly. Is there a way to stop the user from tabbing into it Is there a tabstop option for a DataColumn or does anyone know a devilishly wicked way of doing it Matt You should check out: http://www.syncfusion.com/FAQ/WinForms You'll want to do so ...Show All
Windows Forms email attachment readonly
Not sure of the best forum for this but... I am using VS2005, coding in VB.net, and developing a WIndows application. My program gives the user the ability to send email, via Outlook, to clients. The email has an attachment which is the contents of the app's form, set into HTML tags. I temporarily save the HTML-and-data to a file and then attach that file to the email. Two questions: 1) When I send this to myself I open the attachment with IE and the attachment looks fine. That is, it is correctly structured and readable. But when a teammate opens an email from the same program, also with IE, he sees the HTML tags, and the data i ...Show All
Visual C# accessing variable of one window form to another
Hi, 1. I have defind one variable with some value to one window form and I want to access this variable to variable in another window form. 2. I have defined one dataset (bound with some database) into one function defined into one form. I want this dataset should be accessible with bound data from any point of the application (may be another form). Please assist me. Thank you First of all, the first form should know the instance of the form that contains the dataset, so when creating the form, you put it somewhere accessible in the first form. namespace WindowsApplication1 { public ...Show All
Visual Studio Team System Team Build with unsafe code problem
My project has some unsafe code exist that I already marked project "Allow unsafe code" option. SO I can build it from my machine But It cannot build in Team Build Server....the following is error message ThemeManager.cs(457,33): error CS0227: Unsafe code may only appear if compiling with /unsafe Please help Is the configuration being built in VS and by Team Build same The "Allow unsafe code" is per configuration setting and you need to ensure that it is set for all the configurations that Team Build is building. Thanks, Gautam ...Show All
