ofer ebert's Q&A profile
Windows Forms Disable Close button on the form
Hello; I have searched the forum, but could nof find the answer for this question. Is it possible to disable the X button on the form, as I need to be able to minimize the form, and it also have a button wich hides the form from the screen (not the minimize button), but this form must not be closed by user in any condition. Best regards. (Moderator: Thread moved to this forum for better responses) Hi you can do as folllow : add : using System.Runtime.InteropServices; add in your class: [DllImport( " user32 " , EntryPoint = " GetSystemMenu " , SetLastError = true , CharSet = CharSet.Unicode, ExactSpelling = true , CallingConvention = CallingConvention.W ...Show All
SQL Server Merge and Join
Hi I am a newbie into the world of Microsoft SQL Server Integration Services 2005. I am trying to merge 2 tables using a specified join like equi-join and also having a complex set of critriea. And I know if I use the merge/merge join transformation it can't be done so how to go about doing that other than using the "Execute SQL Task" which doesn't help me in my next "Data Flow task" as an input. As i need the data derive from the complex sql as an input to other transformations. Hi Ken Hu could you be a bit more specific about what you are trying to achieve (eg: by giving us some pseudo-code ). This way more people will be able to give you bits of answers. cheers Thibaut ...Show All
Visual Studio Team System New Project Creation Problems
I have a couple of problems that I suspect may be related. When I attempt to create a new top level Team Project on my local development machine’s Team Explorer, the project creation fails as the “Groups and permissions created…” message briefly appears on the wizard. After the problem occurs, I see the following error message in the New Team Project wizard (I included an excerpt from the log file further below): Error TF30170: The plugin Microsoft.ProjectCreationWizard.Groups failed during task GroupCreation1 from group Groups. Explanation Plugin error text: “TF50608: Unable to retrieve information for security object $PROJECT:vstfs:///Classification/TeamProject/5150e28f-d381-4c04-891d-f36b8de47c8b, it does not exist. ...Show All
Visual C# Executing sql command in C# problem string literals
hi! I need an extra qoute in sql command to execute correctly but how do we execute through c#. This is what i do>>>>> string scriptTaskConnectST = @"Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;"; executing this through c# code jobCommand = new SqlCommand("xp_cmdshell 'dtexec /f \"" + path + "\" /Set \\package.Variables[User::ArchivePackageName].Properties[Value];\"" + name + "\" /Set \\package.Variables[User::ScriptTaskConnectST].Properties[Value];\"" + scriptTaskConnectST + "\" When i check i resulting vaue i get this for scriptTaskConnectST as /"......\" \" Data Source=S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3DS to X (or FBX) Model Conversion Software
Does anyone know of a good freeware or (inexpensive) shareware conversion app that faithfully converts from 3DS to X format I'm not a modeler, nor can I afford a good modeling program with a plug-in, so a good free utility would rock. Thanks! Ethan Yes Collada, I had seen the great work Remi has been doing creating a XNA content processor for COLLADA documents and models. I knew about the first attempt Remi had at creatig a COLLADA importer but found all the problems Remi described when trying to use it. I've read the update now on the version 2 (Damn those COLLADA devs are quick!) and it seems a lot better so will try that, shame that it's still not yet able to do annimation yet either, this is a ...Show All
Visual Basic AlternateViews and MailMessage
Hi there, I have setup a MailMessage object and added two AlternateViews. One for plain text and the other for html. I then sent an email to a webmail address and setup my outlook to display messages as plain text. My webmail address recieves the HTML message without any problems. My Outlook on the other hand, does not display the plain text message. Instead it converts the HTML message in to plain text. Has anyone had this problem before with AlternateViews Basically, because I switched my Outlook mail client to display emails as plain text, I expected it to display the plain text message that I designated in the AlternateView and not the HTML message translated in to plain text. Kind Regards Al ...Show All
SQL Server How do I calculate needed hardware for SQL Server 2005?
Where can I find info about the neccesary hardware for a specific SQL Server 2005 implementation I know the amount of data and the number of concurrent users and the method for accessing the database from the client (ODBC with connect at client sign on and disconnect at sign out...). I need to come up with a suitable configuration for the server hardware. TIA Claes I have personally found this ( http://searchsqlserver.techtarget.com/generic/0,295582,sid87_gci1157390,00.html ) article to be quite useful when I have been in your position. ...Show All
Visual Studio Express Editions NEED HELP with this piece of code !
HEY GUYS i am developing a program while learning Visual C# so here what i am trying to do .... getting htm links from the database ( access ) and view it in the WebBrowser Control and, i have a button to the next link in that database to get it and view it in the WebBrowser so here is the code for that button but it doesn't work :( when i click on it this is the function i am using when button is clicked private void Next(string lesson) { string StrConnection1 = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\anything\database.mdb" ; &nbs ...Show All
Windows Forms Application Lockups with VS 2005
The application is built in VB.NET in VS2005. It builds fine and the exe is installed. The application exe works fine but will lockup on occassion. For example, If I go away from the application for about 20 minutes it will lock up. If a screensaver starts it will occassionly lockup. Just this application and not any others. Any ideas The application freezes. Windows and other apps are ok. It cannot be maximized, minimized or closed. The only way to close it is to kill its process in the task manager. There are no memory spikes or excessive disk usage either. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. texture fetch and shader math execution time in special cases
Hi, when I do successive texture fetches using the same texture coordinate, without doing any other texture fetches in between (doesn't seem to make sense, yeah, but it does in my context :)), does it mean the value I receive is already in the texture cache And is the tex. fetch thus quicker than a random location texture fetch Another question: when I do some mathematical computations in a pixel shader and one operand is always 0 so that the result is 0 as well, are these computations executed quicker than in the case when the operand is != 0 so that the computations actually have to be executed to receive the result Best Regards Nico Oh, and to your statement: ...but you might find that the HLSL comp ...Show All
SQL Server Server: the operation has been cancelled. a memory bug?
When I highlight a few partitions and start processing, the process occasionally stops with a message that operation has been canceled, like this: Response 3 Server: the operation has been cancelled. Response 4 Server: the operation has been cancelled. Response 5 Server: the operation has been cancelled. ..etc... (no further error message details are provided) SQL profiler shows that batch was completed (but rowcount shown in process progress log is too small). Analysis Services profiler shows no messages at that time at all. It just shows messages when it started, and when I restarted the processing. The Analysis trace appears to be stopped when processing stops with " Server: the operation has been cancelled.&quo ...Show All
Visual Studio 2008 (Pre-release) ICollectionView grouping
I have virtual IList<T> implementation (Db4oList) for db4o ( www.db4o.com ) object database and want to add ICollectionView implementation. I have described one problem with ObservableCollection here: http://forums.microsoft.com/MSDN/showpost.aspx postid=571091&siteid=1 But there is also related problem: Db4oList keeps only specified amount of objects in memory. E.g. say I have 1 000 000 objects (items) in it loaded from db4o database. I keep only 1 000 of them in memory when enumerating the list or using its indexer to access items. I have no problem with sorting or filtering, but the problem is with grouping, because when ICollection.Groups could have too many objects and because it is defined as ReadOnlyObser ...Show All
SQL Server Unhandled Exception
After I installed Sql Sever 2005 and open SQL Server Management Studio, I get this error just after connecting to any server (DB / AS / IS).. Also, during the installationm, I had ignored an error that was raised while SSIS was being configured. The error said, that thr is already a 32 bit registry on the target Com + Application. You must remove the registry from that app. I have done the installation of SS2005 X64 edition. Attaching the exception :- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.TypeLoadException: Method 'GetMenuItems' in type 'Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Default ...Show All
.NET Development EntLib 2.0 Logging Application Block & Oracle - DbType.String
I'm using the Enterprise Library 2.0 Logging App block with an Oracle 9i database. When logging a LogEntry to the database, I've run into an issue with the DbType.String field. The last parameter in the stored procedure for inserting log entries is the "formattedmessage" parameter. After the formatter formats the message, the formatted message string length is over 2000 characters. When the Logging App block calls the stored procedure, I receive an Oracle error. After some testing, I've figured out that the reason for the Oracle error is that the message is longer than 2000 characters. If I manually truncate the formatted message field to 2000 characters or less, the stored procedure call succeeds. I've researched the pro ...Show All
Windows Forms writing back on database
How can we databind a PictureBox control I tried i tlike this picPrimaryLogo.DataBindings.Add(New Binding("image", mFcPartySetup.DSPartySetup, "PartyCompany.PrimaryLogo")) but it said someThing like that: Additional information: Could not format the value to the desired type. why does this happen i m using vb.net vs2003 with sql server 2000 personal edition & the datatype or the sqlsdatatype for the field PrimaryLogo is image datatype then why does this value/format issue occurs Hi, Dim cn As New SqlConnection(strCn) Dim cmd As New SqlCommand("SELECT Picture From myTable ", cn) Dim da As New SqlDataAdapter(cmd) Dim ds As New DataSet da.Fill(ds, &qu ...Show All
