Saurav Kr. Basu's Q&A profile
Visual Basic Modifying the OpenFileDialog
I'm trying to add a file preview and other functionality to this form but it has been mission impossible. There is a section here (msdn) were something similar is performed but it is done in VB.NET 2003 & I am in 2005, I get allot of errors. If anyone here could directed me in the right direction or provide me with an easy to follow example it will be greatly appreciated. Thanks in advance. William Hi, please i will be very glad if u can send to my email address the code for the openfiledialog and codes to edit and make use of it i will be vary glad. cgraus wrote: I have VS2005 and I just ...Show All
Software Development for Windows Vista Issue on loading & resuming an unloaded WF
Hello, I have a similar problem as Jay S ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=178521&SiteID=1 ) I have a State Machine Workflow with my own implemented IEventActivity, which works with a generic RaiseEvent(string action). WaitForEventActivity : Activity , IEventActivity , IActivityEventListener < QueueEventArgs > { .. void IEventActivity .Subscribe( ActivityExecutionContext parentContext, IActivityEventListener < QueueEventArgs > parentEventHandler) { WorkflowQueue queue = CreateQueue(context); queue.RegisterForQueueItemAvailable(listener); GenericService genService = context.Ge ...Show All
Windows Forms How to : Drag and Drop Column In DataGridView (VS.NET 2005)
Dear all, I want to design DataGridView which supports drag and drop column. However, i don't know what should i start. If u have ideas or sample code, please tell me. Thanks, Khiem Vo No, there isn't any built in support for this. You'll have to code this up yourself. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Smart Device Development Native Exception Error - 0xc0000005
I am running the following code - which takes the data from an XML file and updates a SQL Mobile table - it seems to consistenly throw a native exception error (ExceptionCode: 0xc0000005) Here is the code: #region DataRefreshFromXML public void RefreshDataFromXML() { if ( File .Exists(appPath + @"\data\HandheldInventory.xml" )) try { DataSet ds = new DataSet (); ds.ReadXml(appPath + @"\data\HandheldInventory.xml" ); if (ds.Tables.Count > 0) { using ( SqlCeConnection cn = GetConnection()) { SqlCeDataAdapter da; da = new SqlCeDataAdapter ( "S ...Show All
Visual Studio Express Editions How do I open a url by clicking on a link label?
How do I open a url by clicking on a link label Hi there, You need to use the link label's "LinkedClicked" event and do something like the following (LinkLabel1 is the name of my link label): Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked System.Diagnostics.Process.Start(LinkLabel1.Text) End Sub This should open whatever your link is in your default web browser. Hope that helps a bit, but sorry if it doesn't ...Show All
Visual Basic using add existing files option
I created a new vis studio project. I imported an existing program "add existing item" this works fine, but I can't set these pages to the start page Any help would be welcome I'm using vb.net...note this only happens whenyou import an existing file. Files created under the project work fine. ...Show All
Windows Forms Dates between...
I have a problem fetching data between two dates, from access database in Vb.net I am formatting the from and to dates which i select from the date pickers to dd/MM/yyyy Dim f As Date = dtpFromReport2.Value ' value from Date picker1 Dim t As Date = dtpToReport2.Value ' value from Date Picker2 Dim fromDate = Format(f, "dd/MM/yyyy") Dim toDate = Format(t, "dd/MM/yyyy") And in the query to fetch tasks in between two dates I give my query as: "select * from xyz where (F_DATE_COMPLETE between #" & fromDate ...Show All
.NET Development VS2005 Beta, AssemblyInfo.CPP and AssemblyKeyFile Trouble
Using VS 2005 v.8.0.50215.44 (Beta 2.050215-4400) Windows XP Pro SP2 I'm having a problem using a signed C++/CLI class library that I created. The project builds fine, but when I try to use it from a C# console app, I'm getting a SystemSecurityException (Strong name validation failed on Zone My Computer). When I drag/drop the assembly into c:\windows\assembly, I get this message box "The check of the signature failed for assembly 'name.dll'". Here are the steps I took to create this project: 1. sn -k c:\key\MyKey.snk 2. A new C++/CLR class lib, MyClassLib 3. Added a new MyClass.h, looks like this: name ...Show All
Visual C# Enabling Form.Capture
I'm sorry, I'm trying to find the screen coordinates of the mouse cursor (with System.Windows.Forms.Cursor.Position ) and I've been told several times that I need to enable Form.Capture to get mouse input from anywhere on the screen. I'm not sure how to do that; I've tried several ways and I can't get it to work: protected override void OnMouseMove(MouseEventArgs e) { this .Capture = true ; textBox1.Text = System.Win ...Show All
.NET Development Defining new field of array type (Reflection.Emit)
Hi, Im generating a new array type with the TypeBuilder.MakeArrayType function , than defining a field with the array type i've created. How can i set the field with a specified length I want the field to be myType[2] instead of myType[]. Please help me... In this case you use Array.CreateInstance instead. Interface1[] objects = (Interface1[])Array.CreateInstance(type, arrayLength); ...Show All
Visual C# drawing something to the form---
how can i draw a line or circle on my form an example will be welcome! Thanks A Lot Goto the Properties of the Form, then click on the Events Button (Lightening Bolt). Find "Paint" then double click next to it, to automatically create the required code for you. To draw other objects, have a look in the Graphics class. G.DrawEllipse( new Pen ( Color .Pink), new Rectangle (200, 50, 25, 25)); ...Show All
Visual C++ Compiling 32 bit C++ using VS.NET 2003 and VS.NET 2005
Hi, We have a legacy console C++ code (VC6.0), which compiled and linked perfectly when we used VS.NET 2003. However, when tried to compile the same in VS.NET 2005 (Ver: 50727), we ended up with below error. Error 151 fatal error LNK1104: cannot open file 'largeint.lib' FileValidation We searched for largeint.lib file, but found that missing. Can someone please let us know if this issue is because of improper vs.net 2005 installation, or whether support to largeint.lib has been removed from VS.NET 2005. Thanks, naresh largeint.h and largeint.lib were shipped in VS 2003, an ...Show All
.NET Development "Stored Procedure" or "Query"?
Hello, me again! I found myself a bit confused about "query" and "stored procedure" in access. Are they the same thing However, I do suspect this is ture as after some googling I found that varies articals mentioned "stored procedures" are actually created in MS Access for Sql server. So what you are doing when calling a "stored procedure in Access" is actually invoking the stored procedure stored in the underlying Sql server. Access is more like an interface designing tool in this case. Am I getting this idea right or not If I do get the point right (which mean ...Show All
Visual Basic Calling a click event
In VB6 it was easy to call a controls click event ie (call textbox1_click). this however does not seem to work in Vb.Net 2005, any ideas Cheers Kev I found the best way was to put code in the gotfocus event of the combobox and call setfocus to initiate. After coding it was obvious that this is what I should have done in the first place, but trying to get my head around around OOP has made me loose sight of the easier stuff. Cheers for all the replies guys. Kev ...Show All
SQL Server SQL Server responding very slow
Hi, we are trying to build a very large database. After reaching a database size of around 2.8TB the SQL server performance has come down drastically. The response time is so high that its taking 2 mins just to connect to the server. Other database operations are timing out. The machine is a 4 proc, 8GB RAM machine. The disk storage is derived from SAN. How do I determine what resouce is actually causing the bottleneck. I tied running some performance counters. CPU usage is avg at 70-80% with a max of 95% at times. SQL Server is using memory equal to 6-8GB on avg and peaking to 9GB at times. Another thing which is causing confusi ...Show All
