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

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

Justin1021

Member List

NetDragonKing
stephane - Montpellier
Igor Solodovnikov
nadir
Perry Choy
mdrelyea
Scott ODonnell
Hilton Goldstein
Narayan19
Ruslan Popov
Imanol
alan666
PedroSimao
d00d
lucas447800
Amative
holzer
stephane - Montpellier
Michael Bird
Jygoman
Only Title

Justin1021's Q&A profile

  • Visual Basic NetWork Printer Not getting Displayed in Vb.NET Services

    Hi, I work on VisualStudio 2005 and .NET framework 2.0 I have written the below code and compiled both as Windows application and windows services. The Results are different. I need to run my program as windows services. Please help. I have added the Reference to Powerpack.Printing. If I run the below code as windows application, all printers gets listed. If I run the below code as windows services, NetWork Printers do not get listed. Any help would be appreciated. Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Public Sub Listprinters() Dim objPrinter As Printer Dim strtemp As String = "" Try For Each objPrinter In Printers strtemp = objPrinter.DeviceName ...Show All

  • SQL Server XML data type and ANSI_NULLS

    Unsure which forum to post this in, so this is also posted in the SQL Server Engine forum. Please forgive the cross-post. According to the SQL Server BOL, ANSI_NULLS "will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development, and plan to modify applications that currently use this feature". So, we have tried to "avoid" using this feature in our development, but it BROKE a LOT of our stored procedures that use XML. Any stored procedure that uses XML with ANSI_NULLS OFF returns the following: "SELECT failed because the following SET options have incorrect settings: 'ANSI_NULLS'. Verify that SET options are correct for use with indexed views and/or indexes on c ...Show All

  • Visual Basic Crystal Report And Similar Tool For Printing Document

    May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. THANK YOU !!! THANK YOU !!! THANK YOU !!! The code you wrote helped me a lot. I mean it worked perfectly. After 2 + days of different coding. If this helps, what I found was that it doesn't metter the values that result in the crystal report table. The only condition is to be the same fields and the name of the table to be identical . In the report will appear the values that result in the code you write, like above . Thanks again, Mihai - RO. ...Show All

  • Visual C# Windows Service with Timer ?

    Hi I tried to use timer with windows service but it seems that Timer is disposed after some time. So another achiving the same would be using while(true) thread. sleep(x) but where to put Thread.Sleep If I will put in the OnStart and Sleep is like one hour it will never start actually. So what's the best choice Jarod Jarod, here's some code to get you started... Just fill in the blanks: public partial class WindowsService : ServiceBase {     private Timer stateTimer;     private TimerCallback timerDelegate;     public WindowsService     {         InitializeComponent(); &n ...Show All

  • SQL Server Microsoft SQL Sever management Studio: Failed to open connection dialog

    Does anyone encount the following problem before When I tried to connect to Microsoft SQL server 2005 with MS SQL Server Management Studio, I received: "Failed to open connection dialog" message with additional information is "Package 'Mircrosoft SQL Server Object Explorer' failed to load. This's just happened recently. Although I am receiving that message, I still able access into database with different types of connection. Can someone shred some light Thanks Tommy. This looks like some of your .NET components have corrupted. Reinstalling the same should help. Thanks, Kuntal ...Show All

  • .NET Development Find XML element by LIKE pattern in attribute

    How can I select XML elements by attribute value in C# which satisfies following like pattern "*.text" For example, if I have XML file like this: <root> <data name="Data1.Text"> <value> Value1</value> </data> <data name="Data2.Text"> <value>Value2</value> </data> <data name="Data2.Size"> <value>Value2</value> </data> </root> In preceeding example i would like to find first two elements, cuz these do contain .text extension. Any ideas Note that your pattern says *.text but your XML attribute values have upper case ".Text" with an uppercase &q ...Show All

  • Visual C++ C++/CLI: why does a reference variable on the stack need a copy constructor?

    Hi all, I am trying to declare a reference variable on the stack, so that the destructor (i.e. Dispose) is called automatically, when the variable goes out of scope: void VideoPixelShader :: OnCreateDevice ( Device ^ device , Stream ^ shader ) { String ^ errors ; GraphicsStream code ( ShaderLoader :: CompileShaderFromStream ( shader , L "VideoPS" , nullptr , nullptr , L "ps_2_0" , ShaderFlags :: None , errors , m_constantTable )); m_imageHandle = m_constantTable -> GetConstant ( nullptr , L "image" ); // Create the shader m_shader = gcnew PixelShader ( device , code ); } But then I am getting a compilation error: error C3673: 'Microsoft::Direc ...Show All

  • Windows Forms WebBrowser control and html document(simple question)

    Hey, I added a .html document into my project. But How do you make it so that my web browser control "webbrowser1" will show the document, I named it "New_Tab.html" Thanks :) It worked! thanks guys, there is a little probelm thoe, but I can fix it, it really easy. But befoe I make a new topic would it be OK if I asked a question in thsi topic that involes using thta line of code you gave me Thanks :) ...Show All

  • Visual Studio Express Editions Webbrowser Control

    Hi, i want to take the html source from a site in a frame website. In VB6 it was no problem: temp = (webbrowser1.Document.frames("contentFrame").Document.documentElement.innerHTML) How can i do this in vb2005 thanks mike ps.: sorry for my bad english :) Hi, You can use HttpWebRequest to get the source from the specific url. Here's a page with a great sample: http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse.aspx You can get the uri of teh iframe by doing this: myUrl = webBrowser1.Document.Window.Frames("window").Document.url There's also a sample that I saw in the web. I haven't tried this but I guess its ...Show All

  • Software Development for Windows Vista Base Class and Inheritance

    Hi, I have an empty Workflow inherited from StateMachineWorkflowActivity (WFBase). I'm trying to define an inherited workflow to WFBase (WFChild) but can't find a way to do it ! - When i try to set "Base Class" to WFChild from the designer, WFBase doesn't show up in the list of available activities... Why - When i try to set the base class directly from the code and into the xoml file, the compiler complain about an invalid root activity... (It seems that it tries to find WFBase in the System.Workflow.Activities namespace ) Any ideas on how to do this PS : What is the correct path for the workflow xoml schemas definition, http://schemas.microsoft.com/winfx/2006/xaml/workflow doesn't work ...Show All

  • Visual Basic Use of VB 2005's ImageList Upgrading from VB6

    From my side of the World, Good Evening to You All!! I' m asking your assistance once again regarding upgrading from VB6, this time I' m enquiring about the use of ImageList. I was instructed to upgrade from vb6 the following: Case 0 Image1.Picture = LoadPicture("c:\animals\gorila.bmp") Case 0 PictureBox1.Image = New Bitman("c:\animals\gorila.bmp") And it works perfectly but as VB 2005 provides the ImageList I assume that will be tydier especialy on transporting. Thanking you in advance mmyrt Based on the code I saw before you don't need to use an ImageList, but yes it will definitely make your code a bit cleaner. Here's the help topic that explains the Imagelist ...Show All

  • Microsoft ISV Community Center Forums iexplore.exe - Application Error

    I get the following error message when I close my internet explorer. The instruction at "0x62304320" referenced memory at "0x62304320", The memory could not be "read". Click on OK to terminate that program. Any ideas what is causing this It sounds like you might have a badly-behaved control on your system, if you're using IE6 on XPSP2 or IE7 you should be able to use 'manage add-ons' to disable it. just disable it or add some activex control through 'manage add-ons' ...Show All

  • Windows Forms Best place to store user data files, such as .xml files?

    I have Visual C# Express, and as you know, when you install a ClickOnce app, it doesn't put it in C:\Program Files.. it puts it in \Docs and Settings\username\Local Settings\Apps\2.0. Now, I have a program that currently stores data in \Docs and Settings\username\Application Data\MyAppName. The thing is, I don't know if this is the best place. I want the data files to be removed when the user uninstalls the application, not get left behind. So what is the best/official location I should put data files so that they will be removed when the program is uninstalled Thanks I'll add that IMO you are doing the right thing. If you create them in the Program Files folder next to your app: 1. Yes, uninstall of ...Show All

  • .NET Development I dont know how to use a variable from another page

    Hi i m a new comer in .net, i have a page when i can select a report and save the report name in a string in that page, but later you can click in a link to another page and that page load. But my problem is that i dont know how to take the name store in the page of before. Thanks for helping me. Hi, You can have up to 9 options to keep your data between requests, 1) Application collection : Information shared accross all your pages and sessions but can cause bottlenecks 2) Cookies: For small amount of information, the information is between the website and a specific user 3) Form Post: Usually for reading fields of a form, not very used in .NET (website and specific user) 4) Querystring: Pass information between pages, but ...Show All

  • .NET Development How can i use Data Source Configuration Wizard in my code?

    Hi。 I want to use Data Source Configuration Wizard Connection DataBase,like Oracle,Sql Server etc。How can I use Data Source Configuration Wizard in my code,not in Visual Studio。 Thank you very much! ...Show All

©2008 Software Development Network