DINESH CHAUDHARI's Q&A profile
Windows Forms [c#]ToolStripProgressBar on a BindingNavigator
Hi all :) I would like to learn something about the ProgressBar. I have a form, with a datagridview that show some records of a database. During the "select procedure", i would like that the progress bar show how many time remain to the end of query which return me the records on the datagridview. Any ideas Thank you all in advance. I've found some examples on internet. After a little modify at one of them, i write this: //the bar is used when i show my results on the datagridview private void btnDataGridShowResults(object sender, EventArgs e) { //all the code to manage the datagridview timer1.Enabled = false; myBar.Value = 0; myBar.Maximum = myDataGridView.RowCount; myBar.Step = 5; timer ...Show All
Visual C# C# Controls Resize When Form Resizes
Hi Could any one help me to sort out resizing form controls issue. I am doing windows forms and in a form i have controls which will be created in runtime. It is like a panel containg 9 lables. I tried anchoring and docking which is not fruitful as they are hiding the other controls means if you enlarge the form it actually submerges one control with the other. If any could forward me the working code to resolve this is appreciable. Thanks in advance. There are 2 layout managers that come with Visual Studio 2005: FlowLayoutPanel and TableLayoutPanel . Perhaps one of these might address your needs. ...Show All
SQL Server Destination resets when changing selected databases
I discovered that everytime I need to add a database to my backup Maintenance Plan, after I select the new database from the drop-down of databases, the Destination automatically resets back to a default location. I'm assuming this is a bug that will be resolved at some point, but in the meantime, I need to see if there is a way I can deal with this permanently. I am not the only one adding databases to the backup routine so I can't verify that this setting is properly changed every time we have a new database (which is about once a week). Thanks in advance. Thank you Kevin!!! That is great. I will go make the setting (carefully of course) now and we should be good to go. For what it' ...Show All
Windows Forms make your own DialogBox
hi I want to make my special MessageBox. so I have a form and develope all the specified codes that I need. but I dont know what I should do to make the form behave as a MessageBox for example, first I want to freeze everything and stop the folowing codes when it shows and continue the process when it closed. but I dont know how to do it. on the other hand I may ask my question in this way: how can I stop processing the folowing codes until some conditions (like click the button of another form) note that the form will be shown in the middle of the codes and folowing codes needs some values that will set with this form. I am really looking forward your answers Regards A message bo ...Show All
SQL Server MSreplication_agent_status in sql server 2005
Is this table still residing in tempdb in 2005 I have created replication but the server doesn't have this table anymore ...Show All
Visual Studio Team System Work Item Tracking Customization - Potential Bug in TFS
I added some custom work item types and modified them using the GUI tool from Imaginets to export and import. When I found out I couldn't delete a work item or rename one, I ended up deleting my Team Project. I created a new one by the same name, but the menu for Work Items now displays an "Error loading menu: Index was outside the bounds of the array." I deleted that Team Project and created a new one by a different name, and it is working OK. I believe the problem is the with the Most Recently Used list maintained by the UI in the registry. It is trying to look up the old Workitem name in the registry and failing. To fix it, close your VS client and go to this path in the registry: HKEY ...Show All
Game Technologies: DirectX, XNA, XACT, etc. High Dynamic Range question...
I saw in the ATI demo that you can produce HDR image and animation in real time...My question is, how can you produce the 4 different exposition of the same image in real time I can produce an image with a range of color from 0-255 How do you produce the underexposed and overexposed image And then what is the blend it does to combine them Any people who use HDR in Game or real time Here is some static image that do HDR image... http://www.pixeltale.com/barriles.php http://www.pixeltale.com/psycho.php http://www.pixeltale.com/day.php http://www.pixeltale.com/hangar.php ...Show All
Visual C++ beginner needing help using mulitple source files
Ok, this is a question from a beginner to this environment. I am having trouble using mulitple source files in a windows form application I am designing. I am wanting to create a cpp file called click.cpp to perform a function everytime I press a button. In other words, in my Form1.h file, I have this: private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { click(); } In my click.cpp file, I have this: #include "stdafx.h" #include "Form1.h" void click() { button1->Text = L "IT WORKS!!!" ; } Unfortunately, this does not work. I get two errors: 1>.\click.cpp(7) : error C2065: 'button1' : undeclared identifier 1>.\click.cpp(7) ...Show All
Visual Studio Error Logon
I have read a lot of posts on what people did but it seems like everyone did the same thing but i dont understand any of it. I have VS 2005 and when devloping reports they run fine on the development machine but when moved to the server and accessed from a client machine inside the network a page comes up asking for login information. I have intergrated windows auth into the intranet site. How do i get rid of this page and just display the report here is the code to my file <% @ Page language ="C#" masterpagefile ="~/MasterPage2.master" autoeventwireup ="true" codefile ="closeouts.aspx.cs" inherits ="Closeouts" title ="Untitled Page" %> <% @ Regist ...Show All
Visual C++ Save bitmap buffer with CImage
I use the directshow to play a avi file, and capture a static bitmap from interface IVMRWindowlessControl9 with method GetCurremtImage, I want to save this bitmap as JPG, the program I wrote as below, but the image that saved always is reverse, how can I use the CImage with the bitmap buffer Thanks. pVMRControl->GetCurrentImage(&lpCurrImage) LPBITMAPINFOHEADER pdib = (LPBITMAPINFOHEADER) lpCurrImage; LPVOID pData = lpCurrImage + ( pdib->biSize + DibPaletteSize(pdib) ); HBITMAP hbitmap= CreateBitmap( pdib->biWidth, pdib->biHeight, pdib->biPlanes, pdib->biBitCount, pData ); CImage image; image.Attach( hbitmap, CImage:: DIBOR_BOTTOMUP ); // I used DIBOR_BOTTOMUP and DIBOR_TOPDOWN , but same result ...Show All
Visual Basic Question
HOW TO CONNECT EPBX SYSTEM TO VB APPLICATIONS You would have to be a lot more descript about what your trying to achieve - hardware suppliers - what your trying to get out of it. I did see an question on somethign similar where currently they use hyperterminal to send commands and get a text response from the PBX system. In this solution they could use the Serial communication classes to implement the basic connect and sending of commands and recieving the output back which could then be processed and updated into a database which would then be queried easily. This process of retrieving the records could be implemented on a timer, so every day it would get the latest records. ...Show All
Visual C# Printing Options C#
Hi, Having searched the web without a conclusive answer I hope someone can advise. I need to print an already created word document and at the same time set the printer name, tray, page orientation etc... for the printer the document is to be printed to. I have used System.Diagnostics.Process... however this does not seem to allow the setting of the various printer items mentioned above. System.Drawing.Printing does allow the setting of all these items but does not seem to allow the printing of an already existing document. Microsoft.Office.Interop.Word seems to allow the setting of some of the printer settings but in a slightly different format (eg: set the tray for page one or all the rest of the pages is not quite what I ...Show All
SQL Server Adding a Connection in Visual C++ 2005 Express
I am new to SQL Server 2005 and Visual C++ 2005 Express. When I try and add a connection in Visual C++: DataSource: SQL Server Database File File Name: c:\.......file.mdf Windows Authentication I get the following message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under default settings SQL Server does not allow remote connections. (provider: Share Memeory Provider, error:36 - The Shared Memory dll used to connect to SQL Server 2000 was not found) Any ideas heimdaloz wrote: I am new to SQL Server 2005 and Visual C++ 2005 Express. When I try and add a connecti ...Show All
SQL Server Execute SQL Task issues
I keep getting the following error on some execute sql tasks: [Execute SQL Task] Error: Executing the query "DELETE cam FROM CUSTCTL.xref_corp_acct_mst AS xcam JOIN CUSTCTL.corp_acct_mst AS cam ON cam.corp_acct_uuid = xcam.corp_acct_uuid WHERE xcam.source_id = ; DELETE CUSTCTL.xref_corp_acct_mst WHERE source_id = ;" failed with the following error: "Invalid object name 'cam'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. They all use the same OLE DB Connection to SQL Server 2005. One of them works, but the other 6 fail with an error message similar to the one above. If I hardcode the para ...Show All
.NET Development Connection Speed in Kbps or Mbps?
Is there a way I could show the speed of the connection in Mbps or Kbps Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label1.Text = ( Connection Speed ) End Sub Maybe this will help but you will have to download the project from codeproject ( link 2 above) to get the network library... MP Private adapters As NetworkAdapter() Private monitor As NetworkMonitor Sub GetNetworkMonitor() monitor = New NetworkMonitor Me.adapters = monitor.Adapters If adapters.Length = 0 Then Me.ListAdapters.Enabled = False MessageBox.Show("No network adapters found on this computer.") Return End If Me.ListAdapters.Items.AddRange(Me.adapters) End Sub ...Show All
