Topics
-
I am checking the type of an object at runtime and I want to see if it is the same type as another object. So I go if (pLayer is ICompositeLayer) { Do some shiznit } What would the C# syntax be if I wanted to test if something was NOT a certain type? Basically how can I ! the is operator?
Last reply by IngisKahn, -
- 2 replies
- 1.2k views
I know about regex.Replace, but is there any way to convert "weird" characters (alfabetic) to plain ISO (english) characters. example: VIDOVI� = VIDOVIC �AVAR = I don't have a clue what this is :-\ Perhaps I should get the code tables used for those characters and convert them? Thanks!
Last reply by IxiRancid, -
- 4 replies
- 951 views
Hello! I need to know if it is possible to enable / disable certain entries in a Radio Button List programmatically. Here's the situation: I have a form with many options on it, and some of these options are inter-related. For example, if a user is designing an installed system proposal, the cusotmer can be charged Sales Tax or Use Tax, but if it is an "Equipment Only" sale, then they are not eligible for Use Tax, so I want to disable the Use Tax option in the Radio Button List. So far, I have only found the ability to Enable or Disable the entire list, not individual entries in the list. Thanks! Kahuna
Last reply by SteveoAtilla, -
-
- *Experts*
- Leaders
- 8 replies
- 1.8k views
Is there a way to declare a nested class without actually putting it within the declaration of the outer class in your code? This is leading to really cluttered code for me.
Last reply by snarfblam, -
-
- 10 replies
- 1k views
Hey all, Looking to access files in the bin folder of my C# project (Win app) and want to do this using an openfiledialog box. How to I get the dialog box to point straight to the bin folder without using the line @"C\\...... Need to be able to port my app to other machines.... Any help would be appreciated! Cheers Ziggy.
Last reply by Denaes, -
- 1 reply
- 1.3k views
How can I make my setup to look for a file and not replace this file if it exists? The file is a database file. Thank you.
Last reply by AlexMesquita, -
- 7 replies
- 1.3k views
This is a borderline allowed mail so I will not be surprised if this gets deleted. I wonder does anybody know how to read an outlook .msg file extracting from, to, cc, bcc, subject, body and attachments without using outlook? Any pointers are appreciated.
Last reply by Napivo1972, -
- 1 reply
- 1.1k views
Here is the scenario: I need my objects on the page to resize when the page is load on a browser with a different screen resolution. I heard that you should create your pages using flow layout. I've done that but the objects still keeping their size as they were when I put them on the page. Let's say for example a have a Banner on my page, I need it to go across the browser window regardless of the user screen resolution, and without creating a horizontal Scrollbar. Anyone have an answer?
Last reply by wessamzeidan, -
- 3 replies
- 2.9k views
I'm doing a demo and for the life of me I can't figure out what kind of image file Microsoft filled the Picture field of the Categories table in the Northwind database, I started with what I thought would be it...bitmap, but nope, tried the usuals...jpg, gif, tiff, but still is rendering the broken image icon when I'm databinding in my web page (and yes I'm doing BinaryWrite)...so I can only conclude I'm either A) using the wrong content type string, or B) they are using some off the wall format. Any suggestions? Thanks!
Last reply by bri189a, -
- 2 replies
- 1.3k views
Hello. I am a .net nevby. I try to update rows in a Postgresql Database, from a application written in VB .NET. I have some textboxes on my window form, bound to a DataSet via a Databinding: Me.lbId().DataBindings.Add(New Binding("Text", dsPupil, "esantion.Id")) Me.txtNrMat().DataBindings.Add(New Binding("Text", dsPupil, "esantion.nrmat")) Me.txtDen().DataBindings.Add(New Binding("Text", dsPupil, "esantion.denumire")) Me.txtEra().DataBindings.Add(New Binding("Text", dsPupil, "esantion.era")) Me.txtImage().DataBindings.Add(New Binding("Text", dsPupil, "esantion.image")) Me.txtLocalizare().DataBindings.Add(New Bindin…
Last reply by florin, -
- 1 reply
- 851 views
Hi, Have constructed my page to suit my screen, I am using a grid layout, don't particularly like flow layout, and I am wondering how do I cope for different screen sizes and resolutions. Mike55
Last reply by HJB417, -
- 3 replies
- 1.1k views
I have the following SQL statement that I am trying to use within an asp page. INSERT INTO RegDetails (user_name, password, name, email, make_of_car, model_of_car, year_of_manufacture, post_code, age, news_letter, user_type) VALUES ('lidds','dragnet','simon','simon@','toyota','supra','1997','rg29ab','17-25','Yes','private') The SQL statement works fine when run out side of my asp page, the asp page code is: Dim objConn Set objConn = CreateObject("ADODB.Connection") objConn.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\sites\Single7\mofomos\database\mofomos.mdb;User ID=;Password=;" objConn.open Dim strQ strQ = "INSERT INTO RegDetails (us…
Last reply by lidds, -
-
- Administrators
- Leaders
- 8 replies
- 1k views
I need to make a program that acts as a shortcut. I need to use ChDir() an Process.Start() functions. And it also has to have an icon. I don't want any forms or any other extra stuff loaded in to slow my program down. How can I accomplish this the most minimalist way? :cool: I'm using VB.NET 2003.
Last reply by JumpyNET, -
-
- 2 replies
- 1k views
Hi all, Am wondering is it possible to do a select statement within an insert statement. insert into Groups (Group_ID, Group_Name, Group_Description, Org_ID) Values ((Select @temp = Max(Group_ID from Groups), @gName,@gDesc,@OrgID) Mike55
Last reply by DocEdge, -
- 1 reply
- 547 views
I have seen a method of encrypting a password into a byte array and then converting this to a string and storing it in a database. When the passwords are compared, the password that is typed in is sent through this same process and then compared at the database level to the encrypted password. This method also uses the "salt" method. Now I have taken a different route and encrypted my passwords, but instead of converting them back to an encrypted text string, I leave them as byte arrays and store them in the database this way. When the user enters a password, I send it though this same method and compare it to the byte array. What is the purpose of converting the e…
Last reply by HJB417, -
-
- Leaders
- 7 replies
- 1.9k views
I have a collection (collection "A") on which I need to do some processing. The processing will actually modify "A" by deleting entries. After the processing is over, I want to restore the collection to its original state. So, before the processing starts I need to copy collection "A" to a temporary collection (let's call it "Temp"). Then do the processing which basically destroys collection "A" After processing is over, copy "Temp" back to "A". The problem with just using: Dim Temp as new Collection Temp = A <do some processing> A = Temp is that anything that happens to A during processing is reflected in Temp, so Temp gets destroyed too. …
Last reply by HJB417, -
-
- 4 replies
- 699 views
I am unsure of whether there is any benefit to coding one way versus another, so I thought this would be a good place to ask my question. Is there any benefit or advantage to Method 1 vs. Method 2? Method 1 <asp:Label id="Label1" runat="Server>Some Text</asp:Label> Method 2 Some Text I know the purist tells me to use Method 1, but that's a lot more code to sort through than Method 2. It would appear to me that all the <ASP:> tags are doing is getting interpreted by the server and that would lead me to believe there is more overhead involved with this method... Thoughts, suggestions, preferences? Thanks in Advance!!
Last reply by HJB417, -
- 2 replies
- 2.3k views
Having got deep into control creation, i have on some occasions resorted to using the Windows API in order to manipulate certain features of controls - the Listview being one of them and in particular using the 'group by' functionality: Now, i understand i could draw the control completely and implement it this way, but my question is, does using the Windows API have any serious drawbacks?
Last reply by HJB417, -
- 3 replies
- 3.8k views
Hello, How can I copy and paste contact items from a Outlook public folder to a different public folder? I'm getting the contact items like this: (thanks again mark007 ;) ) Sub Main() Try Dim objOutlook As Outlook._Application objOutlook = New Outlook.Application Dim objNS As Outlook._NameSpace = objOutlook.Session Dim objFolder As Outlook.MAPIFolder = _ objNS.Folders.Item("Public Folders") objFolder = objFolder.Folders.Item("All Public Folders") objFolder = objFolder.Folders.Item("Contact Mgmt") objFolder = objFolder.Folders.Item("RC Contacts") Dim objItems As Object = objFolder.Items…
Last reply by mark007, -
- 5 replies
- 793 views
Hello, i will try to explain what i want to make... or what i need... i have a page that loads information about the clients, but this application must hide the controls when they have no values. im hidding the control by ASP.Net the problem is that the load, they shows, and then they hidde, and its uggly... is there a way to put a page like loading? and when the page is ready show it? thanks a lot!
Last reply by mark007,
-
Who's Online 0 Members, 0 Anonymous, 90 Guests (See full list)
- There are no registered users currently online