scripteaze's Q&A profile
Visual Studio 2008 (Pre-release) MarchCTP - Entitytypes made plural by wizard
The entity type definitions in the csdl file clreated by the wizard are all plural. Is this a major change in the EDM or just a bug Singular obviously makes a lot more sense. Okay, I was getting mixed up between everything I was reading and real life. The entity names are just matching the table names. This happened with the modeler previously also. So, while singular named entities (Customer, Order, Product) are what makes sense for a conceptual model, if your db tablenames are plural (which make sense in the db ...it's a table filled with orders), then this is what you will get. If (like me) the first thingi you want to do is go fix that up, then don't forget that you'll need to match the new names in Ent ...Show All
Visual Studio Express Editions Visual Basic .net express
Saludos, alguien que me oriente sobre donde puedo bajar la version en espanol del Vb express 2005 gracias de antemano. atte hector guerrero Aqui esta el link para vb2005express en espanol http://www.microsoft.com/spanish/msdn/vstudio/express/VB/default.mspx ...Show All
Visual Studio 2008 (Pre-release) WPF App Disassembler
How do I disassemble a WPF app executable That is not just see its IL (using Reflector) but actually see XAML too OK, it looks like this is even easier than I thought - I wrote a proof-of-concept Baml -> Xaml converter in about 10 lines of code (and as I mentioned before the Baml is stored in the assembly in a known location, so further automation should be fairly easy). I'll try to post a more polished version in about 12 hours on LearnWPF.com ...Show All
Visual Studio Express Editions Chronometer!! and alarm
Hey there, please help, I'm trying to create a chronometer within my application... I need it with this format "hh:mm:ss"... and also when it get's to 3 minutes it must display this "Succes" Now... I'm using a timer to do all this, but in order to get the time at the moment I'm using this code... Dim Timex As Integer = CInt (Format(Now, "hhmmss" )) But I think it's wrong cause when I'm going to set the ChronLabel I'm using this: ChronLabel.Text = CInt (Format(Now, "hhmmss" )) - Time so what should I do, please help!!! Here's a simple example. Public Class Form1 Dim Start As DateTime ''' <summary> ''' Set th ...Show All
Visual Studio Problem building Managed C++ project with Msbuild that has multiple assembly references
I have a VS2005 solution that includes a Managed C++ project as well as several C# projects. The C++ project references several of the C# projects. All projects in the solution reference log4net.dll (as an AssemblyReference). My C++ project builds without any warnings using the VS2005 IDE. However, when I build the solution using MSBuild, I get zillions of warning messages such as: log4net.dll : warning C4945: 'LogicalThreadContextProperties' : cannot import symbol from '<some path>\log4net.dll': as 'log4net::Util::LogicalThreadContextProperties' has already been imported from another assembly 'log4net' For my managed C++ project, I set all references to be: Copy Local: true Copy Local Depencies: false Use Depend ...Show All
SQL Server Publishing OLAP based Pivotables from Excel
Hi I want to publish an OLAP based pivottables from Excel to a HTML file using Office web componets. I have a server with SQL Analysis Services 2005 cubes and I can browse the cube from my desktop in Excel 2003 Pivottables. When I publish the Pivottable with Pivottable interactivity I get an error in the browser: The query could not be processed - An error was encountered in the transport layer - The peer prematurely closed the connection In the Pivottable I have set 'Save password' in properties. Any suggestions Thomas Black I'm having the same error msg and problem to access SSAS 2005 cube over http at client m ...Show All
.NET Development Reading cells i .xml?
I need to read colums and rows from an .xml document, but i simply can not get it to work. The table example looks some like this: A B C 1 tA1 tB1 tC1 2 tA2 tB2 tC2 3 tA3 tB3 tC3 Now i need to read the cells and rows, and do following: Contens of ListBox1 = Colum A. When A1 (tA1) is activated i the listbox. Fill label1, label2 and label3 with the values from row 1 (A1("tA1"), B1(" ...Show All
Visual Basic VB.NET UserControl used in VB6 application
Hi. I build in VB Net 2005 an usercontrol that contains a toolstrip.On this toolstrip I add in runtime 9 toolstripbuttons.The code in which I add those buttons is: Public Sub AddButtonsOnToolbar(ByVal intNob As Integer) Dim tsButtons(8) As ToolStripButton For i = 0 To 8 tsButtons(i) = New ToolStripButton tsButtons(i).Tag = i tsButtons(i).Image = System.Drawing.Image.FromFile("D:\Work\Controale_Espot\Pictures\01.gif") tsButtons(i).AutoSize = False tsButtons(i).Size = New Size(48, 48) tsButtons(i).ImageScaling = ToolStripItemImageScaling.SizeToFit If i = 0 Then tsButtons(i).Margin = New Padding(80, 5, 0, 2) Else tsButtons(i).Margin = New Padding(10, 5, 0, 2) ...Show All
Windows Forms 3 keys pressed code?
Hey, I am trying to make it so if you press 3 keys at the same time then somthing will happen, this is all I can get: private void Form1_KeyPress ( object sender , KeyPressEventArgs e ) { if (e.KeyCode == Keys . ControlKey { } } So it will be Pressing Ctrl+Shift+V But I cant get it to do all 3... Thanks :) Oh, I'm sorry, forgot to mention... you have to use the KeyDown event. Here's the complete code: private void MyForm_KeyDown( object sender, KeyEventArgs e) { if (e.Control && e.Shift && e.KeyCode == Keys .V) { MessageBox .Show( "Yes!!!" );   ...Show All
SQL Server count of null values in columns
Hi, I would like to ask how can I get count of null values in each column together I know I can use COUNT(*) - COUNT(<col>), but I need to explicitly name every column in the query.... is it possible without it here is the sample code (please note that this can be writen in a better way.): declare @tableName sysname set @tableName = 'TableWithFewColumns' -- you can create a proc with following code with above one as param declare @strSQL varchar ( 8000 ) if object_id ( 'tempdb..#columns' ) is not null drop table #columns create table #columns ( colName varchar ( 255 )) insert into #columns exec ( 'select name from syscolumns (no ...Show All
Software Development for Windows Vista Disabling/Enabling Timer Within MouseMove Causes 100% CPU Usage
I guess that this should probably be submitted as a bug as well, but I also want to see if anyone has come across this. Basically, if you have a .NET TextBox (probably other controls work too) and you hook up an event handler for the MouseMove event to disable a timer, then re-enable it, the CPU usage will indefinitely jump to 100%. This does not happen with XP. This is a really crucial issue, and I'm hoping that someone can shed some insight on this. Barring that, where is the correct place to submit a bug For example: private void textBox1_MouseMove(object sender, MouseEventArgs e) { if (this.timer1.Enabled) { this.timer1.Enabled = false; // Perform various logic here this.timer1.Enabled = true; } } private ...Show All
SQL Server Need Help on this SQL Statement
Hi All, sqlLstProds="Select * From PRODUCT_DEF "&_ "WHERE productID IN(Select productID From PRODUCT_DEF WHERE (IDProductCriteria = 5) AND ([Value] = '"&getSession("ModelID")&"')) "&_ " Order By IDProduct, IDProductCriteria" I have the above SQL Code in an ASP page. This queries the Product_Def table, however there is also a table called Product_sType, the primary key in that table is productID which corresponds to productID ub the Product_Def table. I need to add to the query a where clause, where active = 1 active 0 is obviously discontinued products, how would I do this So basically, it's somewhat of a join of some sort, like select * from Produc ...Show All
Visual C# getting a string from dll & printing it on richtextbox...
Hi... I want to read a string from a dll & i want to print it in a rich text box on windows form. How can i do this... How i can define a function which will return a string in dll file so that i can call that function from my form class & get the string to display on form... Thanks, Vinay Thanks, Its just a string varibale in the dll...which i have to read & i have to put that string value in the rich textbox. i added the refernce for that dll but writing in textbox by taking value from dll is not working. I am doing somthing like this--- //in dll... string strDLL = "This is myDLL"; // in Form load event... richtectbox.Text = strDLL; ...Show All
Windows Forms ComponentModel.LookupBindingProperties
Gadgets can't "build" a valid gadget file!!! UGH!
I have created a zip file. I have all the proper files in it. I rename it to x.gadget and the icon changed to a sidebar gadget icon. I double-click it and it prompts to install the gadget. I hit "Install" It pops up an error message saying this is not a valid gadget file. In the directory it puts a folder with my gadgets name with ".~0019" appended to the end of the foldername. The number increments with each attempt. MyfolderName.gadget.~0019 What is going on by the way, I've used the native Vista ZIP ('compressed folder') support all the time to create gadgets, without problem. Unless your OS configuration is somehow different than mine, I would not expect that to be ...Show All
