JorgeUSA's Q&A profile
Windows Forms Windows Services
Hi all, I'm working on a project that requires a windows service. I've never developed one before so I have some questions... 1. In all the examples that I have seen so far it looks as though a Win service requires an installation project... Why 2. Are there any registry entries that are made when the service is installed if so what are they 3. If a service is executing a stored procedure in a remote database, does the service need to open a specific port If so is that something that is configured in the service code or properties Thanks in advance... In general Windows Services do need some sort of installer, I know that when ...Show All
Visual C# Visual C# Express Edition Right | Left Justify
Is there a way that you can Right and Left justify in the rich text box Ah Git ...Show All
SQL Server SSAS Project Deployment problems
I need to deploy my SSAS project to another server. On that analysis server there is a database, and it has a role with full control, and I'm added to that role. When I try to deploy my project I get the following error: The database , 'MyASProject', contains an ImpersonationMode that is reserved for server administrators. I know that in the SSAS Project, in Datasource Designer, there is a tabsheet called Impersonation Information and in Management Studio, in the ASDatabase property page there is a property called Data Source Impersonation Info. I played with these properties, I must have tried every possible combination but it ne ...Show All
Visual Basic Accessing images stored in Access database with VB.NET 2003
Hi, I am developping an employee management application with VB. I used an Access database to store employee information and the pictures. However I have a difficulty at displaying employee images. I have found some code to add images and display them on the form. The code, first reads the image stored in database (in binary form) then writes in a temp file and then uses a picturebox to display the image on the form. Code is working fine but when I try to add a picture for an employee and then try to change (another add operation) the employee's picture right after addition, program crashes because the temp file is already in use. Can y ...Show All
Visual Studio 2008 (Pre-release) How to make a column's width 50% of the grid's width?
hello, is this possible. Something like <columnDefinition width="0.5"> or <columnDefinition width="50%"> doesn't seem to work. thanks in advance Kimme You can use 2 columns with <columnDefinition width="*"> and each of them will have 50% of the grid's width. ...Show All
Visual C++ C++/CLI dll will not load in C# project (repost, with more info )
I have written some code to create high dynamic range images in C++. I need to call this code from C# now, so I've wrapped it using C++/CLI. I've tested it, and it works well. I sent it to my employer, and he got this error: ************** Exception Text ************** System.IO.FileLoadException : Could not load file or assembly ' HDRLib , Version=1.0.2144.16487, Culture=neutral, PublicKeyToken =null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) File na ...Show All
SQL Server Execute SSIS package from ".vbs" file
I need to execute a SSIS package from a ".vbs" file on a computer that don't have SSIS installed on it. Thank You You can use ADO (from VBS) to call sp_start_job for an existing SQL Server Agent job, or even create a new job and then start. SSIS is not client/server as per SQL Server, it executes the package on the host machine. You need to use another technology to communicate wth the "server", hence the suggestion of using SQL Agent to host the process. ...Show All
Windows Forms Unable to view designer in vs2005 c#
I am trying to get some help with a very strange problem. When I opened up vs2005 today my form designer would no longer work and caused vs to crash. This happens on all projects, even newly created ones. I have tried reinstalling vs, but the problem persists. If anyone has seen this problem or knows how to repair vs I would be very happy to hear from you. Thanks. DC. Disable that the toolbox become populated automatically. Delete All bin and obj folders Go to VS2005 command Prompt (Start menu|All programs|Microsoft Visual Studio 2005|Visual Studio Tools Start DEVENV with the parame ...Show All
Visual Basic Dynamically Changing Button Properties
I am writing an application where I have a 5x5 array of buttons that I want to dynamically update some of the properties. I have created all of the buttons in the editor and have given then names that reference their position in the matrix (i.e. btnGrid11, btnGrid12, etc.). Based on the button that a user presses, I would like to update the image that is shown. I would like to do this in a loop and the problem that I am running into is that I cannot figure out how to dynamically reference an existing resource. This is an example of what I think the code should look like. I was thinking that I could create a button resource ...Show All
Visual C# Do you know what's the different between "equals" and "=="
Hi, Do you know what's the different between "equals" and "==" No, you *can* use == on string variables, as System.String overrides == operator (note that both sides must be string variables, otherwise System.Object's == operator is called, which does a reference comparison) string s1="Test"; string s2="Tes"; s2+="t"; /*prevent string interning*/ Console.WriteLine((s1==s2)) //prints True ...Show All
Windows Forms DataGridView eating keystrokes?
I have a user control that has a ToolStripLabel (titled Find), a ToolStripTextBox, and a DataGridView. Here's a bit of code, with problem detailed thereafter. private void nameToolStripTextBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { e.Handled = true; _searchName = nameToolStripTextBox.Text.Trim(); backgroundSearch.RunWorkerAsync(_searchName); } } private void backgroundSearch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { _list = (ContactInfoCollection)e.Result; listBindingSource.DataSource = _list; if (_list.Count > 0) listBindingSource.Position = 0; dgvRes ...Show All
Software Development for Windows Vista How to add arrows(flow) between States
How do I add the arrows that show the flow in a State Machine Workflow I have different State's and I need to show what State will be triggered when a condition in one State is satisfied. Hi, Once the state machine workflow starts, you are in the initial state ( which you can set using the InitialStateName property on the workflow). You need to drop an eventdriven into the state. This is a composite activity which holds activities that will be executed when an event is recieved. The first activity inside the event driven has to either be a HandleExternal event (where you specify which event you are wait ...Show All
SQL Server Installing SQL Express 2005 - [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pi
Hi Everyone, I'm really in a desperate situation. I've tried installing Visual Web Developer including SQL Express 2005. I kept getting the error: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. I tried tinkering with the registry and that made things worse. I even re-installed Windows! I completely nuked my hard disk, formatting it totally. After re-installing Win XP Pro and the rest of my applications, I tried again. I got the SAME ERROR as before: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. Am I the only person who's getting this er ...Show All
Windows Forms Populating method of dataGridView
I have set the datasource for the dataGridview as follows: dataGridView1.DataSource = northwindDS; However,how can I set certain columns as combolist, certain columns as linkbuttons and so forth In order to do this should I populate the data by using a for..loop In that case will the population go slow if we want to populate more than 40,000 records Please explain. Thanks in advance. Check out the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=150068&SiteID=1 -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
.NET Development Uninstall
Hello All, Please tell me how to write code in VB.NET to Uninstall an application. I need to include this in an existing setup . Urgent !! Please help Warm Regards, Lisha Hello. Just so that I have said it: You should have a really good reason for doing this. I can't say I can imagine why you shouldn't ask the user to remove the program with add/remove programs. Still, if it is urgent, here goes: You would need to find the program by searching registry in the folders directly under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall 1) Search for name matching the application to ...Show All
