Damion Chambers's Q&A profile
Visual Basic Change filename when new year
I want to change the filename of my .aspx -file from Mypage2006.aspx to Mypage2007.aspx at a special date (when its 2007-01-01)..... (And when ist 2008, Mypage2007.aspx should be Mypage2008.aspx and so on...) I will do this from the code behind-file Mypage2006.aspx.vb..... Someone know how to do that you place the code where you want the operation to run in your application. Again im pretty sure that the idea you have will not work in ASP.NET but rather more of a Winforms application running in the background or a background service. Or even create a Windows scheduled task running a batch file to rename the file. you can ask more about this to see if it will run in an ASP.NET application, ...Show All
Visual C++ Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
SQL Server Analysis Services on SQL2000 SP4
"unable to browse the dimension [dimension name]. Provider cannot be found. or Unknown Error. Everything else looks good, like processsing, looking at the tables,fields, datasource is connected. Thanks again, but no cigar. To install pivot tables I had to de-install Analysis Services, Install the pivot tables and re-install the Analysis. However I can't browse the results and/or the cube. I went a step further installing SQL Server 2000 and Analysis Services on a different PC, using Windows XP with the same negative results. Unable to browse the Cube [cube name] or Unable to browse the dimension [dimension name] Unspecified error. It will help how to find and read the OLAP server error logs or dump for a be ...Show All
Microsoft ISV Community Center Forums How Do I Set RecordSource in VBA to a Predefined Query?
How Do I Set RecordSource in VBA to a Predefined Query For example... Me.RecordSource = qryAllUsers Does not work. Thanks, Dave Is qryAllUsers a String containing the SQL select query text, or is it a QueryDef object RecordSource expects to be passed a String, not a QueryDef. If you're trying to pass the latter, it ought to be snagged as a compile-time error. Can you give any more information about how it "doesn't work" ...Show All
Visual Basic Excel Functions within VB
Hey, I'm using the PMT function in excel and in VB 2005. Basically what I'm doing is trying to make my loan calculator an actual program, instead of always having to write everything out within an excel spreadsheet. I have all the needed information and I thought that my VB code was correct, and according to all the help files I can find they are. However the number I get from the function in my VB program is wrong. I'm not sure why the answer is different if all the inputs are the same in both the program and the spreadsheet. Thanks for the insight. Here's my code for the PMT Function in my program, incase you need to see it: MonthlyLoanPayment = -Pmt((InterestRate / 12), Math.Round(MonthsWithoutMedicaid), LoanedAmount) Azrael ...Show All
SQL Server How to enable "Force Encryption" for SQL Server 2005?
I need to enable "Force Encryption" for SQL Server 2005, but I don't know which API can do it. I need to operate remote SQL server , so I cannot operate registry directly to do it. Who can help me I had a deep look in SMO to find the property with no success. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms Form wont BringToFront
Howdy, I have a notify icon that opens a window. To open the window you can either click 'Open' in the icons context menu or just double click on the icon. The menu option is fine, but whenever I use the double click feature, the window opens but doesn't come to the front and doesn't have focus. It must be something with the second mouse click releasing focus but I have no idea how to right this. Any suggestions Both events (the menu click and the icon double click) rasie the following event: Private Sub itmOpen_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles itmOpen.Click, nfyNotify.MouseDoubleClick Me .WindowState = FormWindowState.Normal Me .ShowInTaskbar = True Me .BringToFron ...Show All
Visual C# C# alternative for WithEvents
I have a simple vb codeline that I need to find a code translation for in C# but I dont find withevents... Here's the VB code anyway... Dim WithEvents dx As Video What would the above be with C# Appreciate any help. Thanks private Video dx; "WithEvents" is not relevant in C#. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: VB to Python converter ...Show All
Visual C++ Calling unmanaged dll functions in managed C++ code
Hello, I have a windows forms application that is written in Managed C++. I'm at a point where I need to use a dll that is unmanaged. I'm just not sure how to start. I'm confused about the whole import export thing. Any pointers on how to go about this Thanks!! This is done exactly like in unmanaged client. Add .lib file to the linker list, add #include file and call unmanaged dll functions directly from managed code. ...Show All
Windows Forms opening form is empty ...bug in VS2005?
Hi all I have a strange problem. I have a windows form with some components. (texbboxes/datagrids etc etc). If i try to open this form from another form it comes up empty. private void contractProductToolStripMenuItem_Click( object sender, EventArgs e) { AdminContractProductForm test = new AdminContractProductForm ( this .backend); test.Show(); } This has never happend to mebefore Do you have any idea what is wrong I think i have looked/testet everything. Lars Hmm, odd problem. Add a Shown event to the form and set a breakpoint at the closing bracket for the event handler. Verify that this.Controls isn't empty and that this.Controls(0).Visible is true. ...Show All
Windows Forms How to disable the ContextMenuStrip in the TextBox associated with a ComboBox?
I need to disable the ContextMenuStrip in the TextBox associated with a ComboBox for a smoother functionality. Right clicking on the CombBox button will open a ContextMenuStrip that I can disable, rightclicking on the TextBox associated with the will always bring up the standard TextBox ContextMenuStrip. I can't find access to the ContextMenuStrip in the TextBox to disable that. Anyone know a way to retrieve either a handle to the TextBox or the ContextMenuStrip inside a ComboBox Try overriding WndProc and wait for wm_rbuttondown messages (and wm_rbuttonup) and cancelling them out. If Not m.Msg = Wm_RBUTTONDOWN and not m.msg = WM_RBUTTONUP then mybase.wndproc(m) end if I think you could wa ...Show All
Visual Studio 2008 (Pre-release) How do I programmatically send a Click event to a Button?
I have a ListBox whos ListBoxItems are all buttons. I want to send a "click" event to the selected item (which is a button) whenever a specific key is pressed - in this case Return or Enter - but may not necessarily be so in real world. As an example I have used the ListBoxItemStyle sample from the SDK - and added a KeyDown handler to the ListBox - How do I send a Click event to the selected button The KeyHandler looks like this: private void HandleKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter || e.Key == Key.Return) { //ListBoxInstance.ItemContainerGenerator.ContainerFromIndex(ListBoxInstance.SelectedIndex); Button b = (Button)(sender as ListBox).SelectedItem; if (b != null) { // How ...Show All
Visual Studio Team System calling policy from orchestration.
We were using to Expression shape with the following code. We were not getting the results and there is no error reported in biztalk.same thing executing using call rule shape. Any advice. Br = new Microsoft.RuleEngine.Policy("CBSEAI_EOD_TE"); Br.Execute (SendMsg); SendMsg is a variable of type XSD file. Thanks in Advance. Ramesh More. You might also try one of the BizTalk forums: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.biztalk.server&mid=3390aed3-ab5a-4c67-8e50-d898b2e0bdb1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Now that D3D10 hardware is available...
... has anyone actually been able to run their own programs using only publicly available resources The October SDK requires Vista RC1, which I'm currently using. Seems that they made some DDI changes in Vista RC2 such that it is no longer compatible and the latest publicly available drivers from Nvidia seem to be for RC2 only (makes sense). Even then, I have no idea if these RC2 drivers actually enable D3D10 on their new GeForce 8800 hardware. I doubt any archived RC1 drivers have the necessary parts (can anyone confirm ) nor would any "in box" default drivers. I presume various developers have been using GeForce 8800 hardware behind closed doors for a while, but they'll have access to Nvidia's developer relations te ...Show All
Windows Forms How to save Access Query Data after user changes?
Hello, i have an Access Database connected with datagridview objects. Everything works fine and after changing the "Copy if newer" option i can save all the changes made by the user with no problem for tables. The problem is that i cannot save the changes made in queries by the user. The update command is not avalaible for its tableadapter. Is this not possible Microsoft Access let you enter data from queries. I use Visual Basic Express and i am new in programming. Sorry if this is a stupid question. Thank you in advance. Private Function SelectSqlRows(ByVal connectionString As String, _ ByVal queryString As String, ByVal tableName As String) As DataSet Using connection A ...Show All
