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

Software Development Network >> Nick W.'s Q&A profile

Nick W.

Member List

GlennZarb
Wheeldo
Poma
nglow
Tianyu Li
Blast
netpicker9
Hosam Kamel
George Waters
ShikhaVaid
NetPochi
doug.taylor
Rykie
eric02
Josh Pendergrass
Tryin2Bgood
Gidjett
ThEpRoPhEcY373
Bodylojohn
B Lambert
Only Title

Nick W.'s Q&A profile

  • .NET Development Parsing files with XML and other junk

    I Need to parse files that contain xml, scan for specific elements like: <ELEMENTO id="XX" type="XX" > <DATE>XXXX</DATE> ..... <WHATEVER> XXXD</WHATEVER> </ELEMENTO> and populate a list of objects that look like: class Elemento { Dictionary<string, string> attributes = new Dictionary<string, string>(); Dictionary<string, string> values = new Dictionary<string, string>(); ........ } I wonder if is possible to read the file with a Stream and pass only the string between <ELEMENTO> ...... </ELEMENTO> to parse with XmlReader, so if it throws an exception I can continue with the next "elemento" A bad solution (the only one i hav ...Show All

  • SQL Server Installing/Configuration

    Hi, I'm pretty new to this reporting services thing. I've installed it on my PC and it runs fine. However, other PCs on my LAN can't access the reports through their browser. I think there is an issue with IIS also involved because they cannot even browse to the default website on my PC. There may also be some security related issues as well (with IIS, Reporting Services and my SQL Server 2005 database). Is there any step by step guide on how to configure all these three things properly for remote access available that anyone can recommend Or can anyone give me advice Thanks, Frank Does the URL use the IP addy or machine name when they try to access the default website If uses the machine name, try the IP address. Are y ...Show All

  • Visual Basic Unloading a picture from a picturebox in VB.net

    I have done some code to load a picture in an array of bytes. The data is saved in a file in the Hard drive. There is also another piece of code to display the image. My issue is that I need to unload the picture before the user press the button to refresh and therefore reload the image. Generally I would have an error when I try to download the file and save it. I will have an error that the file is being used by another process. Noticed that picturebox1.load = nothing will unload the picture from the picturebox but it will not close the file completely before going the next instructions. Checking "If picturebox1.load is nothing = true will be true and therefore there will no way to identify if the file has been closed or not. I do ...Show All

  • Windows Forms Problem displaying image with alpha

    Hi, I'm having some problems displaying an image with alpha. Here's what I have // get the image bits from an handle IntPtr imgBits = GetSurfaceBits(m_surfaceId); // create a new bitmap from these bits m_bmp = new Bitmap(512, 512, 4 * 512, PixelFormat.Format32bppPArgb, imgBits); To display it: private void panel1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) { // clears the panel to blue g.Clear(Color.CornflowerBlue); // this doesn't do anything if (m_bmp != null) g.DrawImage(m_bmp, 0, 0, m_bmp.Width, m_bmp.Height); } } I'll just get a blue panel when doing this. The bitmap is correct because if I do: m_bmp.Save("test.png", ImageFormat.Png); the image gets saved correctly ...Show All

  • Visual C++ disabling implicit conversion from const char* to std::exception

    Contrary to what you might expect, this simple code fails to compile under Visual C++ 8: #include <stdexcept> #include <string> namespace { class TestClass { TestClass(const std::string& str) {} TestClass(const std::exception& ex) {} }; } int main() { TestClass testClass("test"); } The compiler bails out saying: c:\build\test\source1.cpp(14) : error C2668: '`anonymous-namespace'::TestClass::TestClass' : ambiguous call to overloaded function c:\build\test\source1.cpp(8): could be '`anonymous-namespace'::TestClass::TestClass(const std::exception &)' c:\build\test\source1.cpp(7): or '`anonymous-namespace'::TestClass::TestClass(const std::string &)' while trying to match ...Show All

  • Visual Basic Command Button - Delete Key

    I have a command button named "cmdRemove" When I click that button, it removes one value from my current ComboBox value list. My question is: Is there any way to substitue a key for that button. So instead of clicking button, I can click "Delete key" and that will do the same as clicking my "cmdremove" button. so you want when the focus is on the cmdRemove button, if a delete key has been pressed to invoke the button ...ok...doesnt make much sense but ok :-) implement the keydown event then....   private sub cmdRemove_KeyDown(byval sender as object, byval e as KeyEventArgs) handles cmdRemove.KeyDown    if e.KeyData = System.Windows.Forms.Keys.Delete then  & ...Show All

  • Software Development for Windows Vista Vista and Symantec Ghost 8.x

    Ever since build 5231, I've found myself unable to use Ghost (8.0 or 8.2) "as I've always been able to".  By which I mean with 5219, XP, 2000, etc., I can just create a partition backup, restore a partition backup, no muss, no fuss, all successful. (I have an XP-compatible boot manager, have four independant partitions that are always hidden from one another, and I restore just one partition based on what OS/test/scenario I need to create.) Now with 5231 and later, creating a Ghost image of a partition always results in the "unable to access \windows\winload.exe" (or whatever that exact full-screen message from the Vista boot manager is).  Regardless of whether I'm restoring back to exactly the same partition as I backed up ...Show All

  • Gadgets HTML form in gadget submits to new window. How can I stop this?

    Hi all, I'm new to sidebar gadgets as well as Windows Vista. I'm a web developer, coming from Windows 2000 Pro, where I had a small php-based form that kept track of my hours. In Windows 2000 I was able to add it to my desktop fairly easily with "Active Desktop". It is proving to be somewhat more difficult with Vista Sidebar Gadgets. I was able to create the gadget, and the php form now displays. To do this, I created the .gadget folder in my User directory, then in the html file in that folder, I created an iframe with a source pointing to the php file in my localhost webserver directory. So that's my background... Anyway, when I try to submit the form, instead of reloading the gadget, it opens the form in a new window. This occurs even w ...Show All

  • .NET Development how to send email with attachments

    how can i send email along with attachments. provided i have jpg files retrieved from database , i need these jpg files to be sent by email by outlook or whatever is the default email client of the user. You can't just send it with the default email client as this would require interop with a known client. The API to access Outlook is different that Netscape Mail. Outlook supports COM interop but you can't guarantee the user will have Outlook. Instead maybe you should try the SmptClient class in .net. It support sending emails and attachments but you have to write the GUI. http://msdn2.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx public class SimpleAsynchronousExample { static bool m ...Show All

  • Visual Studio 2008 (Pre-release) OR-Mapping (DLinq_Overview_for_CSharp_Developers 7.1.1)

    Hi, I have a Question about the Mapping how is descriped in 7.1.1 in the DLinq_Overview... Document. I made a class for the Mapping to a DB that looks so: [Table] [InheritanceMapping(Code = "I", Type = typeof(ICQ))] [InheritanceMapping(Code = "P", Type = typeof(Person), IsDefault=true)] public class Person { [Column(IsDiscriminator = true)] public string DiscKey; [Column(Id=true, AutoGen=true)] public int PID; [Column] public string Name; [Column] public string Vorname; } public class ICQ : Person { [Column] public string ICQNummer; [Column] public string ICQNick; } public class DB_test1 : DataContext { public Table<Person> Person; publ ...Show All

  • Visual Studio Express Editions How do I prevent the console window from popping-up in my Windows Application Project?

    How do I prevent the console window from popping-up in my Windows application I mean, if I started from an empty project (or console application), and now I started using windows forms in it, the console window would not stop popping-up when I run the program. Is there some kinda compiler switch or option in the Visual C++ IDE to stop it from opening the console window (OR) How do I convert an empty project (or console project) into a Windows application project (i.e. so that the console window doesn't pop-up anymore.) Cool! I didn't know we could do that. Wow, now that you've told me, I'm going to try to learn all there is to learn about the compiler options and then I'll have the bragging rights to say, "I can convert an Empt ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.

    Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 I tried that, but I continue to get the same error. I'm just trying to build the basic Windows Game (XNA) project (from File->New). The relevant (I think) code looks like this: private void InitializeComponent() { this .graphics = new Microsoft.Xna.Framework.Components. GraphicsComponent (); this .graphics.AllowMultiSampling = false ; this .GameComponents.Add( this .graphics); } There's no WindowsGame_Starting function in this example. Any suggestions AG ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Microsoft.XNA.Framework.Curve

    Hi, I was wondering if anyone had looked at or used the Curve Class yet. I am having difficulty working out how to use it, perhap anyone could shed any light. I was thinking initially that it is a beizer curve type class, but I can't see co-ordinate information for the control points. All I can see is that CurveKeys have a value and a posistion, presumably between 0-1. Is the value the "y" position on a graph and the x is the position. Has anyone any more information that I can read in to determine what to use a curve for. Kind Regards, Paul Kinlan www.kinlan.co.uk Hi Paul. I think the position is like the x coord and the value is like the y coord on a 2D cartesian system (I've haven't tried it yet, ...Show All

  • Windows Forms Refresh DataBinding

    Hi, How can I manually trigger a databinding to refresh my controls binded to a datasource. (DataSource have been updated behind the scene.) Similar to Page.DataBind() in ASP .NE Ohhhhh.... ok. I just "assumed" it was a WebForm. Databinding in WinForms is "so straightforward", according to MS, that they didn't include a DataBind method for controls. Instead, you can do various things such as fire an event when you want to rebind the data and then Fill the dataset(s) that you want to refresh. Fill'ing the DataSet should refresh the data on the controls attached to the DataSet. Curtis ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. request: Directplay tutorial (vb.net)

    Can anyone help me with directplay :D DirectPlay isn't part of XNA. Have you posted in the DirectX forum ...Show All

©2008 Software Development Network