celerno's Q&A profile
Windows Forms System.CodeDom.Compiler.GeneratedCodeAttribute error
I downloaded a sample from MSDN for VS 2005, and tried to build it (using VS2005) as described in the documentation. I obtain 7 errors in the NorthwindCustomerOrders.XSD (NorthwindCustomerOrders.designer.vb file) saying that Type System.CodeDom.Compiler.GeneratedCodeAttribute is not defined. In the documentation there is a link to HOW TO: Set sample settings but unfortunately it is incomplete. It says I have to open the .Net framework SDK 2.0 command prompt but next instructions are missed. Can you help me Thanks a lot Here is the path from where I downloaded the sample: visual studio 2005 documentation - visual studio - samples - technology ...Show All
Visual Studio Express Editions Moving to next TextBox without using TAB key
In DB Express, how can I automatically move to the next TextBox to enter more data without having to use the TAB key or the mouse between each entry, when the entries are all only one character Thank you. This solution works! And since I have about 100 scores between 0 and 9 to enter on my page the time saving is considerable. Chipala ...Show All
Visual Studio Express Editions Compile to Native
I am using VCEE and am trying to create a dll using /clr, can this be done I get an error... StationFormat.obj : fatal error LNK1306: DLL entry point "public: class System::String ^ __clrcall StationFormat::stnFrmt::toStnFrmt(double,int)" ( toStnFrmt@stnFrmt@StationFormat@@$$FQAMP$AAVString@System@@NH@Z) cannot be managed; compile to native Can I compile to native You can create both managed and unmanaged dlls, so the problem doesn't lie there. For you the problem is somewhere else and to work that out a code sample is needed. Under the linker error messages though it seems that you have ...Show All
SQL Server date distribution
Hi I have a table with 3 columns - start date, end date and volumes if the month in the start date is same as that of end date, the volume remains same, else if the months in the two dates are different, then i have to distribute the volume in such a way that some part will go in the first month and the rest in the other month.. i have to somehow calculate (or prorate) the volume according to the no of days in each month for ex start date end date volume month finalVolume 1/1/2000 12/1/2000 100 jan 100 12/10/2000 30/11/2000 120 oct nov Please help me Are you trying to do this with a query or using a VS l ...Show All
Visual C++ Custom Preprocessor as Custom Build Step
I was reading an article in GameDeveloper recently that suggested an interesting method of using strings as object IDs. Since strings are expensive to compare at runtime, hashes of those strings are often used for comparison and identification. The article suggested using a custom "macro" called HASH() which would be evaluated to a CRC hash value during the build. For example: //in the source code Load(HASH("MDL_MECH01_LARGE")); //the same line after the custom build step: Load(0x334BDCF8); The benefit of this method is that the programmer doesn't need to worry about the hashes of the strings, an ...Show All
Windows Forms How to refresh a gridview content
I am developping a web application, I use a gridview to display data. To bind data, I used an objectdatasource with his select method is a method defined in tableadatper in VS2005. After some tretment I have to refresh the dataTable content so how should I do 1. Add a button or menu item called "refresh". 2. In the click event call Fill() or FillBy(). ...Show All
Windows Forms Outlook Calendar Look and Feel - Corrupts Form Designer
I added the CalendarLibrary project (Outlook Calendar Look and Feel) to my solution. First I encountered the Serialization problem and used the fix listed here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=167334&SiteID=1 I add a reference from my VB project to the CalendarLibrary project, add a new form to my VB project and drag and drop the Calendar control onto the form. When I build the solution I get this error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. ...Show All
Windows Forms Making a scrollable panel scroll with mousewheel just by hovering mouse
Hi, I have a particular problem with a possible solution and I am interested in hearing peoples opinions if it is the right way to go about it (or not ) Some applications I have come across, such as Firefox, will allow the user to scroll the document window just by hovering the mouse over the display area and using the mouse wheel. You don't have to focus / select the display area first. With Firefox, the address bar can have the focus and the keyboard input but you can still scroll the document. Contrasting with IE and Visual Studio, you have to click into the document area before it responds to mouse wheel messages. In my ...Show All
Visual Studio Express Editions Using forms in VB Express
How do I move from one form to another. Can I use buttons. I would like to click on a button and go to another form. Scott Dim f as New Form2 Private Sub Button1_Click ( ByVal sender As System .Object, ByVal e As System . EventArgs ) Handles Button1 . Click f.showdialog() End Sub ...Show All
.NET Development "ExecuteReader requires an open and available connection. The connection's current state is open"
I am trying insert records using oleDbCommand.ExecuteNonQuery. The records are bing inserted properly. But after couple of inserts, the program sits on the line right after the line for instantiating the command object ie when i click on break button from the IDE [after being waited long a time] , the second line [ retVal = m_OleDbCommand.ExecuteNonQuery();] is getting higlighted with green collor. m_OleDbCommand = new OleDbCommand (InsertCommand.ToUpper(), m_OleDbConnection,m_OleDbTransaction ); retVal = m_OleDbCommand.ExecuteNonQuery(); Then I just restart the application , so getting an error saying "ExecuteReader ...Show All
Windows Forms Debugger doesn´t stop on breakpoint
HI! I´m developing a C# application using windows forms. I made a copy of my solution and saved it on another computer. Now when I try to debug my project on this computer I can set a breakpoint and the debugger stops at this certain point. If I set a breakpoint on a later part of the code the debugger won´t stop. If I try&nbs ...Show All
Visual C# How can I speed this up: excel spreadsheet data loading
I am iterating over data, in an excel spreadsheet, and loading it into memory. My current method for doing this is extremely slow on large (~12,000 rows) tables: while ( lRowIndex < lSheet.Rows.Count ) { String lText = (( Excel. Range )(lSheet.Cells[lRowIndex, 1])).Text.ToString(); int lKey; if ( int .TryParse( lText, out lKey ) ) { String [] lDataRow = new String [lColHeaders.Count]; lDataRow[0] = lText; for ( int lColIndex = 2; lColIndex < lColHeaders.Count; lColIndex++ ) { lDataRow[lColIndex - 1] = (( Excel. Range )(lSheet.Cells[lRowIndex, lColIndex])).Text.ToString(); } l ...Show All
Architecture Two Controllers sharing one model
Hi, really hoping that a) I've posted this in the right forum, b) that someone can help me out. I'm implementing a MVC pattern that contains two controllers that both need to access the same instance of a model. I'm having problems trying to work out how to get the controllers to share one instance of an model. The model can't be a singleton object and each instance of the model contains it's own data, so the data cannot be static across all model instances. I'm thinking of using a third controller that contains the model instance and the other two now child controllers. All events raised by the views notify the child controllers that ...Show All
Microsoft ISV Community Center Forums VBA text box! I'm completely lost...
Hello everyone, I'm currently working on a program at work. I just can't figure out that part. Here's my problem: Im trying to transfer some data from an Excel cell to an Excel textbox with Visual Basic Application. I'm able to do it when my cell contains less than 200 characters, but if it exceeds that number, VBA transfers nothing in the text box. I know that text boxes works with string of 200 characters. I have to find a way to seperate the text in range("a1") in groups of 200 characters. My code looks like this: Sub texte () dim words as string words = range("A1").value var1 = range("A1").characters(start:=1, length:=200).txt va ...Show All
Visual C++ 2005 problem: LNK4086 error after creating MFC ActiveX control executable project
Using visual studio 2005, I created a new MFC ActiveX control project. I modified the project configurations by selecting the "general" entry and changed the "Configuration Type" to "Application (.exe)" because I need a local server that can be used by a 64 bit application. Then I tried to build the project and I got the following: LNK4086: entrypoint '_WinMainCRTStartup' is not __stdcall with 12 bytes of arguments; image may not run Sure enough, I cannot call regsvr32.exe on the exe to register the control (as a local server). Besides using the wizard and the project properties, what else do I need to do ...Show All
