|
Is possible to create a round form for pocket pc in vb.net?? Or any different shape in a form?
|
|
|
|
|
Hi,
I am working on an application that needs to access the token generated by Active Directory when a user logs in. I believe the token is a kerberos token. Is there some way to access that token using the .NET FCL or any other way?
Secondly, if I am to generate a kerberos token so as to enable a user to log into an application using AD for the authentication through a .NET application without having a login box, do I need to have a separate domain controller? Can't I just use my workstation as a local domain controller? If I cannot, would it help if I installed Windows Server 2000/2003 ?
I am working on a system that has Windows XP Professional edition with SP1 installed and am using ADAM (Active Directory Application mode).
|
|
|
|
|
I have a simple windows form with a DataGrid bound to a dataset from a database. When the form closes (event 'Closing') I want to flush all changes made in the grid to the database. Everything is fine except the current cell...if I have not left the cell, the data is not updated.
So far I have tried
<br />
private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)<br />
{<br />
System.Windows.Forms.DataGridCell cell = this.dataGrid1.CurrentCell;<br />
DataGridColumnStyle dgc = this.dataGrid1.TableStyles[0].GridColumnStyles[cell.ColumnNumber];<br />
bool good = this.dataGrid1.EndEdit(dgc, this.dataGrid1.CurrentRowIndex, false );<br />
<br />
this.oleDbDataAdapter1.Update( this.dataSetFeature1 );<br />
}<br />
without luck. Does any one know how to get the current state of the cell into the dataset during 'Closing'?
thanks in advance
cje
|
|
|
|
|
Hi,
My problem is that I have to access inbox and outbox folders on a clients machine. Currently the client would connect to a website and click on a send/receive link which would take them to a page that uses a activex tag calling a vb6 cab file which would install a couple of things (+-2 mb) and continue on it way to accessing the folders. I would like to convert the vb6 to c# but from what I've read The client would have to download the framework which is just too big for them since most of them are on dial-up.
I have lost hope and I am seriously doubting whether anyone would even answer this post -
Any suggestions would be appreciated - Thanks in advance.
Gavirj
|
|
|
|
|
As far as I know: in general, if framework deployment is an issue, then your only other option is ASP.NET with Web Forms / Web Services. This removes the issue of client deployment, but I am not sure you would be able to achieve your requirements using this method.
|
|
|
|
|
Using ASP.NET would be ideal as they wouldn't have to download anything. But I think the problem comes in with accessing their local directories. Does anybody know if it is possible to use ASP.NET to access a clients local files over the internet...maybe by digitally signing the code something similar to the way java does it ?
gavirj
|
|
|
|
|
Nope, not possible to use ASP.NET that way.
I remember seeing a web site that promoted embedding only part of the framework in your application, but I could not find a link. If that is possible, then you could make a smaller distribution.
|
|
|
|
|
Hi pals,
I´m building a compiler for an Algorithm Specification Language, and the values passed to the functions are huge (64 bit), so the call stack overflows quickly. Does anybody know how to change the stack size for the current process in a .NET program?
Thanks in advance.
|
|
|
|
|
It's so strange that today when I compile some sample code on .net remoting, vs.net 2003 says System.Runtime.Remoting.Channels.Tcp does not exist! also,the .Http namespace does not exist.
I remembered I should have comiled and ran some examples contained Tcp or Http namespace.
Framework 1.1.4322, Win2K advanced server with sp4.
And I reinstalled VS .net 2003 but I takes no effect.
What's the problem? Any one had encountered?
Thanks.
|
|
|
|
|
Hi,
I have a complete implementation of a codesmith-template compatible code generation engine that supports batch output, subtemplates, and outputs in any .NET language that has a CodeDom provider. Here's an example of how you would write a template that can output to multiple targets:
Let's say we had a template class named MyTemplate with the following interface:
class SampleTemplate
{
public void GenerateText(System.IO.TextWriter writer);
}
Then let's say that I wanted write the output of this template simultaneously to the console, a string, and a file at the same time. Here's how it would look:
class Class1
{
public static void Main()
{
...
// Create the template itself
SampleTemplate MyTemplate = new SampleTemplate();
// Create the targets to write to
StringTarget sTarget = new StringTarget(MyTemplate);
FileTarget file = new FileTarget("myfile.cs", MyTemplate);
ConsoleTarget console = new ConsoleTarget(MyTemplate);
// Output to the console
Console.Write();
// Output to the string
string sOutput = sTarget.ToString();
// Output to the file
file.Write();
...
}
}
Right now, I'm still not sure whether to publish this, but I'd definitely like to see what everyone's opinion on this is. What do you think?
|
|
|
|
|
I am trying to set up a form to edit a byte array and am looking for a control that gives me an interface that shows the following:
1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2
Kind of looks like the this:
FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00 .îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00 ..Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00 ..&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E ..... .b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00 63..d...2.....P.
Any ideas where I can get one, or any leads on creating one?
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Ok, since no one else has answered here I figured that I would post the solution that I found to my own problem.
It turns out that there is already a control available to do this right inside the standard runtime framework itself called the ByteViewer.
It lives in System.ComponentModel.Design
Why it is not available in the tool box I have no idea, but here is how you can use it.
Friend ByteViewer As System.ComponentModel.Design.ByteViewer
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ByteViewer = New System.ComponentModel.Design.ByteViewer
Me.SuspendLayout()
'
'ByteViewer
'
Me.ByteViewer.Dock = System.Windows.Forms.DockStyle.Fill
Me.ByteViewer.Font = New System.Drawing.Font("Courier New", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.ByteViewer.Location = New System.Drawing.Point(0, 0)
Me.ByteViewer.Name = "ByteViewer"
Me.ByteViewer.Size = New System.Drawing.Size(634, 287)
Me.ByteViewer.SetDisplayMode(DisplayMode.Auto)
Me.ByteViewer.TabIndex = 0
'
'frmViewRaw
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(634, 287)
Me.Controls.Add(Me.ByteViewer)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frmViewRaw"
Me.Text = "frmViewRaw"
Me.ResumeLayout(False)
End Sub
This creates a nice ByteView control that allows you to view any array of byte oriented data you can throw at it.
The SetDisplayMode lets you change views between Ansi, Unicode, Hexdump or Auto.
A lovely little tidbit I wanted to make sure you all knew about.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Hello, I dont understand whats going on with my DB2 connector. I used to
have the code in a class that worked fine. But when I tried to use it in a
webservice I get this error: System.InvalidOperationException:
ExecuteReader: Connection property has not been initialized.
1) I create and open a new OleDbConnection
adoConn adoConn = new adoConn();
adoConn.Run("INTRANET");
2) I execute the query
OleDbDataReader myReader = adoConn.dbSQLSelect("Select * from USERS");
ERROR
Line 47: myReader = myCommand.ExecuteReader();
What might be the problem?
|
|
|
|
|
My first C# development at work needs to connect to a unix box and transfer files (both directions) using SSH (secure shell) and SCP (secure copy). Can anyone recommend a product/component/code to do this? I've come across Putty and SSHActiveX etc but I'd like a .NET solution if at all possible. Thanks.
Gavin
|
|
|
|
|
I know I can use the TAB key to move from TextBox to TextBox; can I also use the Enter Key? I have 300+ TextBoxes and I want the Enter key to move vertically and the Tab key to move horizontally, any thoughts?
--Mike
Mike Kennedy
|
|
|
|
|
Hi Mike. There may be a much easier way, but the only way I can see is to handle the KeyPress event for your textboxes. This link from MSDN[^] shows an example of capturing the [Enter] key; you could then execute SetFocus() on the appropriate text box.
|
|
|
|
|
Hi. I'm looking for a solution to this question:
so, I'd like to disassemble a strong named assembly,
edit its IL a little and compile it again with
different key pair. however, i want to keep the
original public key. Is that possible? I think so,
but don't know the right steps. Please help me.
Thank you in advance,
Stan
|
|
|
|
|
|
yep, i'd read an article to work out re-signing, but the public key changes, and what i need, is not changing the public key
|
|
|
|
|
I want to make an installation package to run at any windows system that doesn't have a .net framework installed on it.
I don't know how to include installation of .net framework in this package.
Thanks for help.
|
|
|
|
|
hi,
just exectuing the code below throws an exception..anyone has a clue ???
byte[] address = new byte[]{10,127,176,100}
IPAddress ip = new IPAddress(address);
thanx a lot.
shakoosh
|
|
|
|
|
I'm hesitating on changing Platform from VS6 to VS.Net. Would you
please to tell me what's the prospect of MMC in Microsoft .NET plan?
There's an MMC Snap-in designer for VB 6.0 ,and is there a designer for
VB.NET? Does Microsoft have anything substitute for MMC in .NET
platform or something in the future?
|
|
|
|
|
|
|
it supports vb.net and c#
:DD
|
|
|
|