MaGeorge's Q&A profile
Visual Studio 2008 (Pre-release) Using Scrollviewer and DragCanvas
I have tried to use the following custom class ( http://blogs.msdn.com/llobo/archive/2006/09/06/Scrolling-Scrollviewer-on-Mouse-Drag-at-the-boundaries.aspx ) to try to get my objects that I have in my DragCanvas ( http://www.codeproject.com/WPF/DraggingElementsInCanvas.asp msg=1653438 ) to scroll when my dragcanvas is not all visible. Do anyone else have a solution for getting this to work <local:DragDropScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled"> <Grid x:Name="MainGrid" Width="Auto"> <local:DragDropScrollViewer Grid.ColumnSpan="1" Grid.Row="2" Grid.RowSpan="1" ScrollViewer.H ...Show All
Visual Studio DocumentEvents.DocumentOpened
I opened the MyMacros project in the Macros IDE, opened the EnvironmentEvents module and looked at the code. The line... <System.ContextStaticAttribute()> Public WithEvents DocumentEvents As EnvDTE.DocumentEvents ...was not present so I added it just after the Module declaration as I had seen in the Sample macros. Next I used the dropdowns at the top to select the DocumentOpened event and just put the code... MsgBox("test") ... into the sub. Saved, closed the macros IDE then tried opening documents in Visual Studio. Nothing happens - the documents just open as usual and no message box is seen. Putting a breakpoint on the line in the macros IDE it never gets hit. Also even if I pick out the Window ...Show All
Visual Studio Express Editions Troubles!!
I just downloaded Visual Basic. I am trying to open an executable but I get an error message that I have the wrong tools and what not. Please help and guide me on how to open an executable file in Visual Basic. Thanks in Advance. you could also use a .NET Reflector to reflect the assembly (.NET developed assembly) and view the code. Search for Lutz Roeder's . NET Reflector ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian I started programming doing BASIC on an Apple 2e and COBOL and FORTRAN on a mainframe. I then picked up Pascal and C, then C++. I had no problems moving from procedural to event driven when I finally picked up VB3. I can't imagine doing it any other way now. ...Show All
Visual Studio Tools for Office MailMerge.CreateDataSource
Is there anyway to get a Dataset or a DataTable as the source The header in any case would be > 255 characters. Is there another way to have <<variable>> fields populated without using MailMerge TIA Thanks, I got the datasource and the mergefields to connect. The problem is now, how do I update the MergeField with the data in the datatable foreach (Word.Field fld in rng.Fields) { if (fld.Type == Microsoft.Office.Interop.Word.WdFieldType.wdFieldMergeField) { foreach(DataColumn col in this.MyExpenses.Tables[0].Columns) { if (fld.Code.Text.IndexOf(col.ToString()) > -1) { fld.Code.Text = MyExpenses.Tables[0].Rows[0][col].ToString(); ...Show All
Visual Studio Team System Encoding of filles not same on server and local HDD?
Hi, Some new sprocs uploaded into TFS were in different formats so I changed the encoding on ALL the files to Windows-1252. But now, when I read the encoding programmatically, some show as UTF-16 while others show as UTF-8. This obiously results in unexpected characters..in my case spaces between each letter (\0). Does anyone have any idea why this is happening This is giving me problems in the code I'm writing to aggregate all the sprocs into one common file. Here's my code snippet if it helps... I call this code passing the name of each file that has been downloaded. string sEncoding = string.Empty; using (StreamReader sr = new StreamReader(file, true)) { String LineToWrite; while ((LineToWrite = sr.ReadLine( ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting debug information....
How does one setup the XNA express IDE to receive debugging code. InvalidCallExceptions aren't very helpful in tracking down the problem. We don't have the DirectX sdk installed so we can't switch to debug drivers. How can we set this up TIA, lushdog The reason why you don’t see the messages is that messages from the unmanaged DirectX are not shown. The output window shows only messages from the managed part of the code. You can change this in the pro version but I am unsure if this switch is available in the express version. You could use an external Debug Monitor: http://www.sysinternals.com/Utilities/DebugView.html ...Show All
Visual Studio Express Editions CType Trouble
I am trying to make a small amount of code save me from having to manually write everything out. What I have is this so far Dim Box As CheckBox = CType (sender, CheckBox) Dim W As Integer = 1 For W = 1 To W = 7 If CType ( Me .Controls( "rC" & Box.Name.Substring(W)), CheckBox).Checked = True Then CType ( Me .Controls( "rW" & Box.Name.Substring(W)), CheckBox).Checked = False ElseIf CType ( Me .Controls( "rW" & Box.Name.Substring(W)), CheckBox).Checked = True Then CType ( Me .Controls( "rC" & Box.Name.Substring(W)), CheckBox).Checked = False End If Next W I want it to check if rW1 is checked, and if it ...Show All
Windows Forms KeyPress is handled before KeyDown?
I thought that the KeyDown event was handled before the KeyPress event, but it looked like I was wrong. Can someone please confirm that KeyPress is handled before KeyDown By the way, why the Delete key doesn't get trapped in the KeyPress event (it does get trap in KeyUp/Down events though). Thanks. Hi Under the covers KeyDown is analogous to the WM_KEYDOWN message, KeyUp is the WM_KEYUP message. Key Press is a .net event that's fired after the key comes up. The easiest way to figure this out is to over-ride WndProc in your form with a few Debug.WriteLine / Print statements to see what is happening. Something along these lines: protected override void WndProc( ref Message m) ...Show All
Smart Device Development question on ListView, need help
Hi, My ListView control contain a "quantity" column and i need to do the calculation on the total of the "quantity", does ListView control allow me to do it Does anyone know how to write the codes to read the rows which contains the data on ListView control Any recommendation on it This forum is dedicated to device emulator. Since your question is not related to device emulator, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise please post to relevant forum or news group: http://support.microsoft.com/newsgroups/default.aspx ...Show All
SQL Server Group Case Sensitive
It appears that table grouping is case sensitive (for example, Re-Roof versus Re-roof appears to be causing a group break). I can't find a parameter to change this behaviour in Reporting Services. Can anyone verify that it is in fact case sensitive How to change I am running SQL Server 2000 and the database that I am querying is not case sensitive. Just a clarification on what I have found in this case. Since DataRegion/DataSet/Grouing can be used for scoping puproses I thought it would be good to broaden this case sensitivity to include all of these. What I found was the following on how RS compares names (short form 'I' for Case Insensitive and 'S' for Case Sensitive): a) Grouping - S ...Show All
.NET Development Help with data binding
I am working on building a data access website. The database has 12 tables (2001exp, 2001imp, 2002exp, 2002imp, 2003exp, 2003imp, 2004exp, 2004imp, 2005exp, 2005imp, 2006exp, 2006imp). All the tables have same no. of columns and names. (Commodity, Country, Month, Quantity, Value) The webpage has 4 dropdown menus (as shown in the image ) Type [Imp, Exp] Year [2001, 2002, 2003, 2004, 2005, 2006] Month [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] Country [ list of 228] The inputs Type and Year combined tell me which table the data will be retrevied from i.e., if I select imp and 2003, the data will be retrevied from 2003imp . And the inputs month and year will be parameters for Where condition in the Query. I don't k ...Show All
.NET Development problem in client/server application
Hi every one, I developed a client/server application . client connect to server correctly if both are under the same router (in the same Lan) , but the problem arised when the client and the server arenot in the same Lan they cant connect together. I checked the router configration ,it was correctly setup. please if you have expirense in this problem help me. Thanks for reading my message------------ Indian Ocean wrote: Hi, You must have used "RounterIP" as ip as i have suggested, right ! Give this a try, i think this will work for sure, IPAddress ip = IPAddress.Parse("YourServerIP"); //Here its your local server IP (NOT ROUTER IP ...Show All
Visual Studio Express Editions VB 2005 Express Tutorial Files
Howdy, I bought the MSPress Build a Program Now! book for the tutorial, but didn't install Express. In the interim, I found myself installing the complete Visual Studio 2005. I've managed to get through the tutorials until Chapter 6 of the book which refers to files from the CD. I can find no way to get those files installed without installing the Express Edition. So, I did that, but the files did not follow along. How can I get the files I think this should be the samples source http://www.microsoft.com/mspress/companion/0-7356-2213-2/ ...Show All
Visual C# Beginner's question about interfaces
Hi, I have a simple question concerning interfaces. I have a project which declares an interface: ISampleInterface. In this project I have a class which implements said interface: SampleClass : SampleInterface. I have a second project that instantiate SampleClass. My problem is this; ISampleInterface will not let me put a scope modifier before it's methods ( private, public, protected ) and so everything seems to be private in it by default. In SampleClass all of ISampleInterface's methods can't be declared as public or protected, leading to compile time errors if I do. The thing is I want these methods to be public so I can use them in my second project. I am guessing by this problem that I am missing something fundamental about inter ...Show All
