Topics
-
-
- Leaders
- 5 replies
- 1.4k views
If you add a cursor as a resource, how can you then use it? I'm having some trouble - I just get the message that an array of bytes cannot be converted to a cursor.
Last reply by rbulph, -
-
- 1 reply
- 725 views
I need to remove the prefix(domain name) if exist in front of a username from a session variable. paramsql.Value = Session("ssNtUser") say the domain is za username is macupryk I would like to remove the za\ so in the session variable I have macupryk only but the domain name can change. Also there might not even be a domain name with a slash. Thanks.
Last reply by Nate Bross, -
- 1 reply
- 1.2k views
I'm building a Windows app and I'm stumped on a simple copy operation. Here is the scenerio: I want to copy c:\temp\somefile.txt to \\remoteserver\c$\temp\somefile.txt Now my local machine is on one domain and the remote server is on another domain. Typically when you use Windows Explorer to copy you get prompted for your remote domain credentials. No problem, I'm an admin on the remote domain. I've tried: fso.copyfile <- This doesn't allow for remote credentials wmi <- Provides remote credentials however no UNC's system.io.file.copy <- Uses local credentials I would prefer to use system.io.file.copy. How do I provide remote credentials through …
Last reply by emitrebel, -
- 1 reply
- 900 views
Is there a way to Select Distinct rows from an XML file in visual basic.Net?
Last reply by feurich, -
-
- Administrators
- 8 replies
- 1.1k views
Here is the code ( as generated in VisualStudio.net) Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not IsPostBack Then OleDbDataAdapter1.Fill(DataSet11) End Sub The problem is i keep getting an error All it has to do is put the resource names into the dropdown box. There are no nulls in the data, as it keeps telling me there is. HELP ME!!!!!!
Last reply by DumAsp, -
-
- 1 reply
- 1.2k views
hi, what i need to do seems to be simple but i dont get it! i know vb.net well but have never done something with asp...so, here's my question: how can i make a simple asp page which shows my wan ip (just like http://www.whats-my-ip.com does) thx & greets natarius
Last reply by Sandallic, -
-
- Administrators
- 1 reply
- 755 views
I need to view variables or trace I am having problems debugging over a server I need to look at the following: Response.Write(Session("ssUserName")) Response.Write(Session("ssUserAuthority")) Response.Write(Session("ssUserBU")) Response.Write(Session("ssNtUser")) ch = getch() pause here I am not sure how to do this in vb.net. also should I use Response.Write to trace my variables? Any help would be appreciated. Thanks.
Last reply by PlausiblyDamp, -
-
i have a table with a lot of columns, is there a way to copy a row without selecting and reinserting it again? i'm using ms access thank you
Last reply by kejpa, -
-
- Administrators
- *Experts*
- 7 replies
- 1.2k views
Streaming PDFs back and forth to a db I have a little tool I created in a win form that allows users to view images that are stored in a sql server db as blobs. They pick a name and the blob gets shown. The images are jpegs that I loaded into sql using a different tool that I have. My question is can I do this same procedure with pdf files? Can they be crammed into sql and read back out? The way I am doing the reading now is like so: byte[] b = (byte [])com.ExecuteScalar(); MemoryStream mem = new MemoryStream(b); pictureBox1.Image = Image.FromStream(mem); So I query the db and then stream out the image to a picturebox. What are the limitations of this m…
Last reply by shaul_ahuva, -
-
-
- Leaders
- 2 replies
- 2.3k views
RTF string addition I need to add RichText to a string for as long as the method is in a loop. However, it does not allow me to do so my code is as dim x as string x = x & rtftext It will allow me to add to the string in the first instance however, thats it, it will not allow me to add any additional richtext. This works as expected with regular text just not richtext. Any ideals or solutions would be greatly appreciated.
Last reply by Nate Bross, -
-
- 1 reply
- 1.1k views
I have some sample code that works great but I am confused. The only examples I have found anywhere read a file and loop through it. I need to grab individual items by a tag name to place it where I need it. Is there a way to do this? Public Sub ReadResourceFile() Dim myResEnum As IDictionaryEnumerator Dim objResXResourceReader As New ResXResourceReader("..\resources\ErrorMessages.resx") Dim txt As String = "" 'Loop through myResEnum = objResXResourceReader.GetEnumerator() Do While myResEnum.MoveNext txt &= String.Concat(myResEnum.Key.ToString(), " - ", myResEnum.Value, vbCrLf) Loop MsgBox(…
Last reply by Nate Bross, -
-
- Leaders
- 6 replies
- 1.6k views
Ok guys i'm losing it here... so any expert who can spare a few minutes take a look. i'm trying to calcute a crc type thing. The code work fine on c++, but doesn't procude the correct result in c# or vb and i really don't get why. Here is the code in C++ int calcrc(char *file) { int crc, i; char car; int ola=0; crc = 0; FILE *File; File=fopen (file,"r"); fscanf (File,"%c",&car); while (ola!=EOF ) { crc = crc ^ (int)car << 8; for (i = 0; i < 8; ++i) { if (crc & 0x8000) crc = crc << 1 ^ 0x1021; else crc = crc << 1; } ola=fscanf (File,"%c",&car); } fclose (File); return (crc …
Last reply by snarfblam, -
-
-
- *Experts*
- Leaders
- 2 replies
- 1.4k views
Hello, I created custom MenuItem class named SkyMenuItem : MenuItem. I want MainMenu to use my custom SkyMenuItem class when I design mainmenus. I think I have to customize MainMenu class too. But, I don't know how to do it to force it to use Custom MainMenu in design time! Any idea or reply will help!! Thank you all.
Last reply by DiverDan, -
-
- 3 replies
- 1.1k views
I've been having a hard time finding reviews (Amazon doesn't even seem to sell the package) about NetAdvantage 2005. I fully understand they're considered the best on the market for 3rd party controls and I have used 2004 in the past but I wanted some opinions on the 2005 package, especially when it comes to their ASP.Net controls and if anybody finds them slow at all. The closest thing I've come across as a review was here but virtually all of them were for 2004 http://www.componentsource.com/catalog.asp?sc=EACTL&option=15777&fl=&RC=TSUMP&bc=&PO=512326&ul=en&vw=T17
Last reply by college_amy, -
-
- Leaders
- 3 replies
- 18.5k views
hello, i want to call the click event handler of a button when the user hits the enter key after typing some text in a textbox, but the keypress event of the text box only works with characters keys, what can i do? thank you
Last reply by snarfblam, -
-
- 0 replies
- 1k views
I am familiar with basic, brain-dead databinding, but I feel I need something a little more complex for my current application. I would like a few pointers or advice. I have a main form with a DataGrid bound to a DataView object. I have a custom control (DetailPanel), with a bunch of labels on it, that will display all the details related to the row selected in the DataGrid. How do I go about making sure the Labels on the DetailPanel display information related to the row currently selected in the DataGrid? I know how to create Binding objects on the DetailPanel that *should* display the appropriate column of data in the appropriate Label (an assu…
Last reply by VagabondSW, -
-
- Administrators
- 2 replies
- 1.1k views
ScaleWidth and ScaleHeight seem to have gone in .net. How can I get the dimensions of the client area of an MDI form? I suppose I could iterate through all the docked controls plus the title bar (query how I get that) and subtract their dimensions from the width and height of the form, but that's a bit messy.
Last reply by rbulph, -
-
-
- Administrators
- 2 replies
- 1.6k views
Hi all, I have a string containing xml that I'd like to pass to an xpathdocument, anyone got any idea how to do this? Thanks, Tim
Last reply by Tim Field, -
-
- 0 replies
- 2.3k views
I am creating a web setup project in Visual Studio 2003 for the first time. I want to create a subfolder under Web Application Folder and make it a virtual directory under IIS on the target computer. Is it possible at all.
Last reply by AnupamDey, -
- 5 replies
- 2.4k views
Hi all, I am trying to enhance the way a datagrid is displayed on the screen, using VB.NET. What I am trying to do is to fill the whole window with raws, lets say 20 raws though the data I retrieve from the data base are only, lets say 10 raws. That means I will have 10 empty raws. Is there a way to do it ? Please advice........
Last reply by ionas,
-
Who's Online 0 Members, 0 Anonymous, 55 Guests (See full list)
- There are no registered users currently online