CsNetworks's Q&A profile
Visual Studio Express Editions How to turn off redrawing?
Hi! I would like to turn of redrawing of richtextbox while procesing text inside it. I have found one solution, but I can't get it to work. c od e: SendMessage( new HandleRef( this, Handle ), WM_SETREDRAW, 0, 0 ); Error Message I get: The name 'SendMessage' does not exist in the current context i copied your code without asking your permission first. Please forgive me. is it ok to work with your code ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Deploying my own game assets
I've chosen not to use the content pipeline provided with GSE. How do I deploy my game assets to the 360 HD Is there a command line utility so that I can build it into my tools Thanks. -Nick You can't use VS to deploy games to your 360. You have to use Game Studio Express. See here . ...Show All
Windows Forms Nested events
I have an win forms application that contains three user controls. There is a one to many relation between control B and A, a one to many relation between control B and C, and a one to many relation between control C and the form. Control A contains an event that needs to be raised up to the form. To accomplish this, I created an event in both control B and C. For example, There are 2 "C" controls with 7 "B" controls, and 0 to many "A" controls within B. All controls are being dynamically created. Controls A, B, and C are instantiated at run time, so my event handlers all wire up to a single delegate b_onchange, rather than b1_onchange, b2_onchange etc.. What appears to happen in this case, is when the event ...Show All
Internet Explorer Development Outlook 2003 Email Headers not Printing after IE7 upgrade
Does anyone know if there is a fix for this yet It seems to be major issue without any reliable work around other than hitting forward button then printing the email. Help! Wahl04 I have been speaking with Microsoft on this issue for some time now (according to the IE 7 support team, they were unaware of the issue) and they have not been able to get a solution. If I manage to get anywhere with support, I will try to post the results. ...Show All
Visual C# New to programming, need help starting this program. Any suggestions??
I had no trouble creating the form, but I don't know where to begin with the code. Any ideas "Piecework workers are paid by the piece. Workers who produce a greater quantity of output are often paid at a higher rate. Use text boxes to obtain the person's name and the number of pieces completed. Include a Calculate button to display the dollar amount earned. You will need a Summary button to display the total number of pieces, the total pay, and the average pay per person. A Clear button should clear the name and the number of pieces for the current employee and a Clear All button should clear the summary totals after confirming the operation with the user. Include validation to check for missing data. If the user clicks on the Ca ...Show All
Windows Live Developer Forums Two Newbie Questions
Hi, I am a VE newbie looking at the Map Control + ASP.Net Atlas for a site I'm working on and would like to confirm two things: 1) I am looking to display a map, allow the user to select an area (by clicking on consecutive spots to define the area's polygon), and then get the lat/lon for the area they chose. Is it possible to do this in VE 2) The app I'm developing is commercial (only subscribers may access it) and this would be a small utility function in it. Is that permissible The terms of use at http://www.microsoft.com/virtualearth/control/terms.mspx say "You will not access the API or use the Service and Your Application...(e) to sell, lease, or sublicense Results or access to the API or the Service; or (f) to sell, ma ...Show All
Windows Forms Prevent datagridview showing glyphs when working with rows
Hi @all! I'm currently working with the .NET 2.0 datagridview. I've overwritten the datagridviewrowheader class to display different icons in the rowheader. That's fine so far. But the grid still displays these glyphs in the background of the rowheader cell. With the property showeditinglyph it's only possible to disable the editing icon, but I don't want the datagrid to show any icons or glyphs. How can I disable this functionality in the datagrid \Helmut Hi Scott Row state is what you set in your class. See my example In my clinet page I double click to create new row . here is the code Private Sub dgvDocuments_RowHeaderMouseDoubleClic ...Show All
SQL Server Syncing local SSAS project from database?
We unfortunately made some last minute changes directly on the AS DB instance. When I re-deploy my cube from the project, I'm afraid it might override some of those changes - is there a good way to sync my project definition with the AS instance before attempting to deploy again Thanks, Arjun You have a project in BI-Dev Studio that will import a deployed SSAS2005 cube. Check import Analysis Services 9 database. HTH Thomas Ivarsson ...Show All
SQL Server Degenerate Dimension with Partitions
Backgroud: My cube has 12 Partitions, and I set 12 fact tables to point to them. There is a Degenerate Dimension, which I point to fact table 11. By the Way, the Degenerate Dimension's Key is The fact Table 11's Table_ID, and the Table_ID is possible to be the same between diffrent fact tables 1 to 12. Question 1: when I build the Degenerate Dimension, I can only choose one fact table to match, as you know. then if I ProcessFull the Degenerate Dimension, it will catch the data from other 11 fact tables If the answer is YES, how about the same Table_ID Question 2: If I processFull the Question Degenerate Dimension, need I Process the Partitions 1 to 12, or only to Process the Partition 11, or not need to Process Partitions Question ...Show All
.NET Development working with abig database
Hi all i have a project in vb.net and the database in sql my table is very big some times 3million records when i execute this select statement "select * from table 1where PrimeKey in (select fkey from " & tablename & " where sort >= " & first & " and sort < " & last & ")order by " & sort1 & " desc " adp = New System.Data.SqlClient.SqlDataAdapter(str, conn) adp.Fill(datatable) conn.Close() adp.fill take a time and the this message appear an error has occured error time out expierd the time out perieod elapsed prior to completion of the operation on the server is not responding how can i avoid this error ...Show All
SQL Server Trying to use Stored Procedure in a select statement
Hi there, I am trying to return data from a select statement that is running a stored procedure. I am running on SQL 2000 SP4. I have created a 'loopback' linked server as described in a technet article. (It's pointing at itself) I can then use the following select statement to get data back in the select statement from a stored procedure. select * from openquery(loopback,'exec DWStaging.dbo.PokerStaging') I am trying to get data back from my own Stored Procedure, but continue to get the following error: Server: Msg 7357, Level 16, State 1, Line 1 Could not process object 'exec DWStaging.dbo.PokerStaging'. The OLE DB provider 'SQLOLEDB' indicates that the object has no columns. OLE DB error trace [Non-interface error: OLE DB pr ...Show All
Visual Basic Send mail in .NET
I'm new to .NET and i'm trying to send mail using VB.NET. Here is the code snippet. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send(" xxx@abc.com ", " yyy@abc.com " , "Test" , "hi" ) MsgBox( "sent" ) Catch ex As Exception MsgBox( "Send failure:" & ex.Message) End Try I get the following error "Failure sending mail". could anybody help Thanks in advance. Question to anyone. I have the following code that sends emails from an ASP.Net form using VB as the language: Dim Msg As New Web.Mail.MailMessage Msg.To = [email address To] Msg.From = [email address From] Msg. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. newbie question
Hi, i have 3 questions regarding direct3d 1. Lets say i have a 3D cube, and i want to show its wireframe. I can achieve that by g_pd3dDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);, but how do i show the wireframe without the internal triangle lines drawn In other words, how do i show a cube with just its edges and not the trianglelines which makes up the cube 2. I have a device (g_pd3dDevice) which i render an .X file to it. I need to do some image processing on the pixel buffer. How do i get the pointer to the pixel buffer Where should i do this I'm using the simple tiger.x sample from directx sdk. Pls help with some code example. 3. How can i render an object with fillmode = shade and fillmode= wireframe on the same i ...Show All
Visual Basic show dialog form
Hi, I have a event click from a menu item that opens a dialog form. ***************** Code from main form that open a new form ******************* Private Sub MenuItem_GereFicheiros_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem_GereFicheiros.Click Dim frm As New frm_configFile frm.ShowDialog( Me ) frm.Dispose() End Sub My problem is when, in dialog form, I click button to save data and when goes "END SUB", close the form. Why this happens ********************** Code from dialog form, after finish the Sub code, my form close and I don't know why ***************** Private Sub btn_desactivarFicheiro_Click( ByVal sender As System ...Show All
Software Development for Windows Vista WWF and custom activity. Workflow terminates with exception
I have created a custom activity which inherits from SequenceActivity. The class name is ApprovalRequestActivity In the designer of my activity I have added a stock Replicator activity. Inside the replicator activity I have added a stock ListenerActivity. Inside the Listener activity, I have two activities one is a delayActivity and the other is a HandleExternalEventActivity. I have dragged this custom activity onto my workflow and it looks good and I can set its properties etc. Further, the solution compiles with no errors. When I execute the workflow through ASP.Net, it seems to initialize my activity because I have added event handlers for the Child_Initialize events. I have also put some logging code int eh Execute method of my activi ...Show All
