GustavoPollitzer's Q&A profile
Visual Studio Problem with table in the list
dear all, I have got a quick question . Basically I have two dataset which is linked together by HNID key . In the list, I have include various textedbox and a table (detail of second dataset). When I have run the report, the textbox work fine but nothing appear in the table, but when I have move table out of the box, the list of all data display properly. I have been trying to figure out what s wrong with the table inside the list and still couldnt figure this out . (already try set the dataset name to either one of them in properties and it didnt work) thanks in advance sun ...Show All
Windows Forms How could i just add control to specified type of control ,like a Panel .
in my case ,i only want to add control to a panel ,not the rootComponent, So i tried to trap the ComponentAdded event of IComponentChangeService. and then check the component's Parent property. if it's not type of Panel ,then i remove the component just been added. Unfortunately, when this event triggered, The Parent property is null . Is there any other solution to solve my problem Any help is great appreciate! Thank. ...Show All
Visual Studio Express Editions Button Code
Hi All. I am new to Visual Basic and I need code for a button to upload an image from my hard drive to a table and display the image in a form. The links you provided, from first glance appear to have the answer I'm looking for. I will let you know of any problems I may have. ...Show All
Visual C# How to suspend events when setting a property of a WinForms control
Hello, What I want to achieve is setting a control's property, but do not want the already registered events to be triggered. (controls such as DropDownButton, TextBox, ListView etc. Events like EnableChanged, TextChanged, CheckedChanged etc.) The reason for that is to initialize appearance without running any further logic in an event handler. After initialized the events shall be enabled again to handle user interaction properly. What I'm not searching for is: - to unregister events for the time of initializing the control properties - using a custom flag that would be checked within every event handler, as that must have been kept in mind for every new handler being written. Eventually, this is the best solution I thought ...Show All
Visual C# How can I load extend property in runtime
Hi,all My English is not well. I establish a module, carrying out IExtenderProvider to connect, controling a piece to provide an attribute for the ButtonBase.How I do can while circulating the appearance controls a piece to read through a button this expands an attribute.Thanks Thanks for replay.Yes,I create a component with IExtenderProvider. My meaning is an appearance when the procedure circulate read through an IExtenderProvider connect for control an attribute for expanding. For example: Control a piece in[ProvideProperty("UserBackColor", typeof(ButtonBase))]increase an UserBackColor attribute for the ButtonBase When the procedure circulate appearance how read through"this.button" this attribute. ...Show All
.NET Development Channel already registered
Hi I have a .NET Remoting service running on a machine, and have created a Web service wrapper for the service. In the WebMethod, I have the following code: RemotingConfiguration .Configure(configFile, false ); string url = null ; WellKnownClientTypeEntry [] types = RemotingConfiguration .GetRegisteredWellKnownClientTypes(); if (types.Length > 0) { WellKnownClientTypeEntry type = types[0]; url = type.ObjectUrl; } if (url == null ) { return ; } _remoteCoverage = ( IRCService ) Activator .GetObject( typeof ( IRCService ), url);.... On the first request it works just fine. On the next, I get an exception saying the tcp channel is already registered. The remote object is configured as ...Show All
SQL Server Login Problem
I have recently upgraded Visual C# Express Edition to Visual Studio 2005 Edition. Then I also installed SQL Server Management Studio Express Separately. Now my previously SQL Server Authentication login is not working. I am able to do only Windows Authentication. With SQL Server Authentication it is not working which is working properly prior to installation. A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233) check all the Network Protocols are enabled or not... follow these step ...Show All
Visual C++ cout and operator<<
This code: char arr[] = "Hello" ; cout << arr; //displays Hello cout. operator <<( arr ); //displays the address of the H I had always thought that these two statements were equivalent. There is apparently a detail that I have overlooked. Since arr is the address of element 0, which is a char,then both statements need to call ostream::operator<<(char*). Right Why do the displays vary Shouldn't they be the same These two statements are not equivalent. The first statement considers both member operators and global operators while the second statement only considers member operators. As the operator that takes a const char* (or const wchar_t*) only exists as a glo ...Show All
Microsoft ISV Community Center Forums Summing up hours on form based on parameter query
Hi there - im finalising my new activity system but i have one issue. on an activity form i have certain fields for information purposes that are non editable - they are 'hours worked with client' , 'hours worked this month' and 'hours worked for the day'. The first 2 fields are populated automatically by opening recordsets on form load or companyname exit and summing up the hours based on the relevant query where the criteria ensures that the query is already populated. However for the 'hours worked for the day' field the query is a parameter query (qrytodayhours) where activitydate = Forms![frmactivity]![activitydate] and i was then hoping to enter the following code to sum up the hours using a recordset on the on exit of the acti ...Show All
.NET Development How do I specify the text format of Excel data added with "INSERT INTO"
My program is adding new data to an existing worksheet fine (using "INSERT INTO") but unfortunately it seems to be using the text format of my header which is "bold". Using VB.net, how do I get it to insert with out the bold text style. BTW, VB newbie, so code samples would be very helpful. Dim Conn1 As New System.Data.OleDb.OleDbConnection(sConnectionString) Conn1.Open() Dim cmd As New System.Data.OleDb.OleDbCommand cmd.Connection = Conn1 sPlant = String .Concat(sPlant, "$") If String .Compare(sFolder, "pending", True ) = 0 Then cmd.CommandText = String .Format("INSERT INTO [{0}] (Project, Pending) VALUES(@au_file,@au_date)", sPlant) Else ...Show All
Visual Basic Running An Application
After I compile the application i can run it from my desktop and other develop desktops just by using the exe without installing the application. One of the developers is now workstation in a diferent department and tries to run the exe, he gets this error. to run this application, you first must install on of the following versions of the .NET Framework: v2.0.5727 contact you applicaion publisher for obtaining the appropriate version of the .Net Framework. I am assume this because VS2005 isn't installed on the machine he is using that is why he is having the problem, I also gues it is because i haven't run a install program either. My question is in order to just run the exe on non-development machines do i have to cr ...Show All
Visual Basic Show Forms inside a SplitContainer
Hi, I think this might sound weird, but I’m working with new VS2005 Pro controls. I have a SplitContainer and I would like to know if there is a way that allows me to show different forms (one at the time) inside my SplitContainer right panel. My SplitContainer is on a MDI form and instead of showing the form above the SplitContainer, it would be nicer to have it inside the SplitContainer panel. is it possible any hint Thanks in advance George Put a Panel control into the area where you want show the forms. Add the forms to the Control collection in the panel. Then Show()/Hide() the forms as they are required. ...Show All
Visual C++ Need help over Database Error exception
Following code shows the error exception. After it display the error message accordingly. The whole application shut it by itself. Is it because of memory leak or something . How to overcome this Please help TRY { db.ExecuteSQL(IDSQLQuery); } CATCH(CDBException, pEx) { TCHAR buff[80]; pEx->GetErrorMessage(buff,80); AfxMessageBox(buff+IDSQLQuery); pEx->Delete(); } END_CATCH Exactly, the variable “IDSQLQuery” carry on “insert sql Query statement”. The exception is there to take care if query having any errors while it executed. So ...Show All
Visual Studio Express Editions Backgroundworker copyfiles with progressbar
with reference to ahmedilyas code below to copy specific file types with progressbar... how can I run this code with progressbar in a backgroundworker and trigger the progressbar progress http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=833129&SiteID=1 Dim theExtentions() As String = { "*.jpg" , "*.bmp" } For Each currentExt As String In theExtentions Me .ProgressBar1.Minimum = 1 Dim theFiles() As String = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), currentExt, SearchOption.AllDirectories) Me .ProgressBar1.Maximum = theFiles.Length Me .ProgressBar1.Value = 1 Me .ProgressBar1.Step = 1 For Each currentFile ...Show All
SQL Server Simple CRM Report
Hello, After a dozen server resets I have finally got a good CRM SBS installation. I need to create a custom report from scratch to represent Contact information that will include some custom fields. I have created the report using the directions in the CRMSDK and I have published the report. I can run the report and view the data. My issues are: I can not get the report to allow for filtering...I have tried everything in the SDK...filtering not an option. I must load the report using report manager and can not load thru CRM interface with any user. Once loaded I can not use the CRM interface to change info about the report I simply get the web page that looks like a popup stating Error with the red X. I am a very experience ...Show All
