Software Development Network Logo
  • SQL Server
  • Visual C#
  • Visual C++
  • Visual FoxPro
  • IE Development
  • Smart Devicet
  • VS Team System
  • Audio and Video
  • Game Technologies
  • SharePoint Products
  • Microsoft ISV
  • Windows Vista
  • .NET Development
  • Visual Basic
  • Windows Forms

Software Development Network >> nglow's Q&A profile

nglow

Member List

CJW99
MagedSalah
Slawek Dobrzanski
Comanche
Randal Greene
ShylaN
sk3636
imj
CodieMorgan
StevenR2
ladydee
Mike Hildner
taumuon
webrift
XIAIX
Mostafa Ragab
DLdfrd
Sixon
Monish Nagisetty
boldeagle
Only Title

nglow's Q&A profile

  • Visual C# How to use AddEventHandler?

    Hi I am trying to use reflection to bind the same event handler to different events. I can't figure out why I can bind the eventhandler with += but not with reflection AddEventHandler - see the example below. Does anyone have a clue as to what am doing wrong Rgds Bertrand class form1 : form { public void myEventHandler( object o, EventArgs e) { /*...*/ } public void button1_click(...) { /* The following works: */ this.FormClosing += myEventHandler; /* Why does the following not work */ Type objectType = Type .GetType( "myNameSpace.Form1" ); EventInfo objectEventInfo = objectType.GetEvent( "FormClosing" ); Type objectEventHandlerType = objectEventInfo.EventH ...Show All

  • Visual C++ Why does compiling with Unicode cause buttons to look different than with Multibyte or none??

    I want my application that was build with Visual Studio 6.0 to look the way it does when I compile with the Unicode Project Property option using Visual Studio .net 2005. But, if I compile with the Unicode option, I have to change the way I use strings throughout my application. Is there some way to get the newer visual effect (ie. buttons with rounded corners, radio buttons change with mouse-over) without having to make extensive code changes Unicode doesn't have anything to do with visual styles. Make sure you have the following before you show your first form: // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault( fa ...Show All

  • Visual C++ VC++ won't run from source control: "The system cannot execute the specified program"

    Hi, I've installed VS 2005 C++ Express into source control and it won't work. I've wasted the better part of a day so far trying to get it to work. The error message I get when trying to run something as simple as lib.exe is: "The system cannot execute the specified program." When I load up the .exe in the dependency walker (depends.exe), it says: Error: The Side-by-Side configuration information in "y:\compilers\Microsoft Visual Studio 8\VC\bin\LIB.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001) . The only dependency shown for LIB.EXE other than KERNEL32.DLL is MSVCR80.DLL. I've tried copying all t ...Show All

  • .NET Development attached mdf Vs 'regular' SQL

    Hi I just spent most of 2 days attempting to write to a simple table in an attached mdf file, using VB.NET 2005 on a Win3kR2 server going against SQL'05. The code would perform just fine, even throwing exceptions, when I broke validations, but no data was saved in the database. The same happend when I tried to use an attached SQL CE 3.1 database. When I changed the connection to a 'regular' SQL database, the exact same code worked, just like before, and the data was written out as well. What (*&*(* is the cause David L. Hi, It's probably not that the code does not save in the database files, but rather that VS overwrites the db files at every compile. In the solution explorer, ...Show All

  • SQL Server degenerate dimension and partitioning

    I needed to provide drill down to some granular attributes, so I setup a degenerate dimension with several attributes like serial_number, etc. Doing so has somewhat understandably caused my processing time to increase from 2 minutes to 45 minutes for my sample set of data. To handle this increased processing time, I'm attempting to use partitioning. Now, the trouble I'm running into is how do I process the degenerate dimension in step with the partitions. I am getting errors from the process that boil down to fact_key does not exist in the degenerate dimension so the fact can not be joined to the fact dimension table. How do I process a degenerate dimension in step with my partitions. Does that make sense Keehan The same qu ...Show All

  • .NET Development Joining Strings together in a colum from a text file to one row

    Hi I am trying to join the following data in a text file to a single row of data in the same textfile.. 1, -1, -0.683080822441113, 1, -1, 0.683080822441114, 1, The code I am using is: thefront=DecisionsWarrior.getDecisionsWarrior(myMeanArray,arCovar,nports,target,bounds); // FileStream fs = new FileStream(@"C:\Warrior\DecisionOutputs\Outputs.txt",FileMode.Append,FileAccess.Write); using (StreamWriter sw = new StreamWriter(fs)) try { double [] Positions = new double [GlobalCcys.CurrencyPairsData.Length]; Positions = ( double [])thefront[2]; foreach ( double dline in Positions) { sw.WriteLine(dline.ToString()+","); sw.Flush(); } sw.Close(); fs.Close(); ...Show All

  • Visual Studio VS .NET 2003 debug broken with windows XP SP2/VS2005

    I have recently installed windows XP service pack 2 and a trial demo of VS2005/VSTS on my PC. Now I can't debug in VS .NET 2003. I get:- "Access denied. Verify that you are an administrator or a member of the 'Debugger Users' group on the machine you are trying to debug. After being added to the 'Debugger Users' group, you must log off and log back on for the setting to apply". My MDM isn't running and when I try and start it I get:- "The Machine Debug Manager on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." I have looked through all microsoft articles I can find and tried everthing they sugge ...Show All

  • Visual Studio Team System Team System with other platforms like Flash or VB6

    Hi, I have many projects in different languages and I would like to know if I can use VSTS as a management tool, assign tasks, follow bugs, etc if the main product is not build under Visual Studio .NET (for example VB6). Any ideas or suggestions Is it worth to use it or will be too heavy Thanks Ariel Ariel, The short answer is "Yes". You can install and use Team Explorer with or without having the VS.Net IDE installed. The functionality offered by TFS will work for you. You can also integrate the version control features of TFS into the VB6 IDE and any other IDE that supports the MSSCCI provider model. As to your question about it being "too heavy", that is dependent on ...Show All

  • Smart Device Development TextureBrush with Transparent Image

    Hello, I'm trying to use a TextureBrush in .Net Compact Framework 2.0 but, it does'nt seem to work. in a simple testapp i have a form with a button and a panel. the panel1_Paint - method looks like the following private void panel1_Paint( object sender, PaintEventArgs e) { e.Graphics.Clear( Color .Green); ImageAttributes attr = new ImageAttributes (); attr.SetColorKey( Color .White, Color .White); TextureBrush b = new TextureBrush (Properties. Resources .raster_eingetroffen); Rectangle destRect = new Rectangle (50, 50, 11, 11); e.Graphics.DrawImage(Properties. Resources .raster_eingetroffen, destRect, 0, 0, 11, 11, GraphicsUnit .Pixel, attr); e.Graphics.FillEllipse(b, 0, 0, 50, 50); ...Show All

  • Windows Forms Datagridview - Keypress

    In the keypress event of the datagrid I would like to make sure that the only numerics 0 to 9 are entered,for column 3 only. Can anyone show me how to do this, thanks in advance. I am using VS 2005 c# The above solution is awsome and it helped me in my application. But i prefered to use it the following way: private void Numeric_KeyPress(object sender, KeyPressEventArgs e) { string str = "\b0123456789"; e.Handled = !(str.Contains(e.KeyChar.ToString())); } private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if ((dataGridView1.CurrentCell.ColumnIndex) == 0) { e.Control.KeyPress += new ...Show All

  • Visual C# How to raise an event

    I have two forms form1 and form2, when i click a button in form2 I want form1 to do something only if a button in form2 is clicked....How do i set up basics for an event to take place in this manner any help... No event is needed in what you are trying to achieve. Create some public property or function on the form which has to work. On the other form's constructor, pass the reference of first form so it can call that function or property. Handle the Click event of the button on this form and call the othe form's function like this: mainForm.DoWork(); Cheers ;-) ...Show All

  • Microsoft ISV Community Center Forums ScreenUpdating

    hi all, I am nearly done writing an application (in vb.net) that uses interop for Microsoft Powerpoint, and the problem is that when I write to the slide, I don't want the user to see those updates. I know in vba, one would write 'Application.ScreenUpdating = false', however screenupdating is not found under the application. I have searched fruitlessly through other articles for a simple solution, but they seem to be geared towards excel. Can anyone help me Thanks in advance   Myron Would minimising the Active Window achieve what you want to do for the time being Application. ActiveWindow .WindowState = ppWindowMinimized ChasAA ...Show All

  • Visual Studio javascript intellisense on standalone *.js file

    How can I get Intellisense to work in Visual Studio 2005 on a standalone *.js file (i.e. not contained within a <script> tag inside an .html file). I simply need basic intellisense for things like document. and window. (for example) but I can't seem to find whatever the extension is required to work. Any help would be appreciated. Thanks, Freddy I was afraid of that. What does MS say about this I mean, it's such an obvious one (esp. now in light of all the attention that's being lavished on JSand Ajax!). Alternatively, is there a way that you know of to "Fake" VS into understanding standalone .js files (I ask because I had read a while back that one could modify .tlb file ...Show All

  • Software Development for Windows Vista XPS on PocketPC

    Does anybody know resources for using XPS on PocketPC or Smartphones Most wanted: Creating XPS Files on PocketPC or Smartphone. Viewing XPS files on Windows Mobile Devices Is it possible Thanks Mike Buehler Buehler ...Show All

  • Visual Studio Team System BUG: user with dynamic username re-created on incremental updates

    I have a user, which's Name is dynamic (ie create user [$(ServiceOwner) WITHOUT LOGIN...) as a managed schema-object. This user is referenced to in other managed schema-objects (like a RSB and also in the CREATE SERVICE statement). Upon first build-up of the DB, everything is ok, but any following builds cause errors that the user already exists. the DBPROJ seems to not detect the already existing user on the target database. I moved the CREATE USER script to post-deploy, but now I cannot build anymore because of the other dependant schema objects... any ideas I am using the RTM version from MSDN. Another anomaly I am encountering regards this is that VS creates a login with exactly the name of the username-variable in ...Show All

©2008 Software Development Network