koosha's Q&A profile
Windows Forms Shared Dataset
Hi Friends. I’m Braziliam Develop and I'm New in Windows Form Program. My Question: I Have in FLogin a Dataset with name DsDbVendas and I need view the same dataset in FDLogin but I Don’t Know How I resolve this Big Problem. Sorry for my Bad English ! :( Sds, Marcos Nogueira using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace Costing.test { class Class1 { public static CostingDataSet mySharedDataset = new CostingDataSet (); } class login { private DataGridView myDGV = new DataGridView (); private CostingDataSetTableAdapters. CurrenciesTableAdapter myDa = new Costing.CostingD ...Show All
Visual Studio Team System Error 0x80501001
Hi All, Continuing to develop my rules and fighting with fxcop in all new rule, I have other new questions: 1) I am trying to get a specific object inside a method like: Public Sub Ins( ByVal oBoletimImplantacao As BoletimImplantacao) Dim db As Database Dim command As DBCommandWrapper Dim dr As IDataReader Dim sqlCommand As String .... End Sub I have 'Ins' methods inside my assemblies and I need to verify if there is a variable as 'DBCommandWrapper' that is a company own class. How to know if there is this specific variable 2) How can I see inside the assemblies its imports I have methods with the imports below: Imports Microsoft.Practices.Enterprise ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh and texture transparent problem?
Hi all, I created mesh.box object with my game. The mesh has a texture. I want to real time change the mesh transparent from 100 % to 80%. How to change a mesh or texture transparent for c# Below is my source code.Hope somebody help. //create mesh object boxMesh = Mesh.Box(renderer.Device, 100,100,100); //========================================== //on paint renderer.Device.SetTexture(0, texture); boxMesh.DrawSubset(0); //============================================ Best regards, Changing texture transparency in real time is too time consuming because it requires locking the texture and modifying each pixels. So the other idea is better : changing mesh transparency. Mesh transparency can be stored either in vertex colors or in a ma ...Show All
SQL Server Line delimiter.
Hi all. I have some problem. String is kept in format "aaaa\r\nbbbb\r\nc\tcc" in database When i trying to render a report(RS 2000) i take this result textbox : aaaa\r\nbbbb\r\nc\tcc ,but i want textbox: aaaa bbbb c cc Can you help me Hi All I've found simple way to realize this feature. It turned out, that RS dont understand C# delimiter but understand VB delimiters . I've written custom code for impleting this thing Function ConvertString(ByVal value As String) As String value = value.Replace("\n", vbCr) value = value.Replace("\r", vbLf) value = value.Replace("\t", " ") Return value End Function ...Show All
.NET Development notifyIcon works with windows forms but not services....
If I create a NotifyIcon in a designer of a windows application and assign an icon to it - it works just fine. It shows up in the tray, and behaves just as it should. However, if I create it in a windows service, then install that service and run it - the icon doesn't show up in the tray. I have no idea why. Any suggestions oh also, I couldn't find a better forum to post this in, so hope this works. Hi All, I want to some information regarding windows service applicaiton. I am able to start the windows service automatically whenever i execute the command installutil 'myexefile path' in .net command prompt. I want to start the service without giving installutil command manually.Because of i wan ...Show All
Windows Live Developer Forums AJAX-based Spaces?
Hi there, Is anyone doing an implementation of spaces that uses AJAX I've started one, but wasn't sure what else is out there. Thanks, se Hey there, I see there's a few people interested in this sort of thing. Would there be a few people interested in helping out on an application I am building which does this Right now I have the following: SQL Server database tables all set up so all information can be stored on a server other than spaces Typed Datasets and a dal for accessing this Forms to keep track of blogs, posts, comments, user accounts and view forms. All of the forms communicate to the server using Ajax.Net (by Michael Schwartz) -- which is very similar to the ...Show All
Visual Basic Adding a line to a text file
Hi, I' am trying to add to a text file that has already text in it. It's a list of nickname's. You right click there name in a channel and it will add the line to the text file. But I can't seem to get it to add a line. Intead it erases what's in the text file and put's in what I add. I tried many things but can't seem to get it. Hi, the following code line should append additional text to existing file without overwriting it: My .Computer.FileSystem.WriteAllText(fileName, textToWrite, True ) Andrej ...Show All
SharePoint Products and Technologies Accessing a SQL Server table using sql authentication as opposed to windows authentication
I have created a pivot table based on a sql server 2005 relational DB connection, with the userid and password stored in the ODC (sql server authentication). The ODC is in the data connection library (DCL) and is approved. I created an Excel sheet with a pivot table based on the ODC. I can refresh this pivot table in Excel 2005, and I have deployed the sheet to the documents library. When accessing the sheet via Excel Services Web access, it displays properly, but refuses to refresh, errorring with : "Unable to retrieve external data for the following connections: xxxxx The data sources may be unreachable, may not be responding, or may have denied you access. Verify that data refresh is enabled for the trusted file location and ...Show All
Visual Studio Express Editions .vbproj file wont hold subType value
Hi all I think there might be something wrong with my .vbproj file I have added in a new form for testing. Here I can see that QueryForm does not get the <subType>Form</subType> so I add it and then reopen my project it sets it back to the original: <Compile Include="Form1.Designer.vb"> <DependentUpon>Form1.vb</DependentUpon> </Compile> <Compile Include="Form1.vb"> <SubType>Form</SubType> </Compile> <Compile Include="QueryForm.Designer.vb"> <DependentUpon>QueryForm.vb</DependentUpon> </Compile> <Compile Include="QueryForm.vb"> </Compile> So after I add the subType and reopen VS no change to the QueryForm i ...Show All
.NET Development custom plugin questions!
Hi there. I have no idea but had a sudden urge to ask about things like this, I guess its good for the knowledge! I have an app created in .NET 1.1 I *may* wish to implement plugin's with the application, so developers can create their own plugin's for the application. Question 1) If a plugin was created in .NET 2.0, will it still work with the .NET 1.1 application (obviously assuming they have both frameworks installed) Question 2) How would one go about creating plugin's for their application Question 3) Is it possible for this plugin to implement/"subscribe" to public events exposed by my application, so when I raise an event, any of the plugin's who have a subscription to the event, is notified Th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Runtime model loading
I am trying to make a level editor with XNA. Unfortunately, I've run into a little snag. I need to load a model from a user chosen location, but as far as i know models need to be first loaded into the programming solution before they can be loaded through the content manager. Is there anyway to do this at runtime fora model thats not part of the solution The basic principal of using MSBuild to build content is still the way to go. One of the XNA authors posted a blog entry on making a project file, and it simplifies what I figured out from above. So to add dynamic content still requires an editor, and the game would then need a mechanism for loading the new content. To me, this is not much different than ...Show All
Visual Studio Express Editions Textbox Validation
How do you validate a "year" txtbox to enter the year as "19xx" Create a MaskedTextBox instead of a normal TextBox object on your form. Then set the Mask property to \1\999 which would be the mask you need for "19xx" if you wanted "20xx" it would be \2\099 Hope this helps ...Show All
Windows Forms Visual Studio 2005 Forms Designer Bugs
To whom it may concren (Microsoft development team): We have a couple of observations concerning the Visual Studio 2005 IDE, particularly the Forms designer. There are a couple of bugs with this. 1. From time to time, our forms resize themselves. Literally, they shrink, pretty consistently when this happens, to within a few pixels of bottom-most and right-most control edges. This doesn't happen all the time, but it does happen. Sometimes it happens regardless of whether we've actually "touched" a form for editing from within the IDE (i.e. as an outcome of having built the application). 2. Some of the "layout manager" style controls have resize issues. Those that manage the bottom and right anchors, for examp ...Show All
.NET Development How to get the templates
Hello Everybody, Recently i installed .NET 3.0 using web-installer. It is installed successfully. But, what the problem is when i loaded the Visual Studio 2005 it is not showing the WinFX template in availabel project templates, when i selected the New Project from the file Menu. Please suggest me what should i do to add the WinFX templates into the available project templates. Thanks in advance. I am using is Windows 2003 server (Service Pack 1). Regards, you need to download Visual Studio 2005 extensions from following link. http://www.microsoft.com/downloads/details.aspx FamilyID=f54f5537-cc86-4bf5-ae44-f5a1e805680d&DisplayLang=en http://DotNetWithMe.blogspot.com vikas goyal ...Show All
Visual Basic VS 2005 Commerciral Development Version?
I work for a commercial software development company and our primary product has been components (.DLLs) developed in VB6. When we started years ago, we had to buy the VB6 Enterprise Edition in order to develop .DLLs that could be distributed and registered on customer machines. Does the same concept exist in Visual Studio 2005 We want to add a line of .Net-based DLL products and currently have VS 2005 - Professional Edition. Is there any requirement to use VS 2005 Team System for developing commercial apps You can use any version of visual basic / visual studio to develop commercial applications (except student version I think) So you could develop applications using VB Express (which is free) if you ...Show All
