RayCan's Q&A profile
Visual Studio Express Editions Fill an array from a text file.
Sir/Madam, I need to fill an array from a text file. My text file looks like this for different people. First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone Do you know of any way to put these into an array from a text file where the "|" symbol seperates the columns Any help would be greatly appreciated! My vb isn't that good... this should get you started Imports System.IO Module Module1 Sub Main() Dim i As Integer = 0 Const MAX_ROW As Integer = 5 Dim Coll(MAX_ROW) As Array Using sr As New StreamRead ...Show All
Smart Device Development textbox flickering
I want to use a multiline textbox for editing purposes. the best way to reduce flickering of the textbox once the text reaches a new line is this code. textbox1.SelectionStart = textbox1.TextLength; // put the cursor at the end of line textbox1.SelectionLength = 0; textbox1.SelectedText = str; textbox1.ScrollToCaret(); is there a better way to eliminate totally flickering I saw people are using API calls. if you have a working example would u mind to share with me Thank you I have tried this but now gave me errors at Message.Create(textbox1.Handle, EM_REPLACESEL, null, str); Error 1 The best overloaded method match for 'Microsoft.WindowsCE.Forms.Message.Create(System.IntPtr, int, System.IntPtr, System. ...Show All
SQL Server Materialized reference dimensions
I have a cube that has a chain ofreferenced dimensions in it. Analysis Services says all the dimensions in the chain must be "materialized". In fact, it demands it. But when I set them to "materialized", the cube won't process. I get this error message: Errors in the OLAP storage engine: An error occurred while processing the '2004Trx' partition of the 'Membership Counts' measure group for the 'Memberships' cube from the DimensionsOnly database. I'm stuck. Anyone have any ideas on how to get around this Thanks. Are there more messages you are getting along with one you mention above Is there missing key or something like that Edward. -- This posting is provided &quo ...Show All
Windows Forms Dialog form is hidden sometimes
Hello all. In my application I have some form that I show modally. DialogForm frm = new DialogForm(); frm.ShowDialog(); So what's happening sometimes.... frm is "hiding" before the main applciation form. And it looks like that application is frozen (its because frm is active now but does not have focus). Is it a bug in .Net If you open that dialog from a method of your main form, pass the this pointer as parameter to ShowDialog. That makes it modal to your main app. -- SvenC ...Show All
Visual Studio Team System Code metrics in Visual Studio 2005
Does visual studio team system have any built-in abilities for c# code metrics, such as: count lines of code in a *.cs file, in a c# project, in a method, in a class, in a property accessor count lines of comments in a *.cs file, in a c# project, in a method, in a class count number of fields, properties, methods, classes, etc. inside a in a *.cs file, inside a c# project, inside a class (and distinguish between accessibility of those fields, classes etc.) For example I would like to be able to count the lines of code (without comments and white lines) in all Set-Accessors of Properites that are public throughout the whole c# project. If not, what would be a good and reliable plugin for visual studio team system that does ...Show All
Silverlight (formerly WPF/E) Differences between WPF/E and Flash
Hi, I searched a lot on topic "Flash Vs WPF/E" but I could hardly get any concrete information. Can anyone suggest any useful information, URLs on "Comparative study between Flash and WPF/E". Regards, Santosh Kalkeri The most substantial difference is that a Flash .swf file has all of the assets inside it (scripts, images, sounds, etc.) while the WPF/E is XML file where the assets must be in separate files. For web-based deployment, this is insignificant for people viewing the graphic. I am sure that by the time WPF/E ships, it will be at least functionally similar to Flash. Michael S. Scherotter Solution Platform Product Manager Mindjet Corporation ...Show All
SQL Server EXECUTE master.dbo.xp_delete_file
I need to delete a file in a job as a step on a different server. is there something simillar to this command in sql 2000 EXECUTE master.dbo.xp_delete_file 0,N'D:\DevBack',N'bak',N'10/16/2006 15:16:22' and what will the command look like if I need to delete only files older than 3 days please help the command goes across the network like this EXECUTE master.dbo.xp_delete_file 0,N'\\100\00\00\02\DevBack',N'bak',N'10/16/2006 15:16:22' ...Show All
SQL Server Udding Users and Groups
Hi, I am using Sql Server and excel. I create an excel report using pivot tables and the likes that is connected to a sql database and queries three views. It works fine for me because I have access to the DB. But I want everyone in my office to beable to read this excel report. When another user tries to access it, it doesn;t allow them to connect to the DB through ODBC. I was wondering how to add a group, from active directory called Everyone, to my SQL server so that everyone in my office can read this EXCEL report. I can add a user but not a group. I was given the task of managing the DB as our IT guy left and I really was left to the wolves as this isn't really my area of expertise... redhanz ...Show All
Visual C# What Is The Object Data Source?
What Is The Object Data Source Do you mean the control If so take a look at this MSDN description . It is also worth noting that if it is the ASP.NET control you are talking about, future questions of that sort would be best directed to the ASP.NET forums . ...Show All
Visual Studio Express Editions image with grid coordinates?
Hi, Is there any way to define an image with grid coordinates in order to use the mouse over event Ken That’s anywhere on picturebox1. What if I want only a range to respond to the mouse down event, for example if the mouse is in these coordinates 22 , 62, 13, 7 ...Show All
Visual Studio Express Editions Smtp Exception?
I was trying out an email code when I found this error: A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.dll Here is the code I was using: Imports System.Net.Mail Imports System.Reflection Imports System.Net.NetworkCredential Imports System.Text Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Body As String = "Message goes here" SendMessage( "to@yahoo.com" , "from@yahoo.com" , Body, "Subject goes here" ) End Sub Public Sub SendMessage( ByVal [To] As String , ByVal Fromm As String , ByVal Body As ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen shots on the Xbox 360
I'm simply wondering if there is a way to somehow capture the backbuffer contents to a file on the xbox 360 and then transfer that file back to the PC I've checked the framework docs and this forum and it doesn't seem to be possible, but I'm hoping that I am wrong. :-) A screenshot looks slightly less amateurish on a website than if I photograph my TV, even though it still looks like programmer art. The one solution I have come up with is to run the same code on the PC and capture the screen that way. The problem is that my PC GPU isn't on par with the Xbox 360 and I would prefer not to have to write separate shaders just to enable me to capture the screen. Plus, the screen shots would be uglier. Sh ...Show All
Visual Studio Report Viewer Paging
I have developed an application with report viewer which is processing in remote mode. currently i have provided paging also.I want to load the data for only that page in which the user is currently in. will it be possible to do so. if so wat event should i trap. ReportViewer does not have an option to only load the data for the page the user is viewing. Data for the entire report must be provided upfront. You could design your RDL such that the report only contains one page. Then hide the default toolbar of ReportViewer and supply your own page navigation controls. When the user navigates to the next page, re-execute the report with data for the next page. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to record the High score of the game, must use database :,{ ?
I wish to record the high score of the game player, can anyone tell me how can i make it I think i can not use only the variables to make it, because all the data will lost after i closed the game. If really need to use database, then can anyone give me some link of free tutorial. Thanks A database would be overkill for just a high score being stored on local computer. You can just save it to an XML file in your game folder if you just want a simple solution. Encrypt the file or the text however you want to if you do not want the user messing with it. So you do not need a database for saving a high score for a game being play locally. However if you are needing a central location to store all of the high scores for all the playe ...Show All
Visual Studio 2008 (Pre-release) Getting Started with Interactive Designer (blur with XAML & CS code)
I am just getting started in Interactive Designer. The problem i facing now is unclear with the XAML code as well as the CS code. Do the XAML is only control the UI and CS is to control the page events Secondly is regarding to code some interactive events in page designer So, it is code through the XAML or CS code Thanks ... Does anybody know of a EID 101 type of tutorial somewhere I am looking for something really really basic... :) Thanks... Jason ...Show All
