ClydeB's Q&A profile
Visual C# Application.ProductVersion
Hi I am trying to display productversion in my winform application What i want is to display version information as major.minor.build (1.0.14). Everytime I recompile I want build to increase by one / or when something changes in the code base and recompile - do not mind which. I have looked at AssemblyVersion and AssemblyFileVersion and have set those as 1.0.* however it seems to have no effect on application.ProductVersion. All I get with productversion is 1.0.2131.56354 - does not seem to make a difference what I do but this number stays the same. I have tried this with a simple hello world app. I am sure I am doing something s ...Show All
Visual Basic Datasource - Databinding
Hello I got an issue regarding a combobox. I'll add the code : With Me .cboSourceFolder .DataSource = GetVersions() .ValueMember = "ID" .DisplayMember = "Value" '.SelectedIndex = 0 End With With Me .cboSourceFolder2 .DataSource = GetVersions() .ValueMember = "ID" .DisplayMember = "Value" '.SelectedIndex = 0 End With System.Windows.Forms.Application.DoEvents() Result : cboSourceFolder.Text "20060608_2300" String cboSourceFolder2.Text "System.Data.DataRowView" String Any idea what's the reason for this Must be said that the second combobox is ...Show All
.NET Development Error:Wrong Local header signature-918826653
I'm using ICSharpCode library to unzip files but I'm having a problem that the following error is generated Wrong Local header signature-918826653 Below is the code I did and i will mark the line that causes the error When a type of Entry is Directory there is no problem everything is created and goes well, but when Entry type is file the GetNextEntry() make the exception Be Gratefull for any suggestions public string Unzip( string FileName) { if (FileName.Trim().Length == 0) return ""; FileStream oFS = new FileStream(FileName,FileMode.Open); ICSharpCode.SharpZipLib.Zip.ZipEntry theEntry; ...Show All
Visual C++ Pls help me out! I cannot build a very simple Hello World app.
I have been trying to build the following simple app for these two days. #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } VS2005 C++ Express complains this way; Warning 2 warning C4512: 'std::basic_ostream<_E,_Tr>::sentry' : assignment operator could not be generated c:\program files\microsoft platform sdk\include\crt\ostream 45 Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostr ...Show All
SQL Server sql server agent
We're using sql server 2000 agent. The jobs running under it run constantly, writing to and reading from the database. Our problem is that some of these jobs stop for no clear reason. Can anyone help They stop with the following error message: SQL Server Scheduled Job 'DCS Time Update - Spot' (0x6FCCD1CB2E40E04BBDB9B39F45497380) - Status: Failed - Invoked on: 2005-09-21 04:26:17 - Message: The job failed. The Job was invoked by Start Sequence 0. The last step to run was step 1 (Run main stored procedure). There is only step in the job - it calls a stored procedure which ...Show All
Windows Forms Very strange ComboBox databinding problem
Hi, this problem really drives me nuts. I have a custom ComboBox, which derives from the normal ComboBox control. I'm setting the DataSource of the ComboBox in my code to a DataTable and also set DisplayMember and ValueMember. So, the binding in general works fine, but here's the odd part: Depending on what is selected I color the background of the ComboBox differently. To achieve this effect when the DataSource changed i overwrite the OnDataSourceChanged method: protected override void OnDataSourceChanged(EventArgs e) { ...Show All
.NET Development [newbie] webservices + error
with Visual studio 2005. Code below. add the client I added a webreference as you see. If I test the webservice in my browser it works, but not from the pda. ERROR: at runtime: Web exception was unhandled. Error cannot be displayed because an optional source-assembly was not found. System.Net.WebException was unhandled Message="Web exception was unhandled. Error cannot be displayed because an optional source-assembly was not found" StackTrace: bij System.Net.HttpWebRequest.finishGetResponse() bij System. ...Show All
Windows Forms FileSystemWatcher watching MyComputer
Hello, i'm trying to configure a FileSystemWatcher component to watch my whole system(a PC) for file changes. My problem is that the biggest thing i can configure it to watch is a drive - C:\ for example. I want to make it track changes on all system drives at the same time. I thought that i can use a path like this: this.fileSystemWatcher1.Path = ...Show All
SQL Server CPU Utiliization reaches 100% when using ExcelPivot Table to browse AS 2005 Cube
CPU Utiliization reaches 100% when using ExcelPivot Table to browse AS 2005 Cube. Only one user is using the cube. Its a single CPU with SQL Server running on the same box. Is there any configuration parameters I should be changing Thanks Selva Hi Selva, This is nothing to do with your question. But I was wondering if you have been able to drill down hierarchy levels from your cube in your excel pivot table Because I can't. Have you tried that. Also, I will say, that I had similar issue browsing a cube from the pivot table, but I had to filter my pivot table, so I wouldn't be pulling so many rows (3 million).&n ...Show All
.NET Development How to disable Events in .NET
Hiii, I want to disable the button click event of the page if some condition goes false in the page_load event of the user control in that page. Simply if i have clicked on the button and i want if some condition goes wrong in Page_Laod event i should not fire the Button Click event.. Please help me out. No, you must add and remove event handlers as i siad in my first post. That's the reason that i was trying to search for a better solution. ...Show All
Windows Forms Locking down the desktop
I am writing a custom web browser that will only allow users to view a particular website while taking an online test. While the user is taking the test, I would like to limit their desktop funcationality (ie. prevent them from running other applications like internet explorer, email or chat. I would also like to prevent them from using Alt-Tab, acces ...Show All
Visual Basic Question about moving an app from vb.net 2003 to vs 2005
I'll be getting my copy of vs 2005 this week and had a question about EnableVisualStyles and how that will work. I just recently learned about enablevisualstyles and have started to apply this to my app. However, vs 2005 has this turned on by defualt and draws the controls to correctly include this be default. Does anyone know what happens to visual styles when bringing an app from vb.net 2003 into vs 2005 I'm hoping that it will apply the correct visual style settings automatically, however I'm a bit optimistic about this. I have a copy of my app that does not have any of the visual style stuff turned on so maybe this one would work bett ...Show All
Visual Studio Stepping thru code the debugger moves afer several F11
Not sure what caused this problem, When i debug and step into code i need to press F11 several times for the debugger to move to next statement. No clues on how to fix this ! What edition of Visual Studio are you using What type of application are you developing Habib Heydarian Program Manager Visual Studio Debugger ...Show All
SQL Server somebody helps,How to dynamic determine the position of a table in a report.
I use the way of server report to design reports,there are some columns which should be available for inclusion by the user in a table.So I wanna maintenan my data region in center of body in a report.but the number of columns is dynamic ,somebody helps Well, column widths can be fixed so can't you just sum the widths of the columns ...Show All
Windows Forms What is the best way to Load/Store Form Location and Size?
Hello, What is the best way to Load/Store Form Location and Size Also what it the best method for Load/Store of other elements on a form such as a MenuStrip and ToolStrip when that are placed in a ToolStripContainer Thank you for your help, Your options are the registry, and a config file ( but the Microsoft config file stuff does not support writing ). I think it depends on how much there is, officially, you should use a config file. ...Show All
