Software Development Network Logo
  • Smart Devicet
  • Microsoft ISV
  • VS Team System
  • Visual Studio
  • Game Technologies
  • Windows Vista
  • SQL Server
  • Visual C++
  • Windows Forms
  • .NET Development
  • Visual Basic
  • IE Development
  • SharePoint Products
  • Visual FoxPro
  • Audio and Video

Software Development Network >> Pi314159's Q&A profile

Pi314159

Member List

Minherz
guy kolbis
R.Tutus
Afr0
WebSigMan
Quirm
axelfxxx
skylimit
pgmdsg
SweptSquash
lurdan
Elliot Rodriguez
SJROOKER
::BulletMagneT::
nate-d-o-double-g
Dan_Dan
babka
David Chalmers
matthiashilpold
McGeeky
Only Title

Pi314159's Q&A profile

  • Visual C# Public field not accessible, forced to create an accessor...why?

    I have run into this multiple times in the life of the app I'm working on. The scenario is simple. I've got a public field in a class that I create an instance of. I cannot access the variable via an instance, but I can if I access it via the base type or if I make it private and create an accessor. Initially, before adding the accessor, both the field and class are public and not static. The only pattern I can follow is that it is consistent across classes. Either all the public fields are open in a class or none. Any ideas on things to look at I can post some code if it comes down to it. Thanks! Greg Hi, Another thing you should be aware of with const variables are that they are replaced at ...Show All

  • Internet Explorer Development Chinese IME can't Run Under IE7 Protected Model

    I am developping IME For Windows System. When I loading IME in IE7 in Vista,I find that if IE7 run In Protected Model The IME not Working. if IE7 not run In Protected Model,The IME is normal . the problem is that IME send messages to IE7,and IE7 send these messages to IME UI,but in protected model the IME UI can't receives the messages,thus the IME can't display compostion window and candidate window,how to solve it. Thank you. Hi, Sohu: If you call ChangeWindowMessageFilter for the messages you expect to receive from IE, your IME should operate as expected. regards, --Todd ...Show All

  • SQL Server Runtime temporary table in SQL2000

    I am trying to create a runtime temporary table at SQL2000 server in my VB 6.0 program. However, I am keeping getting "object not found" error from my program when I trying to issue a SELECT or INSERT statement in my program. Can anyone shows me how to do it properly. I thought I can create a temporary table with a # prefix as a table name. Am I correct Help is very much appreciated. John Tsoi If you are using connection pooling in your application you will grab "a" connection, does not need to be actually the one where you created the temp table before. DIsbaling connection pooling will help you in this case, but might not be the best solution. What about using a stored pr ...Show All

  • .NET Development Add new record

    I learned how to edit a record, but now how do you add a new record Dim workRow As DataRow = workTable.NewRow() what is a datatable this is my hang up for now Davids Learning OK, I'll answer one question with a code example and then add some additional comments. A datatable is a type used in .NET to allow tabular data to be stored. If you familar with a database, then a datatable is a type that can be used to represent a table from a relational database. As its not a table in a database but a datatype that can be used to represent this data - it can also be created and used independently of any database to allow collections of tabular data to be used in you application. An example of cre ...Show All

  • SQL Server Time intelligence

    I was trying to using the BI wizard and add time intelligence, but when I try to do so, I get an error stating: "One or more dimensions do not have a data source view. The time intelligence wizard can only be run if a data source view is present." Does anyone know how to get around this error Thanks! ...Show All

  • Software Development for Windows Vista Config Properties as Dependancy Properties?

    What is the best way to get .config values into my activities My initial thoughts are to create DependencyProperties which I set via AppSettings in the Workflow, and just bind them to my Activity properties. Is there any way to bind directly to them I guess this will also apply to Web Services, how the WSDL url is dynamically changed during deployments etc. Thanks, Dave Wow, I am suprised that we can't just bind to publicly exposed config properties, but I guess I can just add DependencyProperties in the Workflow code and manually hook these into my attributes - I was thinking of things like my Custom Email activity, which needs things like SMTP Host, User Name/Pwd etc.. Thanks for the help, Dave ...Show All

  • Visual Studio 2008 (Pre-release) Diagonal Rectangle/ Size of Canvas

    I'm trying to draw a rounded rectange from one corner of a canvas to the other. (ie top-left to bottom-right). I thought this would be fairly simple, but I can't figure out how to get the size of the canvas to control the rectangle length. How would I go about doing that -- Big Picture --- Word Search program where a each Grid cell contains a TextBlock, I'm trying to draw a rectangle diagonally around a word. I've marked the region with a Canvas going from the top left cell to the bottom right.. ----------------------- ==== Kiel I'm afraid I mustn't of described my problem well enough. Thanks though for the reply Unni. I ended up finding a totally different way of solving my problem ...Show All

  • Visual Studio 2008 (Pre-release) Eliminating a control if it binds to null

    I have a series of controls in a Gridview cell that are in a StackPanel binding to various fields on the same object. If one of the controls binds to a field that is null, I would like that control to not get created and all the controls under it to shift up. I've tried two ways, but I'm not very excited about either one. 1. Created a CellTemplate with a DataTrigger that checked the data and set the Visibility to collapsed. This has the right look, but my data is pretty sparse and I would like to only create the controls I really need. 2. Create serveral CellTemplate's. One for each purmutation of controls, and use a template selector. This works great for 2 or 3 controls, but gets out of hand rather quickly as I have to create 2^n t ...Show All

  • .NET Development How to compare 2 files...?

    Hello All of you, I have a little problem. I working on a small project and in this moment I'm stuck. I need to see that 2 files have the same content, I know I have to use StreamReader and StreamWriter, but how do I do it easiest... I hope you can help Me and my friend are using Folding and a person in our class is changing the file so it is going to run as a service. Could you give an example to implant.... I don't see how to do it.... (I'm a noob yes.). And one more quastion do you know how to check every 30 second... I tried with itteration....but....., so do you have some references.... ...Show All

  • Windows Forms Possible DataSources for a TextBox (Help Please)

    My question is this: What can be used as a DataSource for Formatting Text a Certain way The type of Text Formatting i'm working on in my project is a Casscading Style Sheet Generator,for a Site already In use(sorta like myspace.com)... Can you have a TextBox Read & Apply the text on a StyleSheet (CSharp) or would it have to be say a XML file Than the Form Controls will Edit the right sections of the CSS Example : table.user_aboutme { border:2px dashed #6694cf; <----------- Auto Insert of Color from CSS Supplied to the program text-align:left; padding: 2px; } td.user_aboutme_hdr { text-align:left; color:#2d7bbb; <------------------- In Every Spot threw out the CSS Supplied(DataSource) background-color:transparent; ...Show All

  • SQL Server AVG Measure

    In AS2005 how i make a measure with tha aggregate function avg Thanks Javier, To create a new calculated member, go to the calculations tab in your cube in BI Studio and then do one of two things, click on the "New Calculated Member" button on the tool bar. It looks like a calculator - or you can go to the menu and select "Cube", "New Calculated Member". Once you have done that, you should put the name at the top in the box labeled "Name". (Average). Then in the "Expression" box, put the calculation. What you have looks correct, although it would probably throw an error if you divide by 0. I would suggest getting your cube created w/o the calculated member and then pul ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 2D Sprite Rotation Issue

    For some reason my sprite will jitter while moving if I rotate to 270 degrees (it flips at exactly 270 degrees). Any suggestions float xSpeed = (float)(Math.Sin(Angle) * mSpeed); float ySpeed = (float)(Math.Sqrt((mSpeed * mSpeed) - (xSpeed * xSpeed))); if (adjustedAngle < 0) { ySpeed = ySpeed * -1.0f; } if (adjustedAngle < -180) { ySpeed = ySpeed * -1.0f; } if (adjustedAngle < 90 || adjustedAngle > -90) { xSpeed = xSpeed * -1.0f; } if (adjustedAngle < -270 || adjustedAngle > 270) { xSpeed = xSpeed * -1.0f; } ...Show All

  • Visual C# Post to the web?

    What would be the best way to go about posting to the web For an example, Commenting someone on Myspace or PMing someone on a forum Any ideas as far as I know you can't really do this, unless you are using some newsreader or something. You can implement a webbrowser control in your application but really would be the same thing as accessing IE to access the forum or something like this. ...Show All

  • Windows Forms CPU usage

    Hi, I am looking for a simple way to diaplay CPU usage and (if possible) memory usage on a windows form. Cameron. The code came up with a few errors; 1. Error 1 'System.Diagnostics.PerformanceCounter.NextValue()' is a 'method', which is not valid in the given context. 2. Error 2 'System.Environment' does not contain a definition for 'Newline'. 3. Error 3 'System.Diagnostics.PerformanceCounter.NextValue()' is a 'method', which is not valid in the given context.   ...Show All

  • Visual C# Attempted to read or write protected memory in a blank form

    While testing one applications in C#, I encounter a problem and the error message was some memory error and restarted VS. After that what ever application, those were working fine earlier is giving me the following error message:   “Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”   Finally I though of creating a new application, surprisingly here also I got the same error. It is a new Window Application in C# containing a single form with out any control on it. When I run the application it stops at the below line in private void InitializeComponent().   this .AutoScaleMode = System.Windows.Forms. AutoScaleMode .Font;   I comment that l ...Show All

©2008 Software Development Network