Mar_GP's Q&A profile
Visual Studio Express Editions Listing files in an array
I am not sure if this is possible, but does anyone have code for listing all the "jpeg" and "bmp" files that are in My Documents, and then placing them in an array I tries to get this working, but had no success at all... Hi, Use the Directory.GetFiles function. It returns an array string for all the files matching a pattern. http://msdn2.microsoft.com/en-us/library/wz42302f.aspx cheers Paul June A. Domag ...Show All
.NET Development The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
I have a routine that will uses the ftpWebRequest to retrive the .ListDirectorys and on the first pass is fine.. What i need to do is turn right around and ftpWebRequest again to the subDirectorys of the parents that i just got from the first ftpWebRequest.. However i am getting this error.. I have closed every connection that i know how to and it is still open some where ( are at least i think this is where my error is coming from a connection open. ) ------------Below is the code that i am using from the FtpWebRequest----- and nothing else... Can someone tell me how to close this connection please thanks erik public static List < FileDirInfo > GetFileAndDirNames( string remotePathUri) { if (remot ...Show All
Visual Basic Faced Similar Problem with Images
You might check out http://www.lepharerouge.com/Image.htm They apprear to have an approach to multiple image management. Fred ...Show All
Windows Forms Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. I get this error now every time I try to view a designer for a form. I delete the Bin and Obj folders and recompile and then after trying again I get the message: The path is not of a legal form. What is causing this JeffGraves wrote: I am trying to download this hofix, and I get a web page telling me it is not available. I really need this hotfix!!!! What do you mean it's tell you it's not available, the page details that you must contact customer support to get the hotfix. ...Show All
SQL Server Conversation group id question
HI I have an example ( see below ). I expect to have all messages sent using this code to have the same group id but they are all different. what I am doing wrong Leonid. DECLARE @conversationHandle uniqueidentifier DECLARE @usergroup uniqueidentifier select @usergroup = uid from bvuser where userid = 1 select @usergroup Begin Transaction BEGIN DIALOG @conversationHandle FROM SERVICE [BvMainResponseService] TO SERVICE 'BvMainService' ON CONTRACT [BvMainContract] WITH RELATED_CONVERSATION_GROUP = @usergroup ; -- Send a message on the dialog SEND ON CONVERSATION @conversationHandle MESSAGE TYPE [BvTaskMsg] ( N 'Test' ) commit ...Show All
Visual Studio Express Editions Explorer in checked list box?
How do i get a checkedlistbox to show window files (like in windows explorer) thanks in advance. Real simple. Its easy to show in an example. this example will display a list of files in the current user My Documents folder. It uses the System.Io.Path.GetFilename to only show the filename rather than the full pathname. And uses the My.Computer.Filesystem.GetFiles to get a list of filenames. Simply iterate through this list and add to the checkedlistbox items collection. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each foundFile As String In My.Computer.FileSystem.GetFiles _ (My.Computer.FileSystem.S ...Show All
Visual C# Formating File output
I am saving data from a listbox into a .RTF file. How can I format the data to align to the right and format the text color Thanks. you can set the font style etc... using the SelectionFont property and applying it to the text selected. The same applies for the color - use the SelectionColor property and set the Color you like through its enumerator You can set the alignment of the text selected using the SelectionAlignment property, and set it to left/center/right. ...Show All
SQL Server Group age by a parameter and find out the value corresponding to that.
Hi guys... My goal is to change the given stored procedure so that I can find out the different age gorup according to users parameter and find out sumof these values for that group: s.TVmins, s.Notional$, COUNT(*) AS Qty, SUM(s.TVmins) AS TVMinsAmt, SUM(s.Notional$) AS NotionalAmt For that I am planning to put another parameter @count for the group interval and I need to group accordingly. So my answer should look like: if the user give the @count value as 10: the result should: age group TVMins Notional 1-9 1560 125632( the sum of that particluar group) 10-19 -- -- --- 91-100 -- --- I have a field DOB( Date of birth) , I have to extract age from that field first and then g ...Show All
Visual C# Process Module
Hi, I have an application which lists all the running processes of the machine and i need to get the full path from which the process is running. I am trying to use the following methods : Process.MainModule.Filename Process.MainModule.ModuleName The above code doesn't work it throws an exception "Unable to enumerate the process modules" any thoughts Regards Alan Hi Kaiser28, I guess this is a security issue. Make sure that you: - run the app with full trust - test the app as local admin // you might need debugging privileges to access other processes - run as admin if running in Vista with UAC enabled There might still be situ ...Show All
SQL Server Help! Enterprise Manager Turns SQL Server Service Manager Off
IF someone can assist me. Everytime I load up enterprise manager the service manager turns off. And the enterprise manager can't connect to the local database. But everytime i turn it back on and try to connect again it shuts it off and around and around we go. Help would be appreciated. Thanks. Basically my local SQL disconnects automatically whenever I try to even access my local tables. I don't know what's causing that. When i'm not trying to access it, it stays on. Otherwise it just turns off. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using xna with windows forms???
Is it possible to draw with Xna, on my windows form, if so, how because when you have it draw, the normal way, it automatically pops up its' window, also, even if the 1st one is possible, game components are like controls correct Could somebody also point me in the direction of\ tell me how to use them, the basics, otherwise I wouldn't be asking this question, I just started working with Xna. See Toni's Space here . I'm not sure if he's converted it to beta 2 yet, but it should help you out. ...Show All
Visual Studio Team System TFS and Microsoft Project - Editing Description and other things
Is there a way in Microsoft Project to change the description of a Work Item Some of our managers work in the MSP world and publish directly to TFS from there. However, from MSP they cannot (or haven't found a way) to edit the WI's description / links / attachments etc. Is there a way for them to do this in MSP without going into Visual Studio I believe that would have to create a field mapping for the Description field to MSProject in the Process Template. You can do this by modifing the FileMappings.xml file in the Classification directory for the template. From the Team menu you would access the Column mappings option to select the Description column to appear. As for the Links/Attachments, you can modify/add/remove these ...Show All
Windows Forms Writing exe path to registry.
How would I write the path of the current program I am running to the registry using either the load event or in a setup program Thank You! I'm sorry, I worded that wrong. How could I get a setup program, when run, to write the path of the install directory to the regristry ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to silently ignore missing textures?
I need to silently ignore missing textures files from my models. I think this should be done by overriding the BuildTexture in the MaterialProcessor. How can I do this Thanks, [ContentProcessor] class MyModelProcessor : ModelProcessor { protected override MaterialContent ConvertMaterial(MaterialContent material, ContentProcessorContext context) { return context.Convert<MaterialContent, MaterialContent>(material, "MyMaterialProcessor"); } } [ContentProcessor] class MyMaterialProcessor : MaterialProcessor { protected override ExternalReference<TextureContent> BuildTexture(string textureName, ExternalReference<TextureCont ...Show All
.NET Development How to delete content of a Stream?
Hello there, How to empty a Stream object or clear it's contents before writing to it Any help would be greatly appreciated. TIA, Kris SetLength(0) might not work on certain files that have some known structure, like a zip file, or an image. It does work for a file with raw data in it. ...Show All
