Software Development Network Logo
  • Visual Studio
  • Architecture
  • .NET Development
  • Microsoft ISV
  • Visual FoxPro
  • Visual J#
  • Visual C++
  • SQL Server
  • VS Team System
  • Visual Basic
  • Visual C#
  • Smart Device
  • VS Express Editions
  • Windows Live
  • Game Technologies

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

Erem

Member List

bbleech
dreicher
Gris
DasFox
Tackarama
hwc
MDiCarlo
jpresley
Steven_Gr3y_B3ard
bisigreat
Vincent Yeap
jmnc1234
Chris3147
GregGreco
sepehr.Beigi
lily rose
SKX
hallr
jhazucha
anamika
Only Title

Erem's Q&A profile

  • Visual C# Join W2K Domain

    Hi, how can i join a Workstation to a W2K3 Domain with a C# Prog Please post a code sample. Andi One way would be to use an instance of the WMI class Win32_ComputerSystem and the JoinDomainOrWorkgroup method of that class. The method itself is described here http://msdn.microsoft.com/library/en-us/wmisdk/wmi/joindomainorworkgroup_method_in_class_win32_computersystem.asp To invoke the method, first get the right instance ofWin32_ComputerSystem http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemManagementManagementObjectClassctorTopic3.asp The sample at that page creates an instance ...Show All

  • SQL Server Query Designer in SQL 2005 Mgmt Studio a let-down?

    Greetings, all. Thanks for all of the great postings in this community. However, one question I have doesn't seem to have been addressed. In SQL 2000 Enterprise Manager, a user could right-click on a table, and choose Open Table>>Query. This option brings the user directly to a query designer very similar to the query designer available in SQL 2005 Management Studio. However, I have been frustrated by the following: - The Open Table option in SQL 2005 returns data immediately where the SQL 2000 Query option did not, meaning it opened faster and did not risk locking any records in the table - In SQL 2005 the user needs to click ...Show All

  • Visual Studio Express Editions How do I test for null date in SQL table?

    Visual Basic 2005 Express: SQL won't permit null dates in a table. I would like to test for this condition and replace the null date with a DefaultDate (01/01/1901). How do I test for a null date in an SQL table The following code gives an error saying that DBNull is a type and cannot be used in an expression. If PatientBindingSource.Current( "BirthDate" ) = DBNull Then PatientBindingSource.Current("BirthDate")=DefaultDate End If Did you check the field values in the dataset and the database - did you make the default value change after you created the dataset Changi ...Show All

  • Visual Studio Team System Add new Work Item type to existing project

    Is there a way to add a new work item type to an existing project We customized the CMMI template and added a new type prior to project creation. Now after having used it for a while, we have identified the need for another work item type. How can one do this Thanks in advance. Bernie The Team Explorer comes with a witimport (work item import) command line tool. The tool is located in the \Program Files\Microsoft Visual Studio 8\Common7\IDE directory. Using witimport you are able to upload new work item type definitions into an existing project. Hope this helps! ______________________ ...Show All

  • Windows Forms c# datagridview cell_end edit doesnt work

    here is the code: private void dataGridView1_CellEndEdit( object sender, DataGridViewCellEventArgs e)         {                            if (cn.State == ConnectionState.Open)                 {                     cb = new MySqlCommandBuilder(da);           &n ...Show All

  • .NET Development SQL Server not compatible with .net Framework x64?

    Hi. I'm trying to install SQL Server Express in a Windows XP x64 Pro. I got a message that tells me to uninstall .net Framework and all SQL components and reinstall .net Framework but I don't know where the cleanup wizard is at and because I've got Express, I didn't get it in a CD. So is it true that SQL Server Express is only compatible with .net Framework x86 which is not compatible with WinXP x64 Hi, The Product feature comparison page shows that SQL Server runs on a x64 Windows OS using WOW layer. So it should work although it will still run as a 32-bit app. I think the final version of SQL Express would work - the Beta/CTP releas ...Show All

  • Windows Forms Chinese characters in a C# windows form

    I need help displaying chinese characters in a windows form. I have a web-based application written in C# that uses an embedded windows form control. To test chinese language support I cut and pasted some chinese text from a news site. The text is supported correctly throughout the web application. This includes storing it in a SQL database, retrieving it and showing it on web pages. But if I take the same text and put it in a windows form it comes out as square boxes. I need help with this. I do not have east asian font support installed so I don't understand why it shows at all. One interesting thing is that if I put a breakpoi ...Show All

  • .NET Development Invoke without dedicated Delegate

    Hi, I'm using Control.Invoke(new MyDelegate(...), params, ...) but don't want to define a dedicates Delegate only for usw with Invoke() (in this case "MyDelegate"). I tried it with anonymous methods, but it doesn't work. Can anybody give me a snippet of code, where this is explained Or isn't it possible without a dedicated Delegate Thanks in advance! You can use the EventHandler or MethodInvoker delegates if they match the target signature. Otherwise you need to define the delegate type. ...Show All

  • Visual Studio 2008 (Pre-release) Drag & Drop Operations

    Hi there. I'm on charge of implementing Drag & Drop operation for my WPF client. I found a class DragDrop which does it. I have a couple of questions to whom which used it. 1. How do I replace a drag image I know hoe to disable default cursors - from within QuearyContinue. Effectively I need to copy a bit of my screen and use it as a drag image - so I’m looking for smth. like bit blaster in WPF if exists (this problem get solved when I go for physical moving of the UI element I drag). 2. It appears that MouseMove event isn't firing until the drag operation gets completed (which stands to reason). That means that I have to handle a ...Show All

  • Windows Forms Capture KeyPresses with one control, but handle them with another

    Hi, I'm creating a usercontrol which has a child property of the type Control. The UserControl has custom code for the KeyPressed event, and will handle keys like UP, DOWN, ENTER, etc... The remaining keys should be forwarded so they can be handled by the childcontrol. My first attempt was to use: this.child.Focus(); byte[] b = new byte[] {(byte)e.KeyValue}; string sendtext = Encoding.ASCII.GetString(b); SendKeys.SendWait(sendtext); this.Focus(); but it's just ugly and it doesn't work very well. Can someone suggest a better way to achieve this There is a keypreview property on a form, if it exists on a cont ...Show All

  • Windows Forms Creating dragdrop shotcuts with VS2005 installer

    Hi, when I create a shortcut to my .exe by hand I'm able to drag my data files onto the shortcut to the .exe and the program will start, with the dragged file as the first argument. Shortcuts created by the installer dont do this. When I drag a data file onto the shortcut created by the installer I just get the 'No' symbol. Does anyone know what causes a shortcut to do this and how to fix this Thanks Malcolm ...Show All

  • Windows Forms Background worker and closing a form

    I have a form that uses the BackgroundWorker component (C# 2.0) to do a series of jobs in a very long running loop. I am running into a senario where the windows form is closed by clicking on the "X" in the upper right hand corner. This of course is fine but I want to make sure that I exit the loop gracefully. Is this good enough private void Form1_FormClosing( object sender, FormClosingEventArgs e) { this .backgroundWorker.CancelAsync(); } I am watching for the CancelPending in the loop but I am only looking for it about every 4 - 5 seconds. How can I guarantee that the BackgroundWorker thread has a chance to e ...Show All

  • Windows Forms Fatal Error in Windows Forms

    In my Windows Forms application, a fatal error occurs with an error message "Fail to load resources from resource file. Please check setup." then closes down the my application immediately. All other forms work fine, except one. The error occurs when/after I called SaveData() method in my data access layer. I stepped through each line in the SaveData() method, no line causes any exception. The error happens as soon as the SaveData() method exits. I have no way to find the source of the error. Any idea Help! Regards, William I tried forcing my .NET 1.1 application to run ...Show All

  • SQL Server PDF Export error in reporting services 2000

    Hi, I am exporting my report in PDF format and i am getting following error:- Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. (rrRenderingError) Get Online Help Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. Font 'Arial' doesn't support style 'Regular'. I am using sql server2000 reporting services.... can anyone help ! thanks amit_800 wrote: Hi, I am exporting my report in PDF format and ...Show All

  • Visual Basic Loading Crystal Reports Report, How To Stop Prompt Enter Login ID And Password, This Never Happen Before

    How do I stop VB from asking me this I want to view the Crystal Report immediately without the prompt. With a simpler version of my application, it never asked me this. Thank you, Christopher Lusardi Private Sub Open_Report_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open_Report.Click Dim  reportsource1 As New crystalreport1    '<--------- the name of the report to be rendered EMPLOYEEDataGridView.Visible = False EMPLOYEEDataGridView.Enabled = False Me .WindowState = FormWindowState.Maximized Me .EMPLOYEETableAdapter.Fill( Me .Employee_Databa ...Show All

©2008 Software Development Network