Stefander's Q&A profile
Windows Forms DataGridView Datasource property
ArrayList Ips=c1.getIPs(); dataGridView1.DataSource = Ips; The getIps returns an arraylist with count 1 the content of arraylist 0th element is 'Pencil'. but in grid its displaying the length of string i.e 6 rather than displaying Pencil.What should i do to display the content of arraylist rather than the length. regards Your arraylist is probably filled with simple strings. You need to fill it with some custom objects, which would expose appropriate properties, e.g.: public class IP { private string text; public IP() {} public IP(string text) { this.text = text; } public string Text { get { return text; } set { text = value; } } } ... ArrayList list = new ArrayList(); list.Add(ne ...Show All
Windows Forms Lookup where is the primary key of a foreign key
Hi all, I want to know how, given the name of a field in a table, verify if it is a foreign key, and obtain the table where it is primary, the idea behind is to obtain automatically the distinct values automatically in a search module. 'return a list of all fields in a table Public Function myFields( ByRef table As DataTable) As ArrayList Dim arr As New ArrayList For i As Integer = 0 To table.Columns.Count - 1 myFieldsPrimary(table.TableName) arr.Add(table.Columns(i).ColumnName) Next Return arr End Function Private Function myFieldsPrimary( ByVal FieldName As String ) As ArrayList 'Return 'so basically i get fields of a table from the function myfields ...Show All
.NET Development Error when attempting to install release version of .NET Framework 3.0
Hi - I run into issues when I attempt to install .NET Framework 3.0. Appreciate if someone would assist me here. I am trying this on Windows XP (SP2). Just FYI, I have Visual Studio 2005 Team System on my machine. My objective was to install .NET Framework 3.0 (release version) and the the extentions for .NET Framework 3.0 (Windows Workflow foundation) from the links you provided. Steps followed: ------------------ I run the uninstall tool to remove any pre-release version of .NET 3.0 successfully. http://www.microsoft.com/downloads/details.aspx familyid=AAE7FC63-D405-4E13-909F-E85AA9E66146&displaylang=en When I attempt to install the released version of .NET Framework 3.0 , it fails. I followed the 'known issues' link ...Show All
SQL Server How to supress/hide/filter Nulls or Nothing-s?
I have several columns with expressions that return Nothing under certain conditions: Example:=(IIF( Fields!solved.Value=False,IIF( Fields!TAT3.Value >120, IIF(Fields!TAT3.Value <144,Fields!Ticket.Value,Nothing),Nothing),Nothing)) As a result, I get tons of white/empty space, because 200 values were evaluated as Nothing and only 5 values/records were actual numbers. How can I supress this Nothing value Have tried a blank string (empty quotes) instead of Nothing So your code would be Example:=(IIF( Fields!solved.Value=False,IIF( Fields!TAT3.Value >120, IIF(Fields!TAT3.Value <144,Fields!Ticket.Value,""),""),"")) ...Show All
SQL Server Add a calculated measure to a Measure Group ??
I have created a calculated measure which is logically very much part of a specific measure group but I can't seem to work out how to add it to the measure group.. it just sits there as part of the general Measures. Can I specifiy in which Measures group it should reside This would also make more sense for managing Perspectives.. Hi Dave, how another property of Calculated member "Description" can be set Only with notepad ...Show All
Visual Basic Reading .RM Files
hi i would like to read .rm files, i need to know the lenght of the file, play and stop it, and so on, u can say i would like to create something like a .rm Player ,can anybody help me you would need to see if realplayer has one, contact realplayer from their website or try a search on your favourite search engine, such as msn search or google. I'm sure if you perform a small search on embedding realplayer into an application you can find a few hits :-) ...Show All
Visual Studio 2008 (Pre-release) Using UserControl's
Hi, I just noticed that the WinFX Extensions for Visual Studio adds a template for creating a WPF UserControl. So in order to experiment with it I created a new UserControl. Lets say the UserControl class has a namespace myNamespace , and the class itself is called myUserControl I then went into my main windows XAML and added a mapping element above the root like so... < Mapping XmlNamespace="ns" ClrNamespace="myNamespace" > After that I added an extra attribute to the main Window node like so... xmlns:ns="ns" So basically my main windows XAML looks like... < Mapping XmlNamespace="uc" ClrNamespace="myNamespace" > <Window x:Class="MyWindow.Window1" xmlns= ...Show All
SQL Server hierarchy
hi All, i am facing a problem while creating a simple product hierarchy in SSAS. i am able to create the hierarchy and deploy the cube,but in the browser while analysing i drag and drop the hierarchy .but only the key are displayed not the caption. Please do help me with this thanks in advance Lalitha hi Matt Carroll Thanks , I solved it. You'r information help me a lot Regards Lalitha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X importer for XNA
http://www.myjavaserver.com/~jonathanf/stairs.x This .x file displays correctly in the DXviewer as a staircase. However, when loaded into xna it is merely a cube. What gives The staircase was made using XSI Mod Tool and exported using the default .x exporter. ~Jonathan download the source code from Rocket Commander XNA. there is a content processor for processing .x files. Download ...Show All
Visual Studio Sandcastle: How do I create seealso links to external Hxs files
I am creating help for a set of libraries that extend a library provided by a third party (actually MS in this case but the Hxs files are not part of the standard SDK stuff they are an additional add-on) I need to add see also links to the base classes which are not part of my help conent but are part of the other content. DocumentX! has a means of doing this via the seealso doc comment element (cref=!:ms-help:...) and I can't seem to find any way to do it with SandCastle. No matter what I try it ends up as just bold text. THe XSL files all transform seealso tags into an undocumented <referenceLink> tag but I have no idea how that tag gets transformed to the final HTML seen in the help. Any idea or pointers on how to make a link to a ...Show All
Visual Studio Can I use parameters in the code tab?
Can I refer to Parameters in the code tab A simple example - could I do something like: Public Function GetName as string return Parameters!RenewalSorting.Value End Function I've tried this, but I get an error : There is an error on line 2 of custom code: [BC30469] Reference to a non-shared member requires an object reference. How would I add the required object reference Thanks Vayse ...Show All
SQL Server Scheduled Jobs
Its not possible to schedule jobs via Express is it Like I have a process that connects to an Oracle system grabs the data... plays with it some and then inserts it into the MSSQL 2005 server... We need this process to run say every 2 hours... Express cant do that cant it another possible solution (thats free) is to create a small batch script that calls sqlcmd and does your sql processing. this batch file could then be scheduled using windows scheduling to be called every 2 hours. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Accessing a device not included in the desktop
In the multimonitor version of the standard desktop properties dialog, the settings tab contains a checkbox named "Extend my Windows desktop onto this monitor". When this box is unchecked, can one still use Direct3D to access the device If not, what API(s) can be used to access the device Hmmm..... well that's too bad. Perhaps the check box should be labelled "Enable this head/monitor" instead. Does anyone know if I can use another graphics API -- perhaps "Graphics Low Level Client Support" (see http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/lowlevelclientsupport/graphics/ntgdiddcancreatesurface.asp ) -- to access these DirectX-inaccess ...Show All
Visual Studio 2008 (Pre-release) Can Triggers affect elements they are not applied to?
I have this program here that consists of a Label and a Button. I have a Style that contains a trigger that says that when someone mouse overs the button the button background should turn yellow. But let's say I wanted the label to also turn yellow when someone mouses over the button. How can I have a Trigger applied to one element (in this case, the button) affect other elements around it I know you can do this in code, but how can this be accomplished in XAML < Window x:Class = " WindowsApplication3.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " WindowsApplication3 " Height = " ...Show All
SQL Server How is the data secured over the air in Merge Replication ?
Dear ppl, I have a question for you. One of our client has asked us how is the data secured over the air during Replication I have read that Merge Replication uses TLS (Transport Layer Security) protocol to secure the data over the air. But I was wondering if it is all done automatically Or do we need to install certificates like for SSL. We have a Windows Mobile 5.0 application using SQL Mobile that runs over 50 devices and they all synchronise with a single Publisher SQL Server 2005 using GPRS connection. We haven't got any SSL certificates installed on the server. Now how can i make use of TLS in my application to secure my data over the air (using TLS) Regards Nabeel Farid You should also look at the Mobile T ...Show All
