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

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

Esprit

Member List

sanjay tiwari
RostaB
Sunchaser
stanjo
TonyMoore
Thomas82
Tyrael Tong
WXS123
Ned Rise
AvalonNewbie
JGP
Chris4578
OClaudiu
NeederOfVBHelp
LSS
Stefan Gabriel Georgescu
thekaran
Jeanne P
poison82
mahima
Only Title

Esprit's Q&A profile

  • Windows Forms Throttling a Windows Form Application

    I have a Windows Form application that implements both BackgroundWorker and standard Threading. System.ComponentModel.BackgroundWorker System.Threading.Thread The BackgroundWorker objects are used to update the UI. The classes I made that run the long processing are threaded and have events that are raised as updates are made and when the threads complete. The BackgroundWorker sits and waits for these raised events, then updates the UI so the user can see the progress. All pretty straight forward stuff. I want to take this to the next level and implement processor throttling. Some of these actions can take many minutes, while potentially others could take hours. I want the machine to continue to be usable by other processes. The a ...Show All

  • Smart Device Development MSMQ PPC win ce 4.2(Reader thread terminated)

    Have observed a strange behavoiur in MSMQ . Senario : Have two applications one on Pc and one on the PPC (WM5). which interact using MSMQ. sending and receiving of messages works fine when the ppc is online(or in network uses a wifi connection). One case where in ppc being online , i send a mesasge from the host(PC) and it is recieved on the client(ppc). Now i go offline or out of network coverage then send a mesage from the Host(PC). The message queuing admin on the pc shows a status "wating to connect", with the sent message in the outbound queue. Now i get online or come into network after 10 - 15 mins time gap (ie after the message is sent from the PC.) ,On the PC  the message showing up on the outbound queue dissapears and ...Show All

  • Visual Studio Express Editions Publishing to install on offline computer

    I need to install my program on a computer that doesn't have the internet. When I went to publish it I changed the Install Mode to "The application is available offline as well" but when I went to install it, it tried to connect to the internet to install .NET Framework 2.0. So I checked the prerequisites and .NET Framework 2.0 was checked. I unchecked it but then when I went to install it, I got a message asking me which program to use to open the setup file. Anyone know what I can do Because ClickOnce is so ridiculously simple... it leaves out a great make things, one of which is including redistributable files, instead it uses a bootstrapper to try to install those files if they do not alread ...Show All

  • Visual Basic VB and Outlook 2003 return items as mailitem

    I wrote and addin for outlook 2003 and whenever my program hits a returned email and I try to open it as a mailitem it crashes my program. What are returned emails if not a mailitem I can't seem to find a way to open those emails and parse them. Indeed what you are getting is a ReportItem ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbaol11/html/olobjReportItem_HV05247366.asp ) I'm not sure whether this object is exposed in the Office 2003 PIA or whether you need to use it at all. If you don't need it or you don't care about the contents, you can easily skip over "unwanted" items by doing something like this: If TypeOf Item Is MailItem Then ' Do your processing ...Show All

  • .NET Development Encrypting sections of Web.Config

    I have a websever running IIs 6.0 and the .Net 2.0 framework. I'm trying to encrypt sections of a web.config file on one of the websites that I host on this server. I have about 20 different websites each with their own IP address. From several MSDN docs and posts here and there I've learned that I can use the aspnet_regiis command to encrypt certain sections of my web.config. I'd like to encrypt the sections that contain passwords - such as the connectionStrings and the mailSettings. (I'm trying to implement the new Membership classes and the login control). My problem is that the documentation I have says a couple of things that I'm not sure how to do. 1. In one place in the MSDN doc ( http://msdn.microsoft.com/library/def ...Show All

  • Visual Studio Express Editions Global Variables? Pointing/Casting? Structs? Simple Question.

    Hello. All I am trying to do is take a LinkLabel on a form and when you click on it it loads another form with a webbrowser and sets the browser to go to that link. I am getting stuck because I cannot get my variables from one form to another. private : System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { IE^ f2 = gcnew IE; System::Windows::Forms::DialogResult retval = f2->ShowDialog( this ); } In the new form I cannot get the: this->LinkLabel1->Text I have tried: form1->LinkLabel1->Text I have tried making a global variable but it says: .\dl2.cpp(8) : error C3145: 'someting' : global or static variable may not have managed type 'Syst ...Show All

  • SQL Server upgrade from 2000 MSDE to 2005 Express - Enable TCP/IP by default & Current Version of SQL running?

    i am working on upgrading the clients and server computers from 2000 MSDE to 2005 SQL Express Adv. Plan to upgrade using the template.ini. i can find the version of sql server running on th server by @@version but how do i find the version of client connctivity components the computer has installed in order to ugrade 1. somehow i need to know whether to upgrade a client computer CONNECTIVITY COMPONENTS from 2000 to 2005 2. is there a way to enable tcp/ip in installation script of SQL Express THANKS Yes, you'll need to upgrade the client machines as well. Those machines will contain (at the minimum) the connectivity components, so you'll need to run setup.exe on those machines as well and run t ...Show All

  • Visual Basic How to load a dll into a vb program

    Hi, I need help, i'm a n00b and i don't know how to load a dll into my program. Using the Add Reference button i'll recive this error: A refence to ... could not be added this is not a valid assembly or COM component. Bla bla bla Someone tell me to install it into the gac directory using gacutils, so i did it but i had recive this error: Failure adding assembly to the cache: Tentativo di caricare un programma con un formato non corretto. (trying to load a program with an unknow format). What's the problem Help me pls ;) I hope this is the right section. Sorry for my bad english By "prototype functions" do you mean C style function prototypes If so, then the dll is probably not a COM assembly ...Show All

  • Visual Basic How to UNLOAD an assembly that was loaded by using System.Reflection.Assemblie.Load method???

    Hi, Our company has an app that load their components by System.Reflection.Load (By the way, an awesome technique ) But, we start to monitorate the application and detect a extrange grow up of memory... (actually when our application still all day on air, their allocate memory on task manager is 200 MB plus memory ) And all of our components (60 plus DLLs) is load by this technique. My doubt is how to deallocate this assemblies or how the best way to deallocate any assemblies loaded by the System.Reflection.Assemblie.Load method Anyone knows how i can do this ps.: We use the .Net Framework 1.1. The System.Reflection.Assemblie doesn’t have any "unload" method At., Fabio Pirani de Padua. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Resizing the game window with code

    I've tried to reset the window with code: this .graphics.GraphicsDevice.Viewport.Height = 800; this .graphics.GraphicsDevice.Viewport.Width = 800; or the same without the this keyword. But I keep getting an error that says "Cannot modify the return value of Microsoft.XNA.Framework.Graphics.GraphicsDevice.Viewport" because it is not a variable". I have no clue what is going on, and the help doesn't help. Don't forget you ahve to apply the changes you made to the buffer sizes. this.graphics.PreferredBackBufferWidth = 800; this.graphics.PreferredBackBufferHeight = 640; this.graphics.ApplyChanges(); ...Show All

  • Windows Forms How to change font color on a rich text box on a child MDI form.

    I am trying to write a sample program for school. The program consist of creating a MDI application that when a user clicks the "New" button a child form is created. On this child form, it simply has a rich text box, so basically when you click "New" it makes something that looks like a blank NotePad file. The program is suppose to allow the user to change the Font Face, Size and Color of the active MDI form. I can successfully change the font face and the size, but I am unable to change the font color. I have a simple class file that generates the new child MDI form with the RichTextBox control. When the user clicks the "New" button, it runs the following code: frmTextPad myChildTextPad = ne ...Show All

  • Visual Basic delete files older than 30 days

    Hi all, Can VB delete files from a directory older than 30 days Or, is VB unnecessary for this simple task I was unable to find a way to do this with DOS. ive just modified my post for the last example. That should give you the days difference between now and the creation date of the file in question. If its more than or equal to 30 days it will remove it ...Show All

  • Windows Forms ConnectString in Debug and Release.

    In my Application settings I have a connectionstring setup to connect to a test database server. When I deploy a release, I update the connectionstring everytime to point to a production database server. I wonder is there a way you can set up both connectionstrings; when I change from debug to release in the Solution Configuration, it will pick up the correct connectionstring Thanks you so much!   Terrence When you debug the code the code run from debug folder and you should have app.exe.config which should have the connection string which points to debug server and under release there should be app.exe.config there you could use the production server connection string. Try it and see if it works. ...Show All

  • SQL Server Alternative to Merge Replication?

    Is there a simpler alternative to merge replication I am concerned about the splash of GUID across the DB, performance issues, and the complexity of the deployment. What version of SQL server are you using Look into transactional and peer to peer replication. FYI, these will require a primary key field to be set on each table. ...Show All

  • SQL Server loading XML

    I am trying to load many XML files into SQL Server 2005 Standard Edition. Each XML file contains many individual XML items, each starting with: < xml version="1.0" encoding="UTF-8" > The files do not have a .xml extension. I do have a schema for the data. I can also get hold of a dtd file for the data. Since I am new both to XML and to databases I have been trying to follow examples wherever I can find them. I have not found the right example or tutorial. The closest that I found was in Kirk Haselden's book (a very nice book to learn from, by the way). On page 73 he sets up an OLE DB Source. His example works fine. But when I try to use XML Source instead of OLE DB as the source, I cannot get it to work. A typi ...Show All

©2008 Software Development Network