suzy_mathew's Q&A profile
Windows Forms Windows Forms 2.0 Slow - MDI Application + TabPage+ Datagridview
Hello! I’m creating a windows forms MDI application and having problems with performance: Problem: I created a MDI child form with a tabcontrol.The tabControl have 2 tabpages.The first contain 3 group boxes and the total of 50 controls (textbox,combobox,lists and buttons).The second have a label and a datagrid view. Running the application , i noticed the form drawing(rendering ,flicker ) ,and when i switch between tabpages again the drawing. The DoubleBuffer property is on (true) and the problem persists. I already see the transparencekey and other properties , including the background color , but no results . Thank you Tiago After further investigation it would appear that the problem is in some way ...Show All
Visual C# finding file size
hi I need to know the size of the file which I am going to read with a stream. but I can not find any way to have the size of the file. regards you can use the FileInfo Class to get the file size. the length property return the size of the file. FileInfo f = new FileInfo("File Path"); f.Length <- return the size of the file. ...Show All
SQL Server Matrix grouping/visibility
I have tried several combinations, but I can't quite figure out the solution to this one. I have a matrix set up that is giving me the results I want, but I need to do a conditional visibility and still have what I need. I have a column that is filled with operation numbers and a row that is filled with item numbers. The detail is for work centers and it shows where each of them fall in the grid. I need to say to show all work centers that apply where the workcenter parameter matches. I was able to filter and say only show me this workcenter, but I want to show just those, but then if this workcenter would show up, show me the rest. BJ bj By right click on the detail column and selecting propert ...Show All
Gadgets location.reload(true) kills the System object?
I stuck a reload button in my gadget so I could easily refresh it to see the effects of changing something in the code. The onclick handler for the button is onclick="window.location.reload(true)". This does in fact reload the HTML and JS. But it seems to also kill the System object hierarchy. The code "Display.innerText = System.Gadget.name;" works the first time the gadget is added to the sidebar. Then I click my reload button and I get an error trying to access the System object. If I wrap the call in a try/catch and look at the error, it says "'System' is undefined". If I then close the gadget and re-add it to the sidebar, the System object comes back. I'm running the final version of Vista Ultimate ...Show All
SQL Server Database Mail SQL 2005
I'm having a problem with database mail in SQL Server 2005. I have set up a default profile. My SMTP server is not a localhost instead i've fed SMTP ip address and port no. The same setting in Outlook express works fine for Incoming and outgoing mails. but in SQL 2005 i'm not able to send test emails. The following errors show up in the sql server agent log Message The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3 (2006-06-13T10:47:27). Exception Message: Could not connect to mail server. (An established connection was aborted by the software in your host machine). ) Please help me out.... Hi, I would use something like ...Show All
SQL Server merge replication - how can I synch
we have a merg replication running in three regions UK,USA and AU my question is in one of our test environment testers managed to get a few tables out of synch while the replication is out. we have re-established the replication since then and it worked fine untill they try to update records from those out of synch tables. as usual we get conflicts. we don't really know how many tables are out of synch either. we have about 500 tables. is there a way to synch tables from with in the merge replication You can use the tablediff.exe tool to diff all 500 tables if that's feasible for you. To help reduce conflicts, you can also partition the data so each region has a subset of the data, e ...Show All
Visual C++ Inverse Abel transform
Hi, I was wondering if anybody knew of any visual c++ code to transform an array of values into an array of radial densities (inverse Abel transform). I'm trying to create radial concentrations of an object from single x-ray projections. Thanks, Mark ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating and rendering a YV12 Texture
Hi all, I'm using Direct3d + C# I want to do 2 things: 1) Create a YV12 texture. 2)render a YV12 information on it. choclate for the man who helps me :) If your card supports that texture format as a render target, then it's pretty straightforward. Just create the texture and bind it as a render target, then start rendering over it. However, I've never heard of YUV render-target support on PC before. If you have YUV support but not render-target support for YUV format, then you can use D3DXLoadSurfaceFromSurface() to transfer and convert rendered surfaces to your YUV surface, but it's not gonna be a real-time solution though... ...Show All
Visual Basic progress bar
I am trying to put a progress bar on a media player can you help please Public Sub Readtrack() ProgressBar1.Minimum = track start() ProgressBar1.Maximum = track end () Dim i As Integer For i = 1 To 100 ProgressBar1.Increment( ) Next i End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Bar1.Minimum = 0 Bar1.Maximum = 100 Dim TrackLength As Integer = mediaplayer1.Duration Dim TrackPosition As Integer = mediaplayer1.CurrentPosition Dim trackPercentageCompleted As Integer = 0 ...Show All
Visual Basic decimal places on numbers
when I put a number in a text box, the number usually has a long decimal component. I was wondering how I can put a number in a text box and control the format of the number like xx.xxx or xxx.x or x.xExx or something like that. Take a look at system.string.format method http://msdn2.microsoft.com/en-us/library/fht0f5be.aspx This will allow you to control string formatting. All sorts of examples of all sorts of formats. ...Show All
Software Development for Windows Vista ASF writing to memory
Hello I have a DirectShow app that uses the ASF writer to capture video from a webcam and write it to a file. I was wondering if there is way to write the data to a memory buffer instead of a file. My application will upload the file, so I will be happy not to use the file system. Thanks Ran. Hi and thanks for replying. You are right, I can use a frame grabber but then I will loose the ASF compression. The FS is not my bottleneck from a performance point of view. The reason I was thinking about memory is that I want to deploy my application using ClickOnce. I know that I can ask for FS permissions on a ClickOnce app, but since my videos are short and I want to upload them, it would be be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. world coordinates 2d tile map
hello all.. i have a little problem.. i usw a 40*40 tile map. visible is a area of 12*15. everything is working very well.. also the scrolling... how can i calculate the world coordinate of the map... i do it this way.... else if (_Spieler.Aktiv.ScreenPos.X < 150) { // Der Panzer wurde weiter nach unten rechts (Drehwinkel im 1. oder 2. Quadranten if ((_Drehwinkel >= ( MathHelper .Pi)) && (_Drehwinkel < ( MathHelper .Pi * 2))) { // Map scrollen _Map.MapScrollen(_Spieler, _Map); } else { _Spieler.UpdateVorwarts(_Spieler, _SpeedVor); } } this makes the player moving or the map scrolling... if the map is scrolling i substract the ne ...Show All
SQL Server transform Active X script to what?
HI I'm totally new to integration services, I was savy with DTS but now having been told to get on with it in SQL 2005 I'm a bit stuck. I've got an ActiveX task which basically does the following:- Function Main() DTSDestination("Title") = DTSSource("Title") DTSDestination("Surname") = DTSSource("LastName") DTSDestination("FirstName") = DTSSource("FirstName") DTSDestination("OtherNames") = DTSSource("PersonCode") IF (IsNull( DTSSource("LastName") ) ) and (IsNull( DTSSource("FirstName") ) ) THEN IF Not (IsNull( DTSSource("PersonCode") ) ) then DTSDestination("Surname") = DTSSource("PersonCode") El ...Show All
Visual Basic JIT Debugger Error message caused by filelistbox
I have been working on a program and testing it on another computer that has the .Net framework installed. My program works fine on my computer with .Net installed. However, when I run it on the other computer (with only the framework installed) I get a random error: MyApp.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0xf3c (3900), Thread id=0xf64 (3940). [The numbers in this error line are different everytime] When I hit cancel to debug it displays MyApp.exe - No debugger found. Registered HIT debugger is not available. An attempt to launch a JIT debugger with the following command resuled in an error code of 0x2 (2). Please check co ...Show All
Windows Forms Rotating Pictures
I have an application written in C# with a PictureBox with an image loaded. Is there a way I can create some type of method where the image in the box can change with a mouse click Thank you! Hi, the following code will rotate the image in PictureBox on each click: private void pictureBox1_Click( object sender, EventArgs e) { pictureBox1.Image.RotateFlip( RotateFlipType .Rotate90FlipNone); pictureBox1.Refresh(); } I hope this answers your question. Andrej ...Show All
