Software Development Network Logo
  • Microsoft ISV
  • Game Technologies
  • Windows Live
  • VS Team System
  • Visual C#
  • Visual J#
  • Smart Device
  • Architecture
  • Visual Studio
  • Windows Forms
  • SQL Server
  • .NET Development
  • Visual FoxPro
  • Visual Basic
  • Visual C++

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

Anirbanc

Member List

Jeff Johnson
Patrick C
JT Thompson
BettyS
Ryan Bolger
Brabstah
rjbudz
sven123
RogMauri
KillerBoy
kje
Danny P
torchred
JVE_WA
e-an
GJB
jhayann
H Magnusson
Dmitriy Vasyura
ShaaaM
Only Title

Anirbanc's Q&A profile

  • Windows Forms Merge Menu Nightmare

    MergeMenu behaves strangely - the documentation is extremely skimp, behaviors are unexpected, MergeType - add, remove, replace, mergeItems are extremely confusing. Question: Does anyone have their own methods for doing this   I have my own merge menu routine, but its tough to remove the menu items when the mdi child is closed. Anyone interested in an open source project&n ...Show All

  • Visual Basic inheritance template missing in vb.net 2005 express

    I'm trying to experiment with form inheritance and created a base form with a couple of buttons.  I save and build this base form as a dll.  Then I try to add another form which inherits the base form, but the project menu has no items to allow me to add an inherited form.  I've also tried adding a reference to the project first, but it still doesn't work.  What is wrong Actually, rather than add a class I simply added a windows form and changed the boiler plate code "inherits" statement and everything worked.  I've been working with VB.NET 2003 and wasn't cognizant of the separate ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem in debugging MC2Dbg.exe

    While debuging the MC2Dbg.exe there exist the following error please tell me where should i keep this dll to remove the error STOP : Could not find 'mc2res.dll' Address : 0x006374D8 Location : MC2DBG! (+0x2364D8) Thanks in advance Meenal Check that the working directory for the debug configuration is correctly set to the FinalBuild folder., and that you've done a build of the source tree. ...Show All

  • Windows Forms Method to set datagridview row background color

    Hi all, I had a datagridview. May I know how to set the particular row color of a datagridview to yellow Please help. Thanks Yes you can do this by using the following code snippet int RowIndex = 0; this .dataGridView1.Rows[ RowIndex ].DefaultCellStyle.BackColor = Color .Yellow; ...Show All

  • Visual Studio 2008 (Pre-release) XAML, RenderTargetBitmap - picture disappears from image after load testing

    I'm developing a simple ASP.NET handler that returns image that is rendered using XAML on server side. The problem that after stress testing picture disappears from returned image (but empty image is still returned). The picture here is XAML canvas (I put it to the bottom of the message) with different shapes and glyphs (rectangles with gradient fill, lines and text with digits). I tested on Windows 2003 (two processors, four processors), IIS 6.0, .NET 2.0, WinFX RC (February CTP), emulated 250 concurrent users. I have the following code: public MemoryStream CreateImageStream(String xaml) { object obj = System.Windows.Mar ...Show All

  • .NET Development OCX control, corrupted memory?

    Hi, I have the following scenario: I have a MainApplication (MainApp) I'm writing a dll (MyDll) which is referenced by MainApp, dll runs in thread "Runner" I have a set of ocx controls (MyControls) which I need to run in MyDll So, what's going on is that MyControls need to run in an STA thread and to receive events responses they need a running message loop. Therefore, in order receive the event responses, I have to host MyControls in a form (MyForm) which is launched from MyClass in thread "Runner". In MyClass I subscribe to the events from MyControl hosted in MyForm. Next, in MyClass I call a method from one of the MyControls which s ...Show All

  • Windows Forms How can I have a global variable common to all forms?

    I have few form classes, A B C D E, etc, one may call another then and there. The MDI form may instantiate child forms at will. I wanted to have few global variables across all forms and classes. How can I have a global variable common to all forms Again, Visual C++ 2003 example would help me a lot. Thanks, Jil. I think it is public: static in Visual c++ 2003! I am seeing public: static String  in msdn. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore98/html/_langref_static.asp Thanks EZanker , Jil. ...Show All

  • Visual C# Changing CheckBox Checked

    I have three checkboxes on a form (Employee, Buyer, Seller) that I would like to show checked if the value of is_employee, is_buyer, and is_seller is "true" in my Account table.  This code is part of a form to search by last name.  Everything works except the checkboxes.  (The MessageBox.Show statements were just to test).  The values of Employee, Buyer and Seller get set to "true" or "false", but the checkboxes remain unchecked.  Thanks for any help! private void lbMatchingAccounts_SelectedIndexChanged( object sender, EventArgs e) {    panel1.Visible = true ;     String SQLStmt ...Show All

  • Visual Basic Print an image

    Hi, I have created a picturebox and drawn some lines in it to build a grid : Dim bit As New Bitmap(570, 400)         Dim g As Graphics = Graphics.FromImage(bit)         Dim i As Integer         g.DrawLine( New Pen(Color.Black, 2), 5, 5, 5, 395)         g.DrawLine( New Pen(Color.Black, 2), 5, 395, 565, 395)         For i = 385 To 5 Step -10             g.DrawLine( New Pen(Color.Gray), 5, i, 565, i) &nbs ...Show All

  • Visual Basic How to display data in table format in windows application?

    Hi everybody,   How would you display data values from a database in a table format in a windows application and which control is appropriate to display them Code belwo shows creating table in html, how could you do this table in windows application Thanks. Note: the html not exactly correct. Code: <htmL> <body>   <table bgcolor="blue" border=2>     <tr>  <td>Place data from database</td>         <td>Place data here</td>     </tr>     <tr>         .... ...Show All

  • Visual C# How to find FIRST non-repeating character in a string using c#

    HI, I am trying to find first non-repeating character in a string. For ex: s s t t b x y r The answer is: b I tried different ways but wanted to know any best solution any one has Thanks, I seem not to have expresso on this machine, but my answer would be a regex, for sure. You can capture each letter and check that it's not the same as the one before or after. ...Show All

  • .NET Development Datasets aren't finalized after leaving the scope

    Hi, we discovered a strange behaviour concerning garbage collection of datasets. Because our application needs a tremendous amount of memory and constantly allocates more and more of it we are counting the instances of our objects in memory. Thus we able to determinate if an object is finalized by the garbage collection. Basically most of our objects contain these code snippets in the "new" and "finalize" methods: Public Sub New ()     MyBase . New ()    TestClass.SharedCounter += 1       'Shared variable of integer End Sub Protected Overrides Sub Fina ...Show All

  • Visual Studio Team System how to reuse my machine?

     I'd try install a team foundation server,it report some error.so install was failed. but I try again ,it said: Setup has detected existing Team Fondation databases on this machine and this operation cannot be continued. Please refer to the accompanying documentation on how to reuse this machine. To cacel setup and perform at a later time click cancel What Can I Do error 32000. The commandline '"C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\sdk\bin\Bisregedit.exe" http:// JUHFH-MGC289X3D :8080/SCC/pulbic/application/ServiceDefinition.aspx JUHFH-MGC289X3D Bi ...Show All

  • Visual Basic Validating Event - Compare Current to Prior value

    Does anyone know the procedure for finding the previous value of a field then running a validation event I want to be able to Compare the Current value to the Prior value. This is on Visual Studio 2005 - Visual Basic. Thanks It is a text box on a form field, populated from a database using the built-in  tableadapters & Bindingsource ...Show All

  • Windows Forms Manually run a ClickOnce update possible?

    OK, I have created an application that is used by a large number of employees but it is a new app so I am constantly updating it using ClickOnce over the web. I have ClickOnce set to check for updates every time before the app opens. The problem is that a lot of our employees leave the app open all day and sometimes overnight, so when there are updates they aren't getting them. Is there a way to check for updates while the app is up and force the users to update it when there is Thanks Here you go: Updating a ClickOnce Application Programatically Hope this helps. ...Show All

©2008 Software Development Network