shibin's Q&A profile
.NET Development How do I make a server and client
I am tring to create a server program. I also need to make a client program. The server will store the names of my clients, addresses ect.. and the client will be downloaded at different computers and will need to access the server over the internet. My variables(names , addresses ect.) will can frequently. I have Visual Basic.Net. I also have Microsoft SQL Server 2005 but I have no idea how to use it and I have Microsoft Access but once again I dont know how to use it. So if you know of any tutorials that would be most helpful. I used one program that had a server attached to it and for the clients to work I had to use port forwarding. So if that is at all possible I at least know some about that. Microsoft have a good a ...Show All
Windows Forms window AutoScrolling or SelfScrolling
Hello guys, I need your help for scrolling any window opened on my desktop from my C# web application. For that I use functions named SendMessage and SelectWindow of namespace User32.dll, in SelectWindow function I pass the window name on which I want to do operation. And in SendMessage function I passed the values for vertical scrolling. The code is like this private const int WM_VSCROLL = 277; // Vertical scroll private const int SB_PAGEDOWN = 3; // Scrolls one page down [DllImport("user32.dll",CharSet=CharSet.Auto)] private static extern int SendMessage(IntPtr hWnd, int wMsg,IntPtr wParam, IntPtr lParam); [DllImport("User32.dll")] public static extern int FindWindow(string lpC ...Show All
Visual Studio Team System Deployment strategies - what to do about differences across different servers
One of the biggest things playing on my mind at the moment about DBPro is how we deploy our projects through the environments. I know Dmitriy Nikonov is working on a whitepaper around this but it'd be useful to try and foresee some of the issues now. Different environments require different permission declarations. For example, we want all our developers to have db_owner privelages in the dev environment, db_datareader privelages in the test environment, and no privelages at all in the live environment. Another example - end-users require permissions in the live environment but nowhere else. What's the best way of handling this Because currently my understanding is that we point DBPro at a new environment, click a button, and it goes ...Show All
Visual Studio Express Editions Automate IE Print function
I would like to automate Internet Explorer's printer option {Print background colors and images} when I run a specific program. for example: When I print a character sheet from E-tools, which creates a style sheet xml file and uses IE to print, I need to turn on background colors and images in IE. Then when it finishes printing I want the background colors and images to be turned off . Can this be automated in VBE Does anyone know the Reg_Key to control this function the Darce by the way I'm a newbie ...Show All
SQL Server Failed to Start Package
Hi, I am getting the following error message, when I was trying to execute an existing SSIS Package which was working properly before. "Failed to Start Package Cannot communicate with the debug host process. Failed to obtain child process active object. (Microsoft.DataTransformationServices.VsIntegration)" So I tried creating a new package and execute it, still I am getting the same error message. If anyone have come across this problem and rectified it, pls let me know. Thanks in advance for your help. Regards, Prakash Srinivasan Prakash Srinivasan wrote: Also, I wanted to know why this happened suddenly I'm interested too, but since this is you ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Do render targets have to be the same size as the back buffer?
Hi, I have a render target set up as: screenBuffer = new Texture2D(graphics.GraphicsDevice, 1280, 720, 1, ResourceUsage.RenderTarget, SurfaceFormat.Color, ResourcePool.Default); When the back buffer is set to 1280,720 (the same size as the render target) the code below works and the screen displays a blue background as expected. //Set device to render target graphics.GraphicsDevice.SetRenderTarget(0, screenBuffer.GetSurfaceLevel(0)); graphics.GraphicsDevice.Clear(Color.Blue); //Set the render target to the back buffer graphics.GraphicsDevice.SetRenderTarget(0, graphics.GraphicsDevice.GetBackBuffer(0, 0)); graphics.GraphicsDevice.Clear(Color.Gray); //copy the (scaled) screen buff ...Show All
Visual Basic VB6 to VB2005 fails on preprocess
I have tried to upgrade several vb6 projects to vb2005 and every time it has failed. It gets as far preprocessing a module and just sits there taking up 100% processor and slowly goes up to 2.5GB of my 1GB memory. I have even tried a simple project with a module that contains a Sub routine that adds two numbers together and it fails. I have tried both VS2005 Team and VS2005 Professional and they both give the same result. I have tried reloading VS2005 and reloading VB6 to no avail. If the VB6 project only contains a form then it works OK, but I have several large projects I would like to upgrade. I am having to resort to rewriting them from scratch in VB2005. It is most annoying as I am on a time limit to get the job done. ...Show All
Visual Studio Team System Can't Manage to execute DTS Package in ASP.NET
I have a very simple DTS package which export a table into a text file. Running the package from Entreprise Manager doesn't cause any issues. However, when running the package from ASP.NET code, the code is being executed with no error but the objDTS.execute doesn't not sent the txt file. I am using the same userId, password as in Entreprise Manager. Please help!!! In your reply, please considerer that I do not have the admin rights. Thanks in advance. Here is the code I use: Imports DTS Public Sub btnExecutePackage_Click ( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExecutePackage.Click Dim objDTS As New DTS.Package T ry objDTS.LoadFromSQLServer("btn000136414&quo ...Show All
Visual C# Word.Applicationclass problem
hi all! I have a main form that opens a child that contains a list of MSWord documents that can be opened. The problem is that i can open 1 document, use it and close it, but i get an exception when i try to open another document from that list. The error is: RPC Server Unavailable (Exception from HRESULT: 0x800706BA). Here's the code i use: ------------------------------------------------------------------------------------ private Word. ApplicationClass wordApp = new Word. ApplicationClass (); wordApp.Visible = true ; object filename = selectedFile ; Word. Document aDoc = new Document () ; object readOnly = false ; object isVisible = true ; object missing = System.Reflectio ...Show All
Windows Forms form method Show()
I have 2 forms. from the button of form1 i display the form2 Form2 f= new Form2(); f.Show(); How can i check if the form2 is dislayed (or has been closed) , so i dont display twice the form2 when i click again the button. I think there are many metheds to do this.first,you can use "f.ShowDialog()" to make the form2 show only once.I think this is the easist way. 2.you can dim a countnumber, the countnumber will -1 with the button clicked,if countnumber<0,the button.visible= false .......so on ...Show All
Windows Forms automatic data generation tool
Dear All, I want to generate test data automatically. The process is as follows, 1. User will enter the fieldname and datatype and range in a form. (inputs will change) 2. We have to capture that details 3. Based on the defined fields, we have to generate test data 4. Put the test data into an excel sheet i am looking at getting an overview about the whole process from a design point of view and implementtion will follow. any insights will be appreciated. any resources/ links with reference to the above requirement are welcome. thanks, mkuppu Dear Esther, The module will be an independent application. The excel sheet will be the output for this application and will be used as the input for the main a ...Show All
Visual J# Converting Java Application to visual j#
Hi, I got my existing Application in java(j++ 6.0), which will generatre applet a nd im hosting this in my existing asp web page. As a part of .Net conversion, i rewrited my asp application in asp.net. but main problem i got is with java(j++ 6.0) application. i want to port this application in to visual j#. but visual j# won't support Applet. so can any one tell how to replace my existing java Applet(j++ 6.0) with visual j#. my final goal is to host visual j# application(which will replace the java applet) in my asp.net web page. Regards Baji Prasad.B Asian CERC Information Technology Bangalore. India Hi, You can recompile your applet code into a J# browser control(JB ...Show All
Visual Studio Store Visio drawings
How can I store Visio drawings in SourceSafe We create workflows for a document management system (DMS) in visio which can be exported to the DMS. But we have many people working on the same workflow. Now we store the Visio drawing on a network share. But I wondered if we could use SourceSafe for this. But I cannot find any SourceSafe menus in Visio. I don't even know if it is possible - you may want to post on the Visio forum and ask. Thanks, -Brad Peterson ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Trouble with XNA Game Launcher
I am having some trouble with the XNA Game Launcher... I have had it up and running since December, but today for some reason, whenever I launch XNA Game Launcher(while signed into Xbox Live) it tells me it could not establish a connection with Xbox Live. So I decided to delete XNA Game Launcher and redownload. When I go to redownload it, it will not let me do so. The download acts like it wants to start, then freezes at 1%. I thought at first something might be wrong with my connection to Xbox Live, but I just started downloading the demo of Alien Hominid, and it is at 97% right now... Anyone else experiencing any trouble at all I just got off of the phone with Xbox Live support, and I was told that they are currently p ...Show All
Software Development for Windows Vista Is there any way (API) to turn off Aero to enable video overlay?
My application uses hardware overlay that can not display on Aero. So I want to turn off Aero Grass by my application. Is there any API for killing Aero ( SystemParametersInfo ) Or any other way ( stop some services. ets... ) I found a solution to my problem on Friday on how to disable the Vista Aero theme prior to initiating our desktop sharing session and then re-enabling it once the desktop sharing session is complete (we had some severe performance issues during the desktop sharing session while the Vista Aero theme was active on the client's computer). Anyway the solution was found on the blogg site of a fellow by the name of Kenny Kerr: http://weblogs.asp.net/kennykerr/archive/2006 ...Show All
